* Linux 2.4.5-ac1
@ 2001-05-26 21:58 Alan Cox
2001-05-27 16:26 ` [OOPS] " Ville Herva
0 siblings, 1 reply; 9+ messages in thread
From: Alan Cox @ 2001-05-26 21:58 UTC (permalink / raw)
To: linux-kernel
ftp://ftp.kernel.org/pub/linux/kernel/people/alan/2.4/
Intermediate diffs are available from
http://www.bzimage.org
In terms of going through the code audit almost all the sound drivers still
need fixing to lock against format changes during a read/write. Poll creating
and starting a buffer as write does and also mmap during write, write during
an mmap.
This is the merge with Linus 2.4.5 tree. Its probably primarily of interest
to folks who want to review the merge - in paticular on the VM side of
things.
2.4.5-ac1
o Merge Linus 2.4.5 tree
Summary of changes for Linux 2.4.5-ac versus Linus 2.4.5
o Fix memory leak in wanrouter
o Fix memory leak in wanmain
o Use non atomic memory for linearising NFS buffers as they are
done in task context
o Fix dereference of freed memory in NetROM drivers
o Fix writing to freed memory in ax25_ip
o Support debugging of slab pools
o NinjaSCSI pcmcia scsi driver
o Raw HID device for USB peripheral buttons/controllers
o Updated NTFS
o RAMfs with resource limits
o NMI watchdog available on uniprocessor x86
o Update CMPCI drivers (not yet SMP safe)
o Configurable max_map_count
o Dynamic sysctl key registration
o SE401 USB camera driver
o Updated Zoran ZR3606x driver (replaces buz)
o w9966 parallel port camera driver (partially merged with Linus)
o Include headers in etags
o Don't delete empty directories on make distclean
o Fix halt/reboot handling on Alcor Alpha
o IDE driver support for Etrax E100
o IDE infrastructure support for IDE using non standard data transfers
o Run ~/bin/installkernel if present
o Support for out of order stores on x86 with this mode (IDT Winchip)
- worth 20% performance on them
o Configure level debugging menu
o Make BUG() default to an oops only - saves 70K
o Power management help for UP-APIC
o Work around 440BX APIC hang (eg the ne2000 SMP hang)
o Run time configurable APM behaviour (interrupts, psr etc)
o Smarter DMI parser - handles multiple use of names
o DMI layer has blacklist tables fixing Dell Inspiron 5000e crashes,
PowerEdge reboot problems , and IBM laptop APM problems
o PNPBios support
o Fix atomicity of IRQ error count
o Handle PCI/ISA boxes that don't list edge levels but have an ELCR
o Don't erroneously mangle settings on all VIA bridges - cures the
horrible performance problem in 2.4.5 vanilla with VIA
o Fix bootmem corruption on x86 boot
o Scan and retrieve multipliers for processors (not yet used to handle
the SMP cases where we need to disable tsc use)
o Support machine check on Athlon and Pentium
o Fix SUS violation with signal stacks
o Handle boxes where firmware resets the timer to 18Hz (this should
now not show false positives)
o Better OOPS formatting on x86
o Fix nasty problems with interrupts being disabled for long periods
in frame buffer drivers
o PAE mode alignment assumption fixes
o 32bit UID clean quota
o Fix quota deadlocks
o Fix TLB shootdown races
o Experimental merge of usermode Linux
o Fix memory leaks and othe rproblems with the iphase driver
o IBM AS/400 iSeries virtual drivers
o DAC960 null pointer checks
o CCISS driver leak fixes
o MPT fusion drivers for scsi and networking
o Handle out of memory allocating request queue entries and avoid oops
o Free the initial ramdisk correctly
o Small CD-ROM layer updates
o AGP power management hooks
o First basic applicom driver fixes
o Fix copy_from_user with interrupts off in cyclades driver
o Fix out of memory handling in DRM
o Clean up dsp56K driver
o Update generic serial driver with break support
o Clean up h8 driver namespace
o Fix keymap changing problems in console drivers
o Fix locking in machzwd
o Updated rio serial driver
o A2232 driver
o Fix serial driver mangling of some clone uarts
o Handle xircom serial port setup delay bug
o Updated sx driver for newer generic_serial
o W83877F watchdog driver
o ITE8172 IDE driver support
o Q40/Q60 IDE support
o Fix nodma handling bug in alim15x3
o hpt366 DMA blacklist
o IDE-CD updates
o Updated IDE DMA blacklist
o OOPS catch for sg reuse in IDE driver
o Support formatting of IDE floppies
o Support PIIX4U4 (851EM)
o Enable second port on promise pseudo raid
o Support nodma on pmac
o Support more PCI irq sharing on IDE
o IDE tape updates - DI-50 support,
o Much updated VIA IDE support
o video1394 updated to newer module API
o Support write on the input event driver
o Quieten mouse and keyboard input drivers
o Fix compile problem with pc110pad
o Fix memory leak in isdnppp
o LVM updates
o Fix plan b locking
o Fix saa5249 locking
o Fix stradis locking
o Acenic driver updates
o aironet4500 cleanups, probe tables
o Ariadne updated to newer API
o Don't limit mtu to 68+ in arlan drivers
o Updated eepro100 driver
o Fix potential crash on downing a bpqether port
o Updated nsc-ircc driver
o Updated toshoboe driver
o Intel Panther LP486e ethernet driver
o Remove erroneous check in eth_change_mtu
o Alternative xircom_cb driver
o Avoid ibm tr being rebuilt each make
o Updated ibm token ring drivers
o Add 'static' to bits of ppp code
o Add pci probe table to roadrunner
o Fix memory leak in sk_ge
o sk_g16 updates
o sk_mca updates
o Add tools to generate starfire firmware
o Synclink driver can be compiled in
o Fix possible oops in lapbether
o Fix memory leak in lanmedia driver
o Fix SDLA_X25 warnings
o Fix syncppp negotiation loop bug
o GSC parallel port support
o PCMCIA parallel port support
o Support PnPBIOS probing for PC parallel ports
o Fix leak in PCMCIA bulkmem driver
o Fix leak in PCMCIA ds driver
o Add more cards to the ti list for the yenta pcmcia
o Updated 3ware scsi driver
o NCR 53c700 and 53c700/66 driver core
o Fix pci_enable/resource read order on buslogic
o Updated NCR53c8xx driver
o Updated SYM53c8xx driver
o Fix NCR53c406 warnings
o NCR dual MCA driver
o AIC7xxx pci probe table for hotplug
o Updated aic7xxx_old
o Fix resource leaks in dec esp driver
o Fix printk levels in dmx3191 driver
o Allow per device max sector counts. (2.4 workaround until 2.5 does
this in the block layer per device)
o Support SCSI2/SCSI3 extended LUN numbering
o Limit qlogicisp and qlogicpti to 64 sectors/write
o Fix missing EFAULT return in scsi proc
o Fix locking of scsi_unregister_host
o Fix leaks in scsi_ioctl
o Fix potential lost requests in scsi merges
o Fix leak on write when scsi driver has no proc write op
o Extend the scsi black/whitelist
o Fix locking/eject/rescan on removable scsi disk media
o Updated scsi generic driver
o Updated scsi cdrom driver
o Correct ac97 handling on sparc
o Fix use after kfree in cs4281
o Update ess solo to new PCI style and PM
o Update maestro to new PCI style and PM
o Add docking station support to maestro
o Update sonicvies to new PCI api
o Fix trident locking problems
o Fix buzzing on ymfpci
o Power management for ymfpci
o Fix leak/missized copy on xjack driver
o CDCEther driver
o ACM driver with fixed CLOCAL
o Updated USB audio drivers
o Fix locking/reporting in USB device list
o Allow dsbr100 to take a radio_nr option
o HP5300 series USB scanner driver
o Updated IBM cam driver
o Fix USB inode locking
o Driver for Kawasaki based USB ethernet
o Small ov511 fixes
o Updated USB storage drivers
o Entries for Sony MSC-U01N memory stick, Fujifilm FinePix 1400Zoom,
Casio QV Digial Camera
o USB Ultracam driver
o Fix derefence of freed memory in the USB code
o Generic USB host->host drivers for anchorchip 2270, ipaq, netchip
1080, and Prolific PL-2301/2
o Updated ATI frame buffer drivers
o Updated clgen and control frame buffer drivers
o Updated cyber2000 driver
o Documentation for fbcon driver
o Additional modes for titanium powerbook (1152x768)
o Updated matrxofb drivers
o Support __setup in mdacon
o Radeon console driver
o Handle out of memory on sun3 fb
o Updated tga/vesa fb
o CMS file system (basic R/O)
o JFFS journalling flash file system with compression
o Updated AFFS file system
o Threaded core dumps
o Fix security holes in binfmt_misc
o Allow flushing of low buffers only when we need bounce buffers
o Use brelse in cramfs
o Fix memory leaks in freevxfs
o Updated isofs
o Small lockd updates (experimental)
o Fix nfs alignment funnies
o Report correct SuS errors on some opens
o Add generic_file_open to get 64bit stuff right
o Locking on make_inode_number for procfs
o Report shmem size in shared memory proc field
o Fail lseek outside of allowed range for filesystem
o Fix select race with fdset growth
o Kernel message levels and handle oom on superblock/mount ops
o Updated frame buffer logos
o Prefetch support for AMD Athlon
o Support out of order stores in spinlocks on x86
o m68k bitop compile fixes
o Add truncatepage op to address operations
o shmem filesystem cleanups and updates
o Fix off by one on real time pre-emption in scheduler
o Use prefetches in scheduler and wakeups
o Support GFP_FAIL to avoid highmem deadlocks
---
Alan Cox <alan@lxorguk.ukuu.org.uk>
Red Hat Kernel Hacker
& Linux 2.2 Maintainer Brainbench MVP for TCP/IP
http://www.linux.org.uk/diary http://www.brainbench.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [OOPS] Re: Linux 2.4.5-ac1
2001-05-26 21:58 Linux 2.4.5-ac1 Alan Cox
@ 2001-05-27 16:26 ` Ville Herva
2001-05-27 21:12 ` initrd oops [was Re: Linux 2.4.5-ac1] Ville Herva
0 siblings, 1 reply; 9+ messages in thread
From: Ville Herva @ 2001-05-27 16:26 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
On Sat, May 26, 2001 at 10:58:25PM +0100, you [Alan Cox] claimed:
>
> o Free the initial ramdisk correctly
Who made this fix, or who can I contact?
I have a reproducible oops on 2.4.4ac17 (see
http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2 for
details) that seems to be related:
(1)Unable to handle kernel NULL pointer
dereference at virtual address 00000013
>>EIP; c02997f6 <__devices_1045+5a/a8> <=====
Trace; c0136447 <ioctl_by_bdev+77/90>
Trace; c017fec3 <batch_entropy_process+b3/c0>
Trace; c0118769 <__run_task_queue+49/60>
Trace; c011b0f6 <update_wall_time+16/50>
Trace; c011b304 <timer_bh+24/250>
Trace; c011868c <bh_action+1c/60>
Trace; c0118596 <tasklet_hi_action+36/60>
Trace; c011849b <do_softirq+5b/80>
Trace; c010832f <do_IRQ+9f/b0>
Trace; c0106f14 <ret_from_intr+0/20>
Trace; c0199756 <rd_make_request+d6/100>
Trace; c01330d6 <try_to_free_buffers+f6/140>
Trace; c0131447 <getblk+e7/100>
Trace; c0122cf5 <truncate_list_pages+145/170>
Trace; c01416db <destroy_inode+1b/20>
Trace; c0142b81 <iput+121/130>
Trace; c0136641 <blkdev_put+71/a0>
Trace; c013484a <kill_super+da/100>
Trace; c0134ab0 <do_umount+e0/f0>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01177e6 <sys_waitpid+16/20>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01051da <prepare_namespace+fa/120>
Trace; c010520e <init+e/140>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01056a6 <kernel_thread+26/30>
Trace; c0105200 <init+0/140>
Code; c02997f6 <__devices_1045+5a/a8>
00000000 <_EIP>:
Code; c02997f6 <__devices_1045+5a/a8> <=====
0: 8b 40 10 mov 0x10(%eax),%eax <=====
Code; c02997f9 <__devices_1045+5d/a8>
3: 83 f8 02 cmp $0x2,%eax
Code; c02997fc <__devices_1045+60/a8>
6: 7e 62 jle 6a <_EIP+0x6a> c0299860
<__devices_104a
+c/20>
Code; c02997fe <__devices_1045+62/a8>
8: b8 f0 ff ff ff mov $0xfffffff0,%eax
Code; c0299803 <__devices_1045+67/a8>
d: eb 74 jmp 83 <_EIP+0x83> c0299879
<__devices_104b
+5/18>
Code; c0299805 <__devices_1045+69/a8>
f: 85 c9 test %ecx,%ecx
Code; c0299807 <__devices_1045+6b/a8>
11: b8 ea ff 00 00 mov $0xffea,%eax
Judging from the stack trace, I suspect that after kill_super is called (and
hence, root device invalidated and freed), a function that that assumes a
valid rootdev (ioctl_by_bdev) is called. Rdev is NULL, and hence the null
ptr deref. Is this anywhere near the truth?
-- v --
v@iki.fi
PS: A this is a 600Mhz Xeon w/ 256MB RAM. Right after boot I did
'diff -nauR linux-2.4.5 linux-2.4.4ac17' on redhat 2.4.2-2, and it never
finished:
root@machine:/poista>diff -nauR linux-2.4.5 linux-2.4.4ac17
zsh: terminated diff -nauR linux-2.4.5 linux-2.4.4ac17
root@machine:/poista>free
total used free shared buffers cached
Mem: 255572 253140 2432 0 8332 215108
-/+ buffers/cache: 29700 225872
Swap: 0 0 0
root@machine:/poista>uname -a
Linux machine 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
root@machine:/poista>dmesg | tail -2
Out of Memory: Killed process 804 (xfs).
Out of Memory: Killed process 15857 (diff).
So diff (which used very little RAM) filled the _cache_ and OOM rambo kicked
in. Pretty embarrassing to say at least...
^ permalink raw reply [flat|nested] 9+ messages in thread* initrd oops [was Re: Linux 2.4.5-ac1]
2001-05-27 16:26 ` [OOPS] " Ville Herva
@ 2001-05-27 21:12 ` Ville Herva
2001-05-28 7:25 ` initrd oops; still happens with 2.4.5ac2 Ville Herva
2001-05-28 9:02 ` Masaru Kawashima
0 siblings, 2 replies; 9+ messages in thread
From: Ville Herva @ 2001-05-27 21:12 UTC (permalink / raw)
To: linux-kernel
On Sun, May 27, 2001 at 07:26:50PM +0300, you [Ville Herva] claimed:
> On Sat, May 26, 2001 at 10:58:25PM +0100, you [Alan Cox] claimed:
> >
> > o Free the initial ramdisk correctly
>
> Who made this fix, or who can I contact?
>
> I have a reproducible oops on 2.4.4ac17 (see
> http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2 for
> details) that seems to be related:
Ok, some more info:
2.4.2-2 (redhat) BOOTS OK
2.4.4ac17 OOPS
2.4.4ac17+av OOPS
2.4.5 OOPS
2.4.5ca1+av OOPS
2.4.4 BOOTS OK
2.4.4ac9 BOOTS OK
2.4.4ac10 BOOTS OK
2.4.4ac11 BOOTS OK
2.4.4ac12 fails to mount root ("Checking root filesystem.
/dev/sdb is mounted.")
2.4.4ac14 fails to mount root
2.4.4ac15 OOPS
This is:
600Mhz Xeon
256MB
megaraid RAID and sym53c875 (from which I boot)
gcc-2.96-85 (tried .91 as well)
So I gather the ac12 and ac15 Linux tree / av merges are the culprit?
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: initrd oops; still happens with 2.4.5ac2
2001-05-27 21:12 ` initrd oops [was Re: Linux 2.4.5-ac1] Ville Herva
@ 2001-05-28 7:25 ` Ville Herva
2001-05-28 8:51 ` Ville Herva
2001-05-28 9:02 ` Masaru Kawashima
1 sibling, 1 reply; 9+ messages in thread
From: Ville Herva @ 2001-05-28 7:25 UTC (permalink / raw)
To: linux-kernel; +Cc: alan
On Mon, May 28, 2001 at 12:12:20AM +0300, you [Ville Herva] claimed:
> On Sun, May 27, 2001 at 07:26:50PM +0300, you [Ville Herva] claimed:
> >
> > I have a reproducible oops on 2.4.4ac17 at initrd unmount (see
> > http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2 for
> > details) that seems to be related:
>
> Ok, some more info:
>
> 2.4.2-2 (redhat) BOOTS OK
> 2.4.4ac17 OOPS
> 2.4.4ac17+av OOPS
> 2.4.5 OOPS
> 2.4.5ac1+av OOPS
> 2.4.4 BOOTS OK
> 2.4.4ac9 BOOTS OK
> 2.4.4ac10 BOOTS OK
> 2.4.4ac11 BOOTS OK
> 2.4.4ac12 fails to mount root ("Checking root filesystem.
> /dev/sdb is mounted.")
> 2.4.4ac14 fails to mount root
> 2.4.4ac15 OOPS
2.4.5ac2 OOPS
The oops call trace seems to be the same as in
http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2
Any ideas?
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: initrd oops; still happens with 2.4.5ac2
2001-05-28 7:25 ` initrd oops; still happens with 2.4.5ac2 Ville Herva
@ 2001-05-28 8:51 ` Ville Herva
0 siblings, 0 replies; 9+ messages in thread
From: Ville Herva @ 2001-05-28 8:51 UTC (permalink / raw)
To: linux-kernel; +Cc: alan
On Mon, May 28, 2001 at 10:25:51AM +0300, [Ville Herva] claimed:
> On Mon, May 28, 2001 at 12:12:20AM +0300, [Ville Herva] claimed:
> > On Sun, May 27, 2001 at 07:26:50PM +0300, [Ville Herva] claimed:
> > >
> > > I have a reproducible oops on 2.4.4ac17 at initrd unmount (see
> > > http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2 for
> > > details) that seems to be related:
> >
> > Ok, some more info:
> >
> > 2.4.2-2 (redhat) BOOTS OK
> > 2.4.4ac17 OOPS
> > 2.4.4ac17+av OOPS
> > 2.4.5 OOPS
> > 2.4.5ac1+av OOPS
> > 2.4.4 BOOTS OK
> > 2.4.4ac9 BOOTS OK
> > 2.4.4ac10 BOOTS OK
> > 2.4.4ac11 BOOTS OK
> > 2.4.4ac12 fails to mount root ("Checking root filesystem.
> > /dev/sdb is mounted.")
> > 2.4.4ac14 fails to mount root
> > 2.4.4ac15 OOPS
>
> 2.4.5ac2 OOPS
Here is the ksymoops output for the 2.4.5ac2 initrd umount OOPS:
----------------------------------------------------------------------------
ksymoops 2.4.1 on i686 2.4.4-ac11. Options used
-v vmlinux (specified)
-K (specified)
-l /proc/modules (default)
-O (specified)
-m ./System.map (specified)
No ksyms, skipping lsmod
Trying to unmount old root ... <1>Unable to handle kernel NULL pointer
dereference at virtual address 0000001e
c0199a96
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c0199a96>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010202
eax: 0000000e ebx: 00001261 ecx: 00000000 edx: cfff5d64
esi: 00000000 edi: c15dc4a0 ebp: c15d5160 esp: cfff5d44
ds: 0018 es: 0018 ss: 0018
Process swapper (pid: 1, stackpage=cfff5000)
Stack: cfff4000 ffffffff c15dc4a0 c0136427 cfff5d64 00000000 00001261
00000000
c15edc00 00000000 00000046 c1462000 c01be02a c1462000 00000046
00000246
c0267b20 c1467f60 c15edc00 c01ae171 c15edc00 00000246 00000100
c15edc00
Call Trace: [<c0136427>] [<c01be02a>] [<c01ae171>] [<c01b488c>] [<c0112600>]
[<c011b230>] [<c011b543>] [<c011b0e6>] [<c011b2f4>] [<c011867c>]
[<c0118586>] [<c011848b>] [<c0133106>] [<c0122d15>] [<c014170b>]
[<c0142bb1>] [<c0136621>] [<c01347ec>] [<c0105000>] [<c01177d6>]
[<c0105000>] [<c01051da>] [<c010520e>] [<c0105000>] [<c01056a6>]
[<c0105200>]
Code: 8b 40 10 83 f8 02 7e 62 b8 f0 ff ff ff eb 74 85 c9 b8 ea ff
>>EIP; c0199a96 <rd_ioctl+76/100> <=====
Trace; c0136427 <ioctl_by_bdev+77/90>
Trace; c01be02a <sym53c8xx_queue_command+4a/80>
Trace; c01ae171 <scsi_dispatch_cmd+111/160>
Trace; c01b488c <scsi_request_fn+2cc/310>
Trace; c0112600 <schedule+220/350>
Trace; c011b230 <update_process_times+20/80>
Trace; c011b543 <do_timer+23/a0>
Trace; c011b0e6 <update_wall_time+16/50>
Trace; c011b2f4 <timer_bh+24/250>
Trace; c011867c <bh_action+1c/60>
Trace; c0118586 <tasklet_hi_action+36/60>
Trace; c011848b <do_softirq+5b/80>
Trace; c0133106 <try_to_free_buffers+f6/140>
Trace; c0122d15 <truncate_list_pages+145/170>
Trace; c014170b <destroy_inode+1b/20>
Trace; c0142bb1 <iput+121/130>
Trace; c0136621 <blkdev_put+71/a0>
Trace; c01347ec <kill_super+ec/100>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01177d6 <sys_waitpid+16/20>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01051da <prepare_namespace+fa/120>
Trace; c010520e <init+e/140>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01056a6 <kernel_thread+26/30>
Trace; c0105200 <init+0/140>
Code; c0199a96 <rd_ioctl+76/100>
00000000 <_EIP>:
Code; c0199a96 <rd_ioctl+76/100> <=====
0: 8b 40 10 mov 0x10(%eax),%eax <=====
Code; c0199a99 <rd_ioctl+79/100>
3: 83 f8 02 cmp $0x2,%eax
Code; c0199a9c <rd_ioctl+7c/100>
6: 7e 62 jle 6a <_EIP+0x6a> c0199b00
<rd_ioctl+e0/100>
Code; c0199a9e <rd_ioctl+7e/100>
8: b8 f0 ff ff ff mov $0xfffffff0,%eax
Code; c0199aa3 <rd_ioctl+83/100>
d: eb 74 jmp 83 <_EIP+0x83> c0199b19
<rd_ioctl+f9/100>
Code; c0199aa5 <rd_ioctl+85/100>
f: 85 c9 test %ecx,%ecx
Code; c0199aa7 <rd_ioctl+87/100>
11: b8 ea ff 00 00 mov $0xffea,%eax
<0>Kernel panic: Attempted to kill init!
----------------------------------------------------------------------------
And here is another ksymoopsed OOPS with the same kernel, but booting from
/dev/sdc (on megaraid) with grub:
----------------------------------------------------------------------------
ksymoops 2.4.1 on i686 2.4.4-ac11. Options used
-v vmlinux (specified)
-K (specified)
-l /proc/modules (default)
-O (specified)
-m ./System.map (specified)
No ksyms, skipping lsmod
Unable to handle kernel NULL pointer dereference at virtual address 0000001f
c014259a
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<c014259a>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010202
eax: 00000000 ebx: ffffffff ecx: 0000ffff edx: 00000000
esi: ffffffff edi: 00000001 ebp: f7fbec80 esp: c026ff10
ds: 0018 es: 0018 ss: 0018
Process swapper (pid: 0, stackpage=c026f000)
Stack: c025b3c0 f7fbec80 00000001 c1eef000 c0142995 c1eef000 00000001
f7fbec80
00000000 00000000 00000005 c1eef000 c012a492 00000007 c025b3c0
00000001
00000000 c025b300 c0145c60 c1eef000 00000001 00000000 00000000
c1eef000
Call Trace: [<c0142995>] [<c012a492>] [<c0145c60>] [<c0145d4c>] [<c01343e2>]
[<c01348ff>] [<c0105000>] [<c0100197>]
Code: 39 7e 20 75 f1 8b 44 24 14 39 86 90 00 00 00 75 e5 8b 54 24
>>EIP; c014259a <find_inode+1a/50> <=====
Trace; c0142995 <iget4+45/d0>
Trace; c012a492 <__alloc_pages+62/230>
Trace; c0145c60 <proc_get_inode+40/100>
Trace; c0145d4c <proc_read_super+2c/b0>
Trace; c01343e2 <read_super+62/b0>
Trace; c01348ff <kern_mount+4f/b0>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c0100197 <L6+0/2>
Code; c014259a <find_inode+1a/50>
00000000 <_EIP>:
Code; c014259a <find_inode+1a/50> <=====
0: 39 7e 20 cmp %edi,0x20(%esi) <=====
Code; c014259d <find_inode+1d/50>
3: 75 f1 jne fffffff6 <_EIP+0xfffffff6> c0142590
<find_inode+10/50>
Code; c014259f <find_inode+1f/50>
5: 8b 44 24 14 mov 0x14(%esp,1),%eax
Code; c01425a3 <find_inode+23/50>
9: 39 86 90 00 00 00 cmp %eax,0x90(%esi)
Code; c01425a9 <find_inode+29/50>
f: 75 e5 jne fffffff6 <_EIP+0xfffffff6> c0142590
<find_inode+10/50>
Code; c01425ab <find_inode+2b/50>
11: 8b 54 24 00 mov 0x0(%esp,1),%edx
<0>Kernel panic: Attempted to kill the idle task!
----------------------------------------------------------------------------
The bootlog for initrd umount case is at
http://v.iki.fi/~vherva/tmp/bootlog.initrd
the corresponding ksymoops:
http://v.iki.fi/~vherva/tmp/ksymoops-initrd
and the same for the grub:
http://v.iki.fi/~vherva/tmp/bootlog.grub
http://v.iki.fi/~vherva/tmp/ksymoops-grub
and the .config for both:
http://v.iki.fi/~vherva/tmp/.config
Note that 2.4.4 and 2.4.2-2 boot ok in both cases.
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: initrd oops; still happens with 2.4.5ac2
2001-05-27 21:12 ` initrd oops [was Re: Linux 2.4.5-ac1] Ville Herva
2001-05-28 7:25 ` initrd oops; still happens with 2.4.5ac2 Ville Herva
@ 2001-05-28 9:02 ` Masaru Kawashima
2001-05-28 10:05 ` initrd oops with 2.4.5ac2: FIXED by Kawashima (the other oops may remain) Ville Herva
1 sibling, 1 reply; 9+ messages in thread
From: Masaru Kawashima @ 2001-05-28 9:02 UTC (permalink / raw)
To: Ville Herva; +Cc: linux-kernel
On Mon, 28 May 2001 10:25:51 +0300
Ville Herva <vherva@mail.niksula.cs.hut.fi> wrote:
> The oops call trace seems to be the same as in
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2
>
> Any ideas?
Did you try the patch posted by Go Taniguchi <go@turbolinux.co.jp>?
Following is the copy of his message and the patch itself.
--
Masaru Kawashima
=====================================================================
From: Go Taniguchi <go@turbolinux.co.jp>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH]initrd unmount problem
Date: Mon, 28 May 2001 13:26:20 +0900
Sender: linux-kernel-owner@vger.kernel.org
Organization: Turbolinx Inc.
X-Mailer: Mozilla 4.75 [ja] (X11; U; Linux 2.2.18-10 i686)
Hi,
It seems that ioctl_by_bdev() in fs/block_dev.c has a problem.
When initrd is unmounted it can cause OOPS.
This problem occurs in recent ac patches.
May be vanilla too.
change_root() in fs/super.c calls ioctl_by_bdev() in
fs/block_dev.c which does not set inode_fake.i_bdev.
But ioctl of ramdisk (rd_ioctl() in rd.c) accesses to
i_bdev->bd_openers of the inode and which causes OOPS.
I attach the patch.
- GO!
--- linux/fs/block_dev.c.orig Mon May 28 12:40:12 2001
+++ linux/fs/block_dev.c Mon May 28 12:40:12 2001
@@ -602,6 +602,7 @@
if (!bdev->bd_op->ioctl)
return -EINVAL;
inode_fake.i_rdev=rdev;
+ inode_fake.i_bdev=bdev;
init_waitqueue_head(&inode_fake.i_wait);
set_fs(KERNEL_DS);
res = bdev->bd_op->ioctl(&inode_fake, NULL, cmd, arg);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: initrd oops with 2.4.5ac2: FIXED by Kawashima (the other oops may remain)
2001-05-28 9:02 ` Masaru Kawashima
@ 2001-05-28 10:05 ` Ville Herva
2001-05-28 10:28 ` initrd oops with 2.4.5ac2: Tthe other oops remains (one fixed) Ville Herva
0 siblings, 1 reply; 9+ messages in thread
From: Ville Herva @ 2001-05-28 10:05 UTC (permalink / raw)
To: Masaru Kawashima; +Cc: linux-kernel, alan, go
On Mon, May 28, 2001 at 06:02:54PM +0900, you [Masaru Kawashima] claimed:
> On Mon, 28 May 2001 10:25:51 +0300
> Ville Herva <vherva@mail.niksula.cs.hut.fi> wrote:
> > The oops call trace seems to be the same as in
> >
> > http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2
> >
> > Any ideas?
>
> Did you try the patch posted by Go Taniguchi <go@turbolinux.co.jp>?
> Following is the copy of his message and the patch itself.
>
> --- linux/fs/block_dev.c.orig Mon May 28 12:40:12 2001
> +++ linux/fs/block_dev.c Mon May 28 12:40:12 2001
> @@ -602,6 +602,7 @@
> if (!bdev->bd_op->ioctl)
> return -EINVAL;
> inode_fake.i_rdev=rdev;
> + inode_fake.i_bdev=bdev;
> init_waitqueue_head(&inode_fake.i_wait);
> set_fs(KERNEL_DS);
> res = bdev->bd_op->ioctl(&inode_fake, NULL, cmd, arg);
Yes, I actually spotted the patch on l-k just a while ago and tried it.
It does fix the initrd case; I haven't tried the grub case, but I suspect it
still remains. Will try that as well asap.
Thanks,
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: initrd oops with 2.4.5ac2: Tthe other oops remains (one fixed)
2001-05-28 10:05 ` initrd oops with 2.4.5ac2: FIXED by Kawashima (the other oops may remain) Ville Herva
@ 2001-05-28 10:28 ` Ville Herva
2001-05-28 10:48 ` initrd oops with 2.4.5ac2: megaraid OOPSes Ville Herva
0 siblings, 1 reply; 9+ messages in thread
From: Ville Herva @ 2001-05-28 10:28 UTC (permalink / raw)
To: linux-kernel, alan
On Mon, May 28, 2001 at 01:05:07PM +0300, you [Ville Herva] claimed:
> On Mon, May 28, 2001 at 06:02:54PM +0900, you [Masaru Kawashima] claimed:
> > On Mon, 28 May 2001 10:25:51 +0300
> > Ville Herva <vherva@mail.niksula.cs.hut.fi> wrote:
> > > The oops call trace seems to be the same as in
> > >
> > > http://marc.theaimsgroup.com/?l=linux-kernel&m=99079948404775&w=2
> > >
> > > Any ideas?
> >
> > Did you try the patch posted by Go Taniguchi <go@turbolinux.co.jp>?
> > Following is the copy of his message and the patch itself.
> >
> > --- linux/fs/block_dev.c.orig Mon May 28 12:40:12 2001
> > +++ linux/fs/block_dev.c Mon May 28 12:40:12 2001
> > @@ -602,6 +602,7 @@
> > if (!bdev->bd_op->ioctl)
> > return -EINVAL;
> > inode_fake.i_rdev=rdev;
> > + inode_fake.i_bdev=bdev;
> > init_waitqueue_head(&inode_fake.i_wait);
> > set_fs(KERNEL_DS);
> > res = bdev->bd_op->ioctl(&inode_fake, NULL, cmd, arg);
>
> Yes, I actually spotted the patch on l-k just a while ago and tried it.
>
> It does fix the initrd case; I haven't tried the grub case, but I suspect it
> still remains. Will try that as well asap.
The other OOPS (http://v.iki.fi/~vherva/tmp/bootlog.grub and
http://v.iki.fi/~vherva/tmp/ksymoops-grub) still remains:
>>EIP; c014259a <find_inode+1a/50> <=====
Trace; c0142995 <iget4+45/d0>
Trace; c012a492 <__alloc_pages+62/230>
Trace; c0145c60 <proc_get_inode+40/100>
Trace; c0145d4c <proc_read_super+2c/b0>
Trace; c01343e2 <read_super+62/b0>
Trace; c01348ff <kern_mount+4f/b0>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c0100197 <L6+0/2>
Code; c014259a <find_inode+1a/50>
00000000 <_EIP>:
Code; c014259a <find_inode+1a/50> <=====
0: 39 7e 20 cmp %edi,0x20(%esi) <=====
Code; c014259d <find_inode+1d/50>
3: 75 f1 jne fffffff6 <_EIP+0xfffffff6> c0142590
<find_inode+10/50>
Code; c014259f <find_inode+1f/50>
5: 8b 44 24 14 mov 0x14(%esp,1),%eax
Code; c01425a3 <find_inode+23/50>
9: 39 86 90 00 00 00 cmp %eax,0x90(%esi)
Code; c01425a9 <find_inode+29/50>
f: 75 e5 jne fffffff6 <_EIP+0xfffffff6> c0142590
<find_inode+10/50>
Code; c01425ab <find_inode+2b/50>
11: 8b 54 24 00 mov 0x0(%esp,1),%edx
2.4.2-2 (redhat) is fine; 2.4.4 vanilla oopses after probing PCI hardware
(so it goes little further than 2.4.5ac2), and 2.4.5ac2 oopses after making
page-cache hash table.
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: initrd oops with 2.4.5ac2: megaraid OOPSes
2001-05-28 10:28 ` initrd oops with 2.4.5ac2: Tthe other oops remains (one fixed) Ville Herva
@ 2001-05-28 10:48 ` Ville Herva
0 siblings, 0 replies; 9+ messages in thread
From: Ville Herva @ 2001-05-28 10:48 UTC (permalink / raw)
To: linux-kernel, alan
On Mon, May 28, 2001 at 01:28:31PM +0300, you [Ville Herva] claimed:
>
> The other OOPS (http://v.iki.fi/~vherva/tmp/bootlog.grub and
> http://v.iki.fi/~vherva/tmp/ksymoops-grub) still remains:
That one appears to be because it couldn't find the initrd (incorrect boot
param, my fault). Should it oops then? 2.4.2-2 definetely doesn't. With the
correct initrd param 2.4.4 boots ok, but 2.4.5ac2 still OOPSes. Now it only
does it later, during scsi adapter probe:
ksymoops 2.4.1 on i686 2.4.5-ac2. Options used
-v ./vmlinux (specified)
-K (specified)
-l /proc/modules (default)
-o /lib/modules/2.4.5-ac2/ (default)
-m ./System.map (specified)
No modules in ksyms, skipping objects
No ksyms, skipping lsmod
Unable to handle kernel NULL pointer dereference at virtual address 0000004f
c01c02bf
*pde = 00000000
Oops: 0002
CPU: 0
EIP: 0010:[<c01c02bf>]
Using defaults from ksymoops -t elf32-i386 -a i386
EFLAGS: 00010246
eax: ffffffff ebx: f7ef007c ecx: 00000001 edx: c1eec400
esi: 0000000f edi: f7ef8aac ebp: f8800000 esp: cfb2bee8
ds: 0018 es: 0018 ss: 0018
Process swapper (pid: 1, stackpage=cfb2b000)
Stack: 00000000 c0114966 c1eec400 00000000 00000001 0f001667 00001681
0000003f
00009060 0000101e 00001667 f7ef0000 00001960 00008086 00000000
10cd7b40
3344103c 00000000 00000000 c02d7b40 c0267aa0 c01c05ce c0267aa0
00008086
Call Trace: [<c0114966>] [<c01c05ce>] [<c01af674>] [<c0105000>] [<c01af024>]
[<c0105000>] [<c014786f>] [<c0147bb0>] [<c0105000>] [<c0105209>]
[<c0105000>]
[<c01056a6>] [<c0105200>]
Code: 89 68 50 8b 83 dc 02 00 00 c6 40 54 10 8b 8b dc 02 00 00 0f
>>EIP; c01c02bf <mega_findCard+30f/530> <=====
Trace; c0114966 <__call_console_drivers+46/60>
Trace; c01c05ce <megaraid_detect+ee/1d0>
Trace; c01af674 <scsi_unregister_host+3c4/450>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01af024 <scsi_register_host+54/2e0>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c014786f <proc_register+f/90>
Trace; c0147bb0 <create_proc_entry+90/a0>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c0105209 <init+9/140>
Trace; c0105000 <do_linuxrc+0/e0>
Trace; c01056a6 <kernel_thread+26/30>
Trace; c0105200 <init+0/140>
Code; c01c02bf <mega_findCard+30f/530>
00000000 <_EIP>:
Code; c01c02bf <mega_findCard+30f/530> <=====
0: 89 68 50 mov %ebp,0x50(%eax) <=====
Code; c01c02c2 <mega_findCard+312/530>
3: 8b 83 dc 02 00 00 mov 0x2dc(%ebx),%eax
Code; c01c02c8 <mega_findCard+318/530>
9: c6 40 54 10 movb $0x10,0x54(%eax)
Code; c01c02cc <mega_findCard+31c/530>
d: 8b 8b dc 02 00 00 mov 0x2dc(%ebx),%ecx
Code; c01c02d2 <mega_findCard+322/530>
13: 0f 00 00 sldt (%eax)
bootlog:
http://v.iki.fi/~vherva/tmp/bootlog.sym53
ksymoops:
http://v.iki.fi/~vherva/tmp/ksymoops-sym53
I have sym53c875 and megaraid in this box. If the megaraid scsi bios is
disabled, it boots ok (from the sym53c875), if I enable the bios and boot
from megaraid, I get the oops above.
-- v --
v@iki.fi
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-05-28 10:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-26 21:58 Linux 2.4.5-ac1 Alan Cox
2001-05-27 16:26 ` [OOPS] " Ville Herva
2001-05-27 21:12 ` initrd oops [was Re: Linux 2.4.5-ac1] Ville Herva
2001-05-28 7:25 ` initrd oops; still happens with 2.4.5ac2 Ville Herva
2001-05-28 8:51 ` Ville Herva
2001-05-28 9:02 ` Masaru Kawashima
2001-05-28 10:05 ` initrd oops with 2.4.5ac2: FIXED by Kawashima (the other oops may remain) Ville Herva
2001-05-28 10:28 ` initrd oops with 2.4.5ac2: Tthe other oops remains (one fixed) Ville Herva
2001-05-28 10:48 ` initrd oops with 2.4.5ac2: megaraid OOPSes Ville Herva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®