lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E04C82C.1090201@elka.pw.edu.pl>
Date:	Fri, 24 Jun 2011 19:23:56 +0200
From:	Wojtek Zabolotny <W.Zabolotny@...a.pw.edu.pl>
To:	"LKML" <linux-kernel@...r.kernel.org>
Subject: Kernel 2.6.39.2 - incorrect calling of sleeping function and  lockdep
 problem found

When the new 2.6.39.2 kernel was published, I tried to compile it for my poor HT machine,
which is not able to run any kernel above 2.6.38 :-(.

When booting the 2.6.39.2 I've found following problems:

[  185.866381] usb 2-1.2: new full speed USB device number 4 using uhci_hcd
[  188.501954] BUG: sleeping function called from invalid context at include/linux/pagemap.h:350
[  188.503335] in_atomic(): 0, irqs_disabled(): 1, pid: 1204, name: blkid
[  188.503335] 1 lock held by blkid/1204:
[  188.503335]  #0:  (&mm->mmap_sem){++++++}, at: [<c0122c42>] do_page_fault+0xc2/0x440
[  188.503335] irq event stamp: 38360
[  188.503335] hardirqs last  enabled at (38359): [<c0462638>] restore_all_notrace+0x0/0x18
[  188.503335] hardirqs last disabled at (38360): [<c0462b5f>] error_code+0x5b/0x64
[  188.503335] softirqs last  enabled at (37150): [<c0141e3c>] __do_softirq+0xdc/0x130
[  188.503335] softirqs last disabled at (37133): [<c0104c07>] do_softirq+0x87/0xd0
[  188.503335] Pid: 1204, comm: blkid Tainted: G        W   2.6.39.2 #1
[  188.503335] Call Trace:
[  188.503335]  [<c0104c07>] ? do_softirq+0x87/0xd0
[  188.503335]  [<c04564c6>] __might_sleep.part.127+0x8f/0x95
[  188.503335]  [<c012fb11>] __might_sleep+0x71/0x90
[  188.503335]  [<c0196fc5>] filemap_fault+0xf5/0x3b0
[  188.503335]  [<c0462556>] ? ret_from_exception+0x6/0x6
[  188.503335]  [<c01ab809>] __do_fault+0x39/0x410
[  188.503335]  [<c028d1b0>] ? trace_hardirqs_off_thunk+0xc/0x1c
[  188.503335]  [<c0462556>] ? ret_from_exception+0x6/0x6
[  188.503335]  [<c0135dfb>] ? sub_preempt_count.part.142+0x3b/0x80
[  188.503335]  [<c01ae7f8>] handle_pte_fault+0x88/0x1e0
[  188.503335]  [<c01ae9d1>] handle_mm_fault+0x81/0xb0
[  188.503335]  [<c0122ca1>] do_page_fault+0x121/0x440
[  188.503335]  [<c028d1a0>] ? trace_hardirqs_on_thunk+0xc/0x10
[  188.503335]  [<c01b007b>] ? sys_mlockall+0x3b/0xf0
[  188.503335]  [<c0462638>] ? restore_all+0xf/0xf
[  188.503335]  [<c0122b80>] ? vmalloc_sync_all+0x100/0x100
[  188.503335]  [<c0462b63>] error_code+0x5f/0x64
[  188.503335]  [<c0122b80>] ? vmalloc_sync_all+0x100/0x100
[  188.503335] ------------[ cut here ]------------
[  188.503335] WARNING: at kernel/lockdep.c:2465 __lockdep_trace_alloc+0x6a/0x70()
[  188.503335] Hardware name:
[  188.503335] Modules linked in: ir_jvc_decoder snd_timer snd_seq_device bttv(+) ir_rc6_decoder i915(+) ir_rc5_decoder firmware_class snd videobuf_dma_sg ir_nec_decoder videobuf_core pcspkr 
uhci_hcd(+) btcx_risc ehci_hcd rc_core tveeprom usbcore v4l2_common e1000 videodev 8139too parport_serial 8139cp soundcore 8250_pci mii snd_page_alloc i2c_i801 shpchp drm_kms_helper pci_hotplug 
intel_agp intel_gtt parport_pc floppy parport 8250_pnp evdev processor unix
[  188.503335] Pid: 1204, comm: blkid Tainted: G        W   2.6.39.2 #1
[  188.503335] Call Trace:
[  188.503335]  [<c0456a7c>] ? printk+0x18/0x1a
[  188.503335]  [<c013be9d>] warn_slowpath_common+0x6d/0xa0
[  188.503335]  [<c016d30a>] ? __lockdep_trace_alloc+0x6a/0x70
[  188.503335]  [<c016d30a>] ? __lockdep_trace_alloc+0x6a/0x70
[  188.503335]  [<c013beed>] warn_slowpath_null+0x1d/0x20
[  188.503335]  [<c016d30a>] __lockdep_trace_alloc+0x6a/0x70
[  188.503335]  [<c016d98f>] lockdep_trace_alloc+0x3f/0x60
[  188.503335]  [<c01be78a>] kmem_cache_alloc+0x1a/0x110
[  188.503335]  [<c01b5573>] anon_vma_prepare+0x53/0x150
[  188.503335]  [<c01aba47>] __do_fault+0x277/0x410
[  188.503335]  [<c028d1b0>] ? trace_hardirqs_off_thunk+0xc/0x1c
[  188.503335]  [<c01ae7f8>] handle_pte_fault+0x88/0x1e0
[  188.503335]  [<c01ae9d1>] handle_mm_fault+0x81/0xb0
[  188.503335]  [<c0122ca1>] do_page_fault+0x121/0x440
[  188.503335]  [<c028d1a0>] ? trace_hardirqs_on_thunk+0xc/0x10
[  188.503335]  [<c01b007b>] ? sys_mlockall+0x3b/0xf0
[  188.503335]  [<c0462638>] ? restore_all+0xf/0xf
[  188.503335]  [<c0122b80>] ? vmalloc_sync_all+0x100/0x100
[  188.503335]  [<c0462b63>] error_code+0x5f/0x64
[  188.503335]  [<c0122b80>] ? vmalloc_sync_all+0x100/0x100
[  188.503335] ---[ end trace 93d72a36b9146f24 ]---
[  188.847213] kobject: 'ptyc8' (f481a808): kobject_uevent_env

I attach the .config file of the affected machine.

-- 
Regards,
WZab


View attachment ".config" of type "text/plain" (102460 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ