From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262864AbTJYWxP (ORCPT ); Sat, 25 Oct 2003 18:53:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262865AbTJYWxP (ORCPT ); Sat, 25 Oct 2003 18:53:15 -0400 Received: from smtp.sys.beep.pl ([195.245.198.13]:36877 "EHLO maja.beep.pl") by vger.kernel.org with ESMTP id S262864AbTJYWvo convert rfc822-to-8bit (ORCPT ); Sat, 25 Oct 2003 18:51:44 -0400 From: Arkadiusz Miskiewicz Organization: SelfOrganizing To: Kernel Mailing List Subject: 2.6.0-test9 and sleeping function called from invalid context Date: Sun, 26 Oct 2003 00:45:51 +0200 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200310260045.52094.arekm@pld-linux.org> X-Authenticated-Id: arekm Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Debug: sleeping function called from invalid context at include/asm/semaphore.h:119 in_atomic():1, irqs_disabled():0 Call Trace: [] __might_sleep+0xab/0xf0 [] inode_doinit_with_dentry+0x41/0x5d0 [] bm_fill_super+0x0/0x40 [binfmt_misc] [] d_instantiate+0x64/0x80 [] bm_register_write+0x150/0x1d0 [binfmt_misc] [] bm_register_write+0x0/0x1d0 [binfmt_misc] [] vfs_write+0xca/0x140 [] sys_write+0x3f/0x60 [] syscall_call+0x7/0xb lsmod: Module Size Used by binfmt_misc 11144 1 md5 4224 1 ipv6 260288 20 usbmouse 5760 0 hid 65920 0 uhci_hcd 33040 0 ohci_hcd 18944 0 ds 15620 2 yenta_socket 17408 0 pcmcia_core 70240 2 ds,yenta_socket via_ircc 27024 0 via_rhine 21640 0 mii 5504 1 via_rhine crc32 4608 1 via_rhine nls_iso8859_2 4736 1 ntfs 103532 1 ircomm_tty 28040 0 ircomm 15876 1 ircomm_tty irda 141244 3 via_ircc,ircomm_tty,ircomm snd_pcm_oss 54308 1 snd_mixer_oss 19968 1 snd_pcm_oss snd_via82xx 25568 1 snd_pcm 102180 2 snd_pcm_oss,snd_via82xx snd_timer 26628 1 snd_pcm snd_ac97_codec 54788 1 snd_via82xx snd_page_alloc 12292 2 snd_via82xx,snd_pcm snd_mpu401_uart 7936 1 snd_via82xx snd_rawmidi 25632 1 snd_mpu401_uart snd_seq_device 8712 1 snd_rawmidi snd 53860 9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device soundcore 9792 2 snd psmouse 18444 0 proc_intf 4224 0 powernow_k7 7072 0 freq_table 4612 1 powernow_k7 thermal 13712 0 processor 14628 1 thermal fan 4364 0 button 6296 0 battery 9612 0 ac 5132 0 capability 4100 0 commoncap 6784 1 capability ide_cd 41348 0 cdrom 35616 1 ide_cd rtc 13368 0 ehci_hcd 24964 0 usbcore 113756 7 usbmouse,hid,uhci_hcd,ohci_hcd,ehci_hcd ext3 119976 1 mbcache 9476 1 ext3 jbd 62488 1 ext3 dmesg: Linux version 2.6.0 (arekm@mobarm) (gcc version 3.3.2 (PLD Linux)) #1 Sat Oct 25 22:21:19 CEST 2003 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000cc000 - 00000000000d0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000000eff0000 (usable) BIOS-e820: 000000000eff0000 - 000000000eff8000 (ACPI data) BIOS-e820: 000000000eff8000 - 000000000f000000 (ACPI NVS) BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 239MB LOWMEM available. On node 0 totalpages: 61424 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 57328 pages, LIFO batch:13 HighMem zone: 0 pages, LIFO batch:1 DMI 2.3 present. ACPI: RSDP (v000 AMI ) @ 0x000fa4a0 ACPI: RSDT (v001 AMIINT VIA_K7 0x00000010 MSFT 0x00000097) @ 0x0eff0000 ACPI: FADT (v001 AMIINT VIA_K7 0x00000011 MSFT 0x00000097) @ 0x0eff0030 ACPI: BOOT (v001 AMIINT VIA_K7 0x00000009 MSFT 0x00000097) @ 0x0eff00c0 ACPI: DSDT (v001 VIA TwisterK 0x00001000 INTL 0x02002024) @ 0x00000000 Building zonelist for node : 0 Kernel command line: BOOT_IMAGE=pld-2.6.0 ro root=303 console=ttyS0,57600n81 console=tty0 Initializing CPU#0 PID hash table entries: 1024 (order 10: 8192 bytes) Detected 1533.127 MHz processor. Console: colour VGA+ 80x60 Memory: 239588k/245696k available (1712k kernel code, 5412k reserved, 685k data, 172k init, 0k highmem) Calibrating delay loop... 3022.84 BogoMIPS Security Scaffold v1.0.0 initialized SELinux: Initializing. SELinux: Starting in permissive mode Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 188k freed CPU: After generic identify, caps: 0383f9ff c1cbf9ff 00000000 00000000 CPU: After vendor identify, caps: 0383f9ff c1cbf9ff 00000000 00000000 CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 256K (64 bytes/line) CPU: After all inits, caps: 0383f9ff c1cbf9ff 00000000 00000020 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: AMD mobile AMD Athlon(tm) XP-M 1800+ stepping 01 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX NET: Registered protocol family 16 PCI: PCI BIOS revision 2.10 entry at 0xfdb51, last bus=1 PCI: Using configuration type 1 mtrr: v2.0 (20020519) ACPI: Subsystem revision 20031002 ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (00:00) PCI: Probing PCI hardware (bus 00) ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: Power Resource [URP1] (off) ACPI: Power Resource [URP2] (off) ACPI: Power Resource [FDDP] (off) ACPI: Power Resource [LPTP] (off) ACPI: Embedded Controller [EC0] (gpe 5) ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *9 10 11 14 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 10 11 14 15) ACPI: PCI Interrupt Link [LNKC] (IRQs 5 9 *10 11 14 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 5 9 *10 11 14 15) ACPI: Power Resource [FN10] (on) Linux Plug and Play Support v0.97 (c) Adam Belay PnPBIOS: Scanning system for PnP BIOS support... PnPBIOS: Found PnP BIOS installation structure at 0xc00f7710 PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0x673b, dseg 0xf0000 PnPBIOS: Unknown tag '0x82', length '22'. PnPBIOS: 15 nodes reported by PnP BIOS; 15 recorded by driver ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 5 ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10 ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 9 PCI: Using ACPI for IRQ routing PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off' isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found SBF: Simple Boot Flag extension found and enabled. SBF: Setting boot flags 0x1 Machine check exception polling timer started. Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 devfs: v1.22 (20021013) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 Initializing Cryptographic API Applying VIA southbridge workaround. pty: 256 Unix98 ptys configured Serial: 8250/16550 driver $Revision: 1.90 $ 52 ports, IRQ sharing enabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller at PCI slot 0000:00:11.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: VIA vt8231 (rev 10) IDE UDMA100 controller on pci0000:00:11.1 ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:pio hda: TOSHIBA MK3021GAS, ATA DISK drive Using anticipatory io scheduler ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hdc: Samsung CD-RW/DVD-ROM SN-324B, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 128KiB hda: 58605120 sectors (30005 MB), CHS=58140/16/63, UDMA(100) /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 mice: PS/2 mouse device common for all mice i8042.c: Detected active multiplexing controller, rev 1.0. serio: i8042 AUX0 port at 0x60,0x64 irq 12 serio: i8042 AUX1 port at 0x60,0x64 irq 12 serio: i8042 AUX2 port at 0x60,0x64 irq 12 serio: i8042 AUX3 port at 0x60,0x64 irq 12 input: AT Translated Set 2 keyboard on isa0060/serio0 serio: i8042 KBD port at 0x60,0x64 irq 1 NET: Registered protocol family 2 IP: routing cache hash table of 2048 buckets, 16Kbytes TCP: Hash tables configured (established 16384 bind 32768) NET: Registered protocol family 1 NET: Registered protocol family 17 ACPI: (supports S0 S3 S4 S5) RAMDISK: Compressed image found at block 0 VFS: Mounted root (romfs filesystem) readonly. kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Trying to move old root to /initrd ... failed Unmounting old root Trying to free ramdisk memory ... okay Freeing unused kernel memory: 172k freed Adding 265064k swap on /dev/hda2. Priority:-1 extents:1 blk: queue c133e600, I/O limit 4095Mb (mask 0xffffffff) EXT3 FS on hda3, internal journal drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub Real Time Clock Driver v1.12 hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.12 There is already a security framework initialized, register_security failed. Failure registering capabilities with the kernel selinux_register_security: Registering secondary module capability Capability LSM initialized ACPI: AC Adapter [AC0] (on-line) ACPI: Battery Slot [BAT0] (battery present) ACPI: Power Button (FF) [PWRF] ACPI: Lid Switch [LID] ACPI: Sleep Button (CM) [SLPB] ACPI: Fan [FAN1] (off) ACPI: Processor [CPU1] (supports C1 C2) ACPI: Thermal Zone [THRM] (58 C) powernow: AMD K7 CPU detected. powernow: PowerNOW! Technology present. Can scale: frequency and voltage. powernow: Found PSB header at c00faf80 powernow: Table version: 0x12 powernow: Flags: 0x0 (Mobile voltage regulator) powernow: Settling Time: 100 microseconds. powernow: Has 86 PST tables. (Only dumping ones relevant to this CPU). powernow: PST:74 (@c00fb590) powernow: cpuid: 0x781 fsb: 133 maxFID: 0x1 startvid: 0xb powernow: FID: 0x6 (6.0x [798MHz]) VID: 0xd (1.350V) powernow: FID: 0x7 (6.5x [864MHz]) VID: 0xd (1.350V) powernow: FID: 0x9 (7.5x [997MHz]) VID: 0xd (1.350V) powernow: FID: 0xb (8.5x [1130MHz]) VID: 0xd (1.350V) powernow: FID: 0xd (9.5x [1263MHz]) VID: 0xd (1.350V) powernow: FID: 0xf (10.5x [1396MHz]) VID: 0xc (1.400V) powernow: FID: 0x1 (11.5x [1529MHz]) VID: 0xb (1.450V) powernow: Minimum speed 798 MHz. Maximum speed 1529 MHz. input: PS/2 Generic Mouse on isa0060/serio2 PCI: Setting latency timer of device 0000:00:11.5 to 64 NET: Registered protocol family 23 IrCOMM protocol (Dag Brattli) NTFS driver 2.1.4 [Flags: R/W MODULE]. NTFS volume version 3.1. via-rhine.c:v1.10-LK1.1.19-2.5 July-12-2003 Written by Donald Becker http://www.scyld.com/network/via-rhine.html eth0: VIA VT6102 Rhine-II at 0xd000, 00:a0:cc:da:d9:3c, IRQ 9. eth0: MII PHY found at address 1, status 0x7869 advertising 05e1 Link 41e1. eth0: Setting full-duplex based on MII #1 link partner capability of 41e1. IrDA: Registered device irda0 Linux Kernel Card Services options: [pci] [cardbus] [pm] Yenta: CardBus bridge found at 0000:00:08.0 [1584:3000] Yenta: ISA IRQ list 0800, PCI irq5 Socket status: 30000007 cs: IO port probe 0x0c00-0x0cff: clean. cs: IO port probe 0x0800-0x08ff: excluding 0x800-0x87f cs: IO port probe 0x0100-0x04ff: excluding 0x378-0x37f 0x3c0-0x3df 0x400-0x40f 0x4d0-0x4d7 cs: IO port probe 0x0a00-0x0aff: clean. ohci_hcd: 2003 Oct 13 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci_hcd: block sizes: ed 64 td 64 drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1 uhci_hcd 0000:00:11.2: UHCI Host Controller uhci_hcd 0000:00:11.2: irq 10, io base 0000d400 uhci_hcd 0000:00:11.2: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected uhci_hcd 0000:00:11.3: UHCI Host Controller uhci_hcd 0000:00:11.3: irq 10, io base 0000d800 uhci_hcd 0000:00:11.3: new USB bus registered, assigned bus number 2 hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected hub 1-0:1.0: new USB device on port 1, assigned address 2 drivers/usb/core/usb.c: registered new driver hiddev drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:11.2-1 drivers/usb/core/usb.c: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver drivers/usb/core/usb.c: registered new driver usbmouse drivers/usb/input/usbmouse.c: v1.6:USB HID Boot Protocol mouse driver NET: Registered protocol family 10 Disabled Privacy Extensions on device c0323080(lo) IPv6 over IPv4 tunneling driver Debug: sleeping function called from invalid context at include/asm/semaphore.h:119 in_atomic():1, irqs_disabled():0 Call Trace: [] __might_sleep+0xab/0xf0 [] inode_doinit_with_dentry+0x41/0x5d0 [] bm_fill_super+0x0/0x40 [binfmt_misc] [] d_instantiate+0x64/0x80 [] bm_register_write+0x150/0x1d0 [binfmt_misc] [] bm_register_write+0x0/0x1d0 [binfmt_misc] [] vfs_write+0xca/0x140 [] sys_write+0x3f/0x60 [] syscall_call+0x7/0xb eth0: no IPv6 routers present lspci: 00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 80) Subsystem: Uniwill Computer Corp: Unknown device 8100 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:08.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller Subsystem: Uniwill Computer Corp: Unknown device 3000 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- SERR- Reset- 16bInt+ PostWrite+ 16-bit legacy interface ports at 0001 00:10.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46) (prog-if 10 [OHCI]) Subsystem: Unknown device 8415:8200 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-