oops in apm.c when booting 2.4.20-pre5-ac6
when booting 2.4.20-pre5-ac6, I see in my dmesg:
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
apm: disabled - APM is not SMP safe (power off active). kernel BUG at apm.c:1724!
invalid operand: 0000
CPU: 1
EIP: 0010:[<c0111e7c>] Not tainted
EFLAGS: 00010202
eax: 00000000 ebx: c1e28000 ecx: c0356244 edx: c1e28000
esi: c0285e37 edi: c1e28338 ebp: c1e29fec esp: c1e29fd8
ds: 0018 es: 0018 ss: 0018
Process kapmd (pid: 5, stackpage=c1e29000)
Stack: 00000f11 c1e3ffa4 00000000 00000018 00000078 c1e3ffb0 c0105640 00000000
00000078 c0301fc0
Call Trace: [<c0105640>]
Code: 0f 0b bc 06 c7 5b 28 c0 66 83 3d 94 d7 36 c0 00 75 4a 0f b7
Starting kswapdallocated 32 pages and 32 bhs reserved for the highmem bounces Journalled Block Device driver loaded
parport0: PC-style at 0x378 [PCSPP,EPP]parport_pc: Via 686A parallel port: io=0x378
matroxfb: Matrox G400 (AGP) detected
matroxfb: MTRR's turned on
ksymoops 2.4.6 on i686 2.4.20-pre5-ac6. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.4.20-pre5-ac6/ (default) -m /boot/System.map-2.4.20-pre5-ac6 (default)
Warning: You did not tell me where to find symbol information. I will assume that the log matches the kernel and modules that are running right now and I'll use the default options above for symbol resolution. If the current kernel and/or modules do not match the log, you can get more accurate output by telling me the kernel version and where to find map, modules, ksyms etc. ksymoops -h explains the options.
cpu: 0, clocks: 1004480, slice: 334826
cpu: 1, clocks: 1004480, slice: 334826
kernel BUG at apm.c:1724!
invalid operand: 0000 CPU: 1 EIP: 0010:[<c0111e7c>] Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010202
eax: 00000000 ebx: c1e28000 ecx: c0350244 edx: c1e28000
esi: c0281b97 edi: c1e28338 ebp: c1e29fec esp: c1e29fd8
ds: 0018 es: 0018 ss: 0018
Process kapmd (pid: 5, stackpage=c1e29000)
Stack: 00000f11 c1e3ffa4 00000000 00000018 00000078 c1e3ffb0 c0105640 00000000
00000078 c02fbfc0
Call Trace: [<c0105640>]
Code: 0f 0b bc 06 27 19 28 c0 66 83 3d 94 77 36 c0 00 75 4a 0f b7 Quoted 9 lines
Quoted 9 lines
EIP;
c0111e7c<apm+5c/2e4> <=====ebx;
c1e28000<_end+1a63408/384ff468>
ecx;c0350244<runqueues+9c4/13400>
edx;c1e28000<_end+1a63408/384ff468>
esi;c0281b97<error_table+4d7/4b80>
edi;c1e28338<_end+1a63740/384ff468>
ebp;c1e29fec<_end+1a653f4/384ff468>
esp;c1e29fd8<_end+1a653e0/384ff468>
Trace; c0105640 <kernel_thread+28/38>
Code; c0111e7c <apm+5c/2e4>
00000000 <_EIP>:
Code; c0111e7c <apm+5c/2e4> <=====
0: 0f 0b ud2a <=====
Code; c0111e7e <apm+5e/2e4>
2: bc 06 27 19 28 mov $0x28192706,%esp
Code; c0111e83 <apm+63/2e4>
7: c0 66 83 3d shlb $0x3d,0xffffff83(%esi)
Code; c0111e87 <apm+67/2e4>
b: 94 xchg %eax,%esp
Code; c0111e88 <apm+68/2e4>
c: 77 36 ja 44 <_EIP+0x44> c0111ec0 <apm+a0/2e4>
Code; c0111e8a <apm+6a/2e4>
e: c0 00 75 rolb $0x75,(%eax)
Code; c0111e8d <apm+6d/2e4>
11: 4a dec %edx
Code; c0111e8e <apm+6e/2e4>
12: 0f b7 00 movzwl (%eax),%eax
CONFIG_X86=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_MODULES=yCONFIG_MODVERSIONS=yCONFIG_KMOD=yCONFIG_MPENTIUMIII=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_PGE=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_F00F_WORKS_OK=yCONFIG_X86_MCE=yCONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_MTRR=yCONFIG_SMP=yCONFIG_HAVE_DEC_LOCK=yCONFIG_NET=yCONFIG_X86_IO_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_ISA=yCONFIG_PCI_NAMES=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_AOUT=yCONFIG_BINFMT_ELF=yCONFIG_BINFMT_MISC=mCONFIG_PM=yCONFIG_APM=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_PC_CML1=yCONFIG_PARPORT_1284=yCONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_LOOP=mCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=yCONFIG_MD_RAID1=yCONFIG_MD_RAID5=yCONFIG_PACKET=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_LARGE_TABLES=yCONFIG_SYN_COOKIES=yCONFIG_IDE=yCONFIG_HAZARD_READ=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_IDESCSI=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_BLK_DEV_GENERIC=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=yCONFIG_BLK_DEV_HPT366=yCONFIG_BLK_DEV_PDC202XX_OLD=yCONFIG_PDC202XX_BURST=yCONFIG_BLK_DEV_VIA82CXXX=yCONFIG_IDEDMA_AUTO=yCONFIG_BLK_DEV_PDC202XX=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_SCSI=yCONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_CHR_DEV_SG=yCONFIG_SCSI_DEBUG_QUEUES=yCONFIG_SCSI_MULTI_LUN=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_SYM53C8XX=yCONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT=yCONFIG_NETDEVICES=yCONFIG_DUMMY=mCONFIG_NET_ETHERNET=yCONFIG_NET_PCI=yCONFIG_DE4X5=mCONFIG_8139TOO=mCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_UNIX98_PTYS=yCONFIG_I2C=mCONFIG_I2C_ALGOBIT=mCONFIG_I2C_CHARDEV=mCONFIG_MOUSE=mCONFIG_PSMOUSE=yCONFIG_WATCHDOG=yCONFIG_SOFT_WATCHDOG=yCONFIG_RTC=mCONFIG_AGP=mCONFIG_AGP_VIA=yCONFIG_DRM=yCONFIG_DRM_NEW=yCONFIG_DRM_MGA=mCONFIG_REISERFS_FS=yCONFIG_EXT3_FS=yCONFIG_JBD=yCONFIG_FAT_FS=mCONFIG_VFAT_FS=mCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_NTFS_FS=mCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_EXT2_FS=yCONFIG_UDF_FS=mCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_ISO8859_1=yCONFIG_VGA_CONSOLE=yCONFIG_VIDEO_SELECT=yCONFIG_FB=yCONFIG_DUMMY_CONSOLE=yCONFIG_VIDEO_SELECT=yCONFIG_FB_MATROX=yCONFIG_FB_MATROX_G450=yCONFIG_FB_MATROX_G100=yCONFIG_FB_MATROX_I2C=mCONFIG_FBCON_ADVANCED=yCONFIG_FBCON_CFB8=yCONFIG_FBCON_CFB16=yCONFIG_FBCON_CFB24=yCONFIG_FBCON_CFB32=yCONFIG_FBCON_FONTS=y
CONFIG_FONT_SUN12x22=yCONFIG_SOUND=yCONFIG_SOUND_OSS=mCONFIG_USB=yCONFIG_USB_DEVICEFS=yCONFIG_USB_UHCI=yCONFIG_USB_STORAGE=yCONFIG_USB_PRINTER=yCONFIG_USB_SCANNER=yCONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_STACKOVERFLOW=yCONFIG_FRAME_POINTER=yCONFIG_MAGIC_SYSRQ=y
I suspect the lines around apm.c:1724 should be like the lines around apm.c:511:
#ifdef CONFIG_SMP
/* 2002/08/01 - WT
* This is to avoid random crashes at boot time during initialization
* on SMP systems in case of "apm=power-off" mode. Seen on ASUS A7M266D.
* Some bioses don't like being called from CPU != 0.
* Method suggested by Ingo Molnar.
*/
/* Some bioses don't like being called from CPU != 0 */
if (cpu_number_map(smp_processor_id()) != 0) {
set_cpus_allowed(current, 1 << cpu_logical_map(0));
if (unlikely(cpu_number_map(smp_processor_id()) != 0))
BUG();
}
#if 0
if (cpu_number_map(smp_processor_id()) != 0) {
current->cpus_allowed = 1;
schedule();
if (unlikely(cpu_number_map(smp_processor_id()) != 0))
BUG();
}#endif
#endif
Jurriaan
Signature · 3 lines
No one needs morality when there isn't enough to eat
New Model Army
GNU/Linux 2.4.19-ac4 SMP/ReiserFS 2x1402 bogomips load av: 0.02 0.20 0.70