Bug 113357 - Recompiling kernel with PAGE_SIZE!=16KB, then, kernel can't boot on IA64 machine
Recompiling kernel with PAGE_SIZE!=16KB, then, kernel can't boot on IA64 machine
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
ia64 Linux
medium Severity medium
: ---
: ---
Assigned To: Arjan van de Ven
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2004-01-12 21:08 EST by Zhang Yanmin
Modified: 2007-11-30 17:07 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-01-13 08:30:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix bug 113357 (767 bytes, patch)
2004-01-12 21:45 EST, Zhang Yanmin
no flags Details | Diff

  None (edit)
Description Zhang Yanmin 2004-01-12 21:08:26 EST
Description of problem:
After recompiling the kernel of EL3 with PAGE_SIZE!=16KB, kernel 
can't boot on IA64 machine. The boot messages show an error at line 
112 of file page_alloc.c.

Version-Release number of selected component (if applicable):

How reproducible:
Just recompile EL3's kernel with PAGE_SIZE=4KB or 8KB, then, boot the 
machine with the new image.

Steps to Reproduce:
1. Recompile the kernel: 
#make menuconfig
Choose General setup->Kernel page size=4KB. Then, save the config and 
exit menuconfig.
#make dep
#make vmlinux
#make modules
#make modules_install
Then, copy kernel image to /boot/efi/efi/redhat and change elilo.conf.

Actual results:
Boot messages show error at line 112 of file page_alloc.c and the 
booting stops.

Expected results:
Kernel booting succeeds.

Additional info:
I will paste the root cause and patch to the bug report.
Comment 1 Zhang Yanmin 2004-01-12 21:45:20 EST
Created attachment 96921 [details]
Fix bug 113357

When PAGE_SIZE!=16KB, EL3 kernel can't boot on IA64 machine, and booting
message shows error on page_alloc.c line 112. There is a BUG check at this
source line of function destroy_compound_page to make sure parameter order is
really the order used by __alloc_pages. When kernel allocates
task_struct(16KB), it chooses order 'IA64_TASK_STRUCT_LOG_NUM_PAGES' based on
PAGE_SIZE. However, when it releases task_struct, it uses a hardcoded order 1
as its parameter. So the BUG checking in destroy_compound_page will be

I tested the patch on Tiger-2(IA64) machine for many times. All except one run
well. When the exception happened, SCSI kept reseting again and again. I used
my own config file with all needed modules are compiled into the kernel

One question: I checked the base kernels of 2.4 and 2.6. They all do not have
such bug. Why did redhat people put a hardcoded 1 there? Just force EL3 to
support only 16KB on purpose?
Comment 2 Zhang Yanmin 2004-01-12 21:55:21 EST
One more statement: This error is the only problem that prevents 
booting with PAGE_SIZE!=16KB.
Comment 3 Arjan van de Ven 2004-01-13 08:30:39 EST
We explicitly don't support recompiled kernels and esp not kernels
with a different userspace ABI.

Note You need to log in before you can comment on or make changes to this bug.