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
| ||
|
Date: Sun, 17 Sep 2017 09:42:43 +0800 From: kernel test robot <xiaolong.ye@...el.com> To: nixiaoming <nixiaoming@...wei.com> Cc: davem@...emloft.net, edumazet@...gle.com, waltje@...lt.NL.Mugnet.ORG, gw4pts@...pts.ampr.org, andreyknvl@...gle.com, tklauser@...tanz.ch, philip.pettersson@...il.com, glider@...gle.com, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, nixiaoming@...wei.com, dede.wu@...wei.com, lkp@...org Subject: [lkp-robot] [net/packet] d5013a2d16: BUG:sleeping_function_called_from_invalid_context_at_kernel/locking/mutex.c FYI, we noticed the following commit: commit: d5013a2d162004f30b500d35a589cffd09e6d209 ("net/packet: fix race condition between fanout_add and __unregister_prot_hook") url: https://github.com/0day-ci/linux/commits/nixiaoming/net-packet-fix-race-condition-between-fanout_add-and-__unregister_prot_hook/20170916-003907 in testcase: boot on test machine: qemu-system-i386 -enable-kvm -m 360M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-----------------------------------------------------------------------------+------------+------------+ | | 66bed8465a | d5013a2d16 | +-----------------------------------------------------------------------------+------------+------------+ | boot_successes | 37 | 2 | | boot_failures | 2 | 6 | | WARNING:at_arch/x86/include/asm/fpu/internal.h:#fpu__restore | 2 | | | EIP:fpu__restore | 1 | | | BUG:sleeping_function_called_from_invalid_context_at_kernel/locking/mutex.c | 0 | 6 | +-----------------------------------------------------------------------------+------------+------------+ [ 192.914933] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238 [ 192.932004] in_atomic(): 1, irqs_disabled(): 0, pid: 305, name: trinity-main [ 192.943993] Preemption disabled at: [ 192.944029] [<c4ab243b>] packet_release+0x9b/0x340 [ 192.963051] CPU: 0 PID: 305 Comm: trinity-main Not tainted 4.13.0-rc7-02204-gd5013a2 #1 [ 192.976507] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014 [ 192.993969] Call Trace: [ 193.000649] dump_stack+0x16/0x23 [ 193.009681] ___might_sleep+0x12f/0x180 [ 193.017231] ? packet_release+0x9b/0x340 [ 193.026055] ? packet_release+0x9b/0x340 [ 193.034027] __might_sleep+0x34/0x80 [ 193.040862] ? __might_sleep+0x34/0x80 [ 193.048214] mutex_lock+0x17/0x30 [ 193.056253] __unregister_prot_hook+0x1b/0x110 [ 193.064873] packet_release+0x2f1/0x340 [ 193.073205] ? dentry_free+0x3c/0x60 [ 193.080559] ? dentry_free+0x3c/0x60 [ 193.087429] sock_release+0x13/0x60 [ 193.094588] sock_close+0xb/0x10 [ 193.101074] __fput+0xa7/0x240 [ 193.108910] ____fput+0x8/0x10 [ 193.116661] task_work_run+0x67/0x90 [ 193.125994] do_exit+0x219/0xa20 [ 193.134063] ? preempt_schedule_common+0x72/0x80 [ 193.146020] do_group_exit+0x26/0xa0 [ 193.154611] get_signal+0x276/0x6a0 [ 193.164848] ? _copy_to_user+0x50/0x70 [ 193.173755] do_signal+0x1f/0x570 [ 193.181988] ? SyS_fstatat64+0x38/0x40 [ 193.190905] exit_to_usermode_loop+0x77/0xa0 [ 193.200461] do_fast_syscall_32+0x137/0x150 [ 193.210054] entry_SYSENTER_32+0x4e/0x7c [ 193.219676] EIP: 0xb7f46cf5 [ 193.228848] EFLAGS: 00000292 CPU: 0 [ 193.237952] EAX: 00000000 EBX: 0000019f ECX: 0869f52b EDX: bfac5fb0 [ 193.250499] ESI: 00000100 EDI: b7f3aff4 EBP: 0000000c ESP: bfac5f90 [ 193.264660] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b [ 193.986909] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238 [ 194.009983] in_atomic(): 1, irqs_disabled(): 0, pid: 305, name: trinity-main [ 194.024691] Preemption disabled at: [ 194.024727] [<c4ab243b>] packet_release+0x9b/0x340 [ 194.047543] CPU: 0 PID: 305 Comm: trinity-main Tainted: G W 4.13.0-rc7-02204-gd5013a2 #1 [ 194.068962] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014 [ 194.088992] Call Trace: [ 194.099198] dump_stack+0x16/0x23 [ 194.107979] ___might_sleep+0x12f/0x180 [ 194.117769] ? packet_release+0x9b/0x340 [ 194.127715] ? packet_release+0x9b/0x340 [ 194.137238] __might_sleep+0x34/0x80 [ 194.146545] ? __might_sleep+0x34/0x80 [ 194.155740] mutex_lock+0x17/0x30 [ 194.164231] __unregister_prot_hook+0x1b/0x110 [ 194.174637] packet_release+0x2f1/0x340 [ 194.183681] ? dentry_free+0x3c/0x60 [ 194.193859] ? dentry_free+0x3c/0x60 [ 194.202442] sock_release+0x13/0x60 [ 194.210998] sock_close+0xb/0x10 [ 194.219686] __fput+0xa7/0x240 [ 194.227557] ____fput+0x8/0x10 [ 194.235434] task_work_run+0x67/0x90 [ 194.244704] do_exit+0x219/0xa20 [ 194.252864] ? preempt_schedule_common+0x72/0x80 [ 194.263042] do_group_exit+0x26/0xa0 [ 194.271602] get_signal+0x276/0x6a0 [ 194.281679] ? _copy_to_user+0x50/0x70 [ 194.290592] do_signal+0x1f/0x570 [ 194.298757] ? SyS_fstatat64+0x38/0x40 [ 194.307606] exit_to_usermode_loop+0x77/0xa0 [ 194.317878] do_fast_syscall_32+0x137/0x150 [ 194.327982] entry_SYSENTER_32+0x4e/0x7c [ 194.337675] EIP: 0xb7f46cf5 [ 194.345841] EFLAGS: 00000292 CPU: 0 [ 194.354335] EAX: 00000000 EBX: 0000019f ECX: 0869f52b EDX: bfac5fb0 [ 194.366937] ESI: 00000100 EDI: b7f3aff4 EBP: 0000000c ESP: bfac5f90 [ 194.379475] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b [ 195.526777] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238 [ 195.547006] in_atomic(): 1, irqs_disabled(): 0, pid: 305, name: trinity-main [ 195.561033] Preemption disabled at: [ 195.561266] [<c4ab243b>] packet_release+0x9b/0x340 [ 195.588514] CPU: 0 PID: 305 Comm: trinity-main Tainted: G W 4.13.0-rc7-02204-gd5013a2 #1 [ 195.609740] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014 [ 195.632654] Call Trace: [ 195.640494] dump_stack+0x16/0x23 [ 195.649691] ___might_sleep+0x12f/0x180 [ 195.659870] ? packet_release+0x9b/0x340 [ 195.670014] ? packet_release+0x9b/0x340 [ 195.686710] __might_sleep+0x34/0x80 [ 195.696945] ? __might_sleep+0x34/0x80 [ 195.706701] mutex_lock+0x17/0x30 [ 195.715935] __unregister_prot_hook+0x1b/0x110 [ 195.725949] packet_release+0x2f1/0x340 [ 195.735567] ? dentry_free+0x3c/0x60 [ 195.759681] ? dentry_free+0x3c/0x60 [ 195.767720] sock_release+0x13/0x60 [ 195.776051] sock_close+0xb/0x10 [ 195.784924] __fput+0xa7/0x240 [ 195.793452] ____fput+0x8/0x10 [ 195.806022] task_work_run+0x67/0x90 [ 195.815457] do_exit+0x219/0xa20 [ 195.824630] ? preempt_schedule_common+0x72/0x80 [ 195.833374] do_group_exit+0x26/0xa0 [ 195.841182] get_signal+0x276/0x6a0 [ 195.848413] ? _copy_to_user+0x50/0x70 [ 195.861052] do_signal+0x1f/0x570 [ 195.878738] ? SyS_fstatat64+0x38/0x40 [ 195.888884] exit_to_usermode_loop+0x77/0xa0 [ 195.899518] do_fast_syscall_32+0x137/0x150 [ 195.910756] entry_SYSENTER_32+0x4e/0x7c [ 195.920909] EIP: 0xb7f46cf5 [ 195.934703] EFLAGS: 00000292 CPU: 0 [ 195.943879] EAX: 00000000 EBX: 0000019f ECX: 0869f52b EDX: bfac5fb0 [ 195.957946] ESI: 00000100 EDI: b7f3aff4 EBP: 0000000c ESP: bfac5f90 [ 195.973044] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b Elapsed time: 210 initrds=( /osimage/quantal/quantal-core-i386.cgz /lkp/scheduled/vm-lkp-wsx03-quantal-i386-21/boot-1-quantal-core-i386.cgz-d5013a2d162004f30b500d35a589cffd09e6d209-20170916-39065-1cb9eeg-0.cgz /lkp/lkp/lkp-i386.cgz ) cat "${initrds[@]}" > /fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-21 kvm=( qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-x0-09160554/gcc-6/d5013a2d162004f30b500d35a589cffd09e6d209/vmlinuz-4.13.0-rc7-02204-gd5013a2 -initrd /fs/sdc1/initrd-vm-lkp-wsx03-quantal-i386-21 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-lkp-wsx03-quantal-i386-21 -serial file:/dev/shm/kboot/vm-lkp-wsx03-quantal-i386-21/serial -serial file:/dev/shm/kboot/vm-lkp-wsx03-quantal-i386-21/kmsg -daemonize -display none -monitor null ) append=( ip=::::vm-lkp-wsx03-quantal-i386-21::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-wsx03-quantal-i386-21/boot-1-quantal-core-i386.cgz-d5013a2d162004f30b500d35a589cffd09e6d209-20170916-39065-1cb9eeg-0.yaml ARCH=i386 kconfig=i386-randconfig-x0-09160554 branch=linux-devel/devel-spot-201709160126 commit=d5013a2d162004f30b500d35a589cffd09e6d209 BOOT_IMAGE=/pkg/linux/i386-randconfig-x0-09160554/gcc-6/d5013a2d162004f30b500d35a589cffd09e6d209/vmlinuz-4.13.0-rc7-02204-gd5013a2 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03-quantal-i386/quantal-core-i386.cgz/i386-randconfig-x0-09160554/gcc-6/d5013a2d162004f30b500d35a589cffd09e6d209/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email Thanks, Xiaolong View attachment "config-4.13.0-rc7-02204-gd5013a2" of type "text/plain" (124713 bytes) View attachment "job-script" of type "text/plain" (3928 bytes) Download attachment "dmesg.xz" of type "application/x-xz" (16412 bytes)
Powered by blists - more mailing lists