[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120803093028.GA16195@localhost>
Date: Fri, 3 Aug 2012 17:30:28 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [signal:execve2] BUG: sleeping function called from sys_brk
Hi Al,
> I got a boot warning on commit
>
> tree: git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git execve2
> head: 1ade99215ed3c334a544b9e1773602ff0f0251ab
> commit: 1ade99215ed3c334a544b9e1773602ff0f0251ab [9/9] x86: switch to generic sys_execve and kernel_execve
The same commit triggers other warnings (new config and dmesg attached):
[ 18.315125] debug: unmapping init [mem 0x816b6000-0x81852fff]
[ 18.318178] BUG: sleeping function called from invalid context at /c/kernel-tests/src/stable/kernel/rwsem.c:47
[ 18.318243] in_atomic(): 0, irqs_disabled(): 1, pid: 1, name: init
[ 18.318243] no locks held by init/1.
[ 18.318243] Pid: 1, comm: init Not tainted 3.5.0-01258-g1ade992 #182
[ 18.318243] Call Trace:
[ 18.318243] [<8109e07d>] __might_sleep+0x13d/0x170
[ 18.318243] [<813cea7c>] down_write+0x2c/0xd0
[ 18.318243] [<81166ae9>] sys_brk+0x29/0x1f0
[ 18.318243] [<813d22d0>] syscall_call+0x7/0xb
Thanks,
Fengguang
---
> The dmesg is:
>
> INIT: version 2.88 booting
> [ 5.951324] ------------[ cut here ]------------
> [ 5.952002] WARNING: at /c/kernel-tests/src/linux/kernel/smp.c:461 smp_call_function_many+0x89/0x1f4()
> [ 5.952002] Hardware name: Bochs
> [ 5.952002] Modules linked in:
> [ 5.952002] Pid: 1, comm: init Not tainted 3.5.0-01258-g1ade992 #281
> [ 5.952002] Call Trace:
> [ 5.952002] [<81023fd0>] warn_slowpath_common+0x63/0x78
> [ 5.952002] [<8105a281>] ? smp_call_function_many+0x89/0x1f4
> [ 5.952002] [<81023ff4>] warn_slowpath_null+0xf/0x13
> [ 5.977019] [<8105a281>] smp_call_function_many+0x89/0x1f4
> [ 5.977019] [<81020af7>] ? do_flush_tlb_all+0x33/0x33
> [ 5.977019] [<81020b7b>] native_flush_tlb_others+0x21/0x24
> [ 5.977019] [<81020d04>] flush_tlb_mm_range+0x13b/0x147
> [ 5.977019] [<81090a9f>] ? unmap_single_vma+0x85/0x8f
> [ 5.977019] [<8108f36b>] tlb_flush_mmu+0x33/0x64
> [ 5.977019] [<8108f3ae>] tlb_finish_mmu+0x12/0x31
> [ 5.977019] [<810934cb>] unmap_region+0x90/0x99
> [ 5.977019] [<81093c87>] ? __split_vma+0xfd/0x168
> [ 5.977019] [<810944a2>] do_munmap+0x1b2/0x218
> [ 5.977019] [<81094538>] vm_munmap+0x30/0x41
> [ 5.977019] [<81094557>] sys_munmap+0xe/0x10
> [ 5.977019] [<811cefe1>] syscall_call+0x7/0xb
> [ 5.977019] ---[ end trace 92e8f2a74c2dbd76 ]---
> [ 5.977019] ------------[ cut here ]------------
> [ 5.977019] WARNING: at /c/kernel-tests/src/linux/kernel/smp.c:322 smp_call_function_single+0x7e/0x13b()
> [ 5.977019] Hardware name: Bochs
> [ 5.977019] Modules linked in:
> [ 5.977019] Pid: 1, comm: init Tainted: G W 3.5.0-01258-g1ade992 #281
> [ 5.977019] Call Trace:
> [ 5.977019] [<81023fd0>] warn_slowpath_common+0x63/0x78
> [ 5.977019] [<8105a057>] ? smp_call_function_single+0x7e/0x13b
> [ 5.977019] [<81020af7>] ? do_flush_tlb_all+0x33/0x33
> [ 5.977019] [<81023ff4>] warn_slowpath_null+0xf/0x13
> [ 5.977019] [<8105a057>] smp_call_function_single+0x7e/0x13b
> [ 5.977019] [<8105a2f7>] smp_call_function_many+0xff/0x1f4
> [ 5.977019] [<81020af7>] ? do_flush_tlb_all+0x33/0x33
> [ 5.977019] [<81020b7b>] native_flush_tlb_others+0x21/0x24
> [ 5.977019] [<81020d04>] flush_tlb_mm_range+0x13b/0x147
> [ 5.977019] [<81090a9f>] ? unmap_single_vma+0x85/0x8f
> [ 5.977019] [<8108f36b>] tlb_flush_mmu+0x33/0x64
> [ 5.977019] [<8108f3ae>] tlb_finish_mmu+0x12/0x31
> [ 5.977019] [<810934cb>] unmap_region+0x90/0x99
> [ 5.977019] [<81093c87>] ? __split_vma+0xfd/0x168
> [ 5.977019] [<810944a2>] do_munmap+0x1b2/0x218
> [ 5.977019] [<81094538>] vm_munmap+0x30/0x41
> [ 5.977019] [<81094557>] sys_munmap+0xe/0x10
> [ 5.977019] [<811cefe1>] syscall_call+0x7/0xb
> [ 5.977019] ---[ end trace 92e8f2a74c2dbd77 ]---
> mount: mounting proc on /proc failed: No such device
> /etc/rcS.d/S00fbsetup: line 3: /sbin/modprobe: No such file or directory
>
> Please wait: booting...
> mount: mounting proc on /proc failed: No such device
> grep: /proc/filesystems: No such file or directory
> Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
> bootlogd.
> mount: can't read '/proc/mounts': No such file or directory
> /etc/rcS.d/S37populate-volatile.sh: line 172: /proc/cmdline: No such file or directory
> grep: /proc/filesystems: No such file or directory
> Configuring network interfaces... [ 7.003872] ------------[ cut here ]------------
> [ 7.004052] WARNING: at /c/kernel-tests/src/linux/kernel/softirq.c:159 local_bh_enable+0x2f/0x78()
> [ 7.004052] Hardware name: Bochs
> [ 7.004052] Modules linked in:
> [ 7.004052] Pid: 96, comm: sh Tainted: G W 3.5.0-01258-g1ade992 #281
> [ 7.004052] Call Trace:
> [ 7.004052] [<81023fd0>] warn_slowpath_common+0x63/0x78
> [ 7.004052] [<81029871>] ? local_bh_enable+0x2f/0x78
> [ 7.004052] [<81023ff4>] warn_slowpath_null+0xf/0x13
> [ 7.004052] [<81029871>] local_bh_enable+0x2f/0x78
> [ 7.004052] [<811b4ab0>] unix_create1+0x115/0x12a
> [ 7.004052] [<811b4b16>] unix_create+0x51/0x69
> [ 7.004052] [<8115af7d>] __sock_create+0xce/0x128
> [ 7.004052] [<8115b014>] sock_create+0x24/0x29
> [ 7.004052] [<8115b321>] sys_socket+0x25/0x5a
> [ 7.004052] [<8115bfa7>] sys_socketcall+0x58/0x1a1
> [ 7.004052] [<811cefe1>] syscall_call+0x7/0xb
> [ 7.004052] ---[ end trace 92e8f2a74c2dbd78 ]---
View attachment "config-3.5.0-01258-g1ade992" of type "text/plain" (34745 bytes)
View attachment "dmesg-kvm-bens-3073-2012-08-03-09-43-16" of type "text/plain" (76241 bytes)
Powered by blists - more mailing lists