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>] [day] [month] [year] [list]
Message-ID: <20160324015414.GB23869@yexl-desktop>
Date:	Thu, 24 Mar 2016 09:54:15 +0800
From:	kernel test robot <xiaolong.ye@...el.com>
To:	Andy Lutomirski <luto@...nel.org>
Cc:	LKML <linux-kernel@...r.kernel.org>, lkp@...org
Subject: [lkp] [x86/mm] a80e513582: BUG: sleeping function called from
 invalid context at kernel/locking/mutex.c:617

FYI, we noticed the below changes on

https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/pcid
commit a80e513582bdd0afcbe9140dcdd2c646fcdc32d1 ("x86/mm: Hold a mutex when propagating TLB flushes")

As below, the log "BUG: sleeping function called from invalid context at kernel/locking/mutex.c:617" showed with your commit.

[    6.230877]   No soundcards found.
[    6.233829] Freeing unused kernel memory: 1236K (ffffffff8300b000 - ffffffff83140000)
[    6.233829] Freeing unused kernel memory: 1236K (ffffffff8300b000 - ffffffff83140000)
[    6.235855] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:617
[    6.235855] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:617
[    6.238053] in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: init
[    6.238053] in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: init
[    6.239639] 2 locks held by init/1:
[    6.239639] 2 locks held by init/1:
[    6.240586]  #0: 
[    6.240586]  #0:  ( (&sig->cred_guard_mutex&sig->cred_guard_mutex){+.+.+.}){+.+.+.}, at: , at: [<ffffffff811926d0>] prepare_bprm_creds+0x30/0x70
[<ffffffff811926d0>] prepare_bprm_creds+0x30/0x70
[    6.242902]  #1: 
[    6.242902]  #1:  ( (&mm->mmap_sem&mm->mmap_sem){+.+.+.}){+.+.+.}, at: , at: [<ffffffff81191d38>] setup_arg_pages+0xb8/0x210
[<ffffffff81191d38>] setup_arg_pages+0xb8/0x210
[    6.244610] CPU: 0 PID: 1 Comm: init Not tainted 4.5.0-rc2-00215-ga80e513 #327
[    6.244610] CPU: 0 PID: 1 Comm: init Not tainted 4.5.0-rc2-00215-ga80e513 #327
[    6.245934] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[    6.245934] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[    6.247661]  ffffffff82b62ad0
[    6.247661]  ffffffff82b62ad0 ffff880013c97ac8 ffff880013c97ac8 ffffffff81523d99 ffffffff81523d99 ffff880013c90000 ffff880013c90000

[    6.249112]  ffff880013c97af0
[    6.249112]  ffff880013c97af0 ffffffff810bd7c2 ffffffff810bd7c2 ffffffff82b62ad0 ffffffff82b62ad0 0000000000000269 0000000000000269

[    6.250583]  0000000000000000
[    6.250583]  0000000000000000 ffff880013c97b18 ffff880013c97b18 ffffffff810bd8c4 ffffffff810bd8c4 0000000000000000 0000000000000000

[    6.251978] Call Trace:
[    6.251978] Call Trace:
[    6.252479]  [<ffffffff81523d99>] dump_stack+0x4b/0x72
[    6.252479]  [<ffffffff81523d99>] dump_stack+0x4b/0x72
[    6.253478]  [<ffffffff810bd7c2>] ___might_sleep+0x172/0x230
[    6.253478]  [<ffffffff810bd7c2>] ___might_sleep+0x172/0x230
[    6.254578]  [<ffffffff810bd8c4>] __might_sleep+0x44/0x80
[    6.254578]  [<ffffffff810bd8c4>] __might_sleep+0x44/0x80
[    6.255565]  [<ffffffff8242005d>] mutex_lock_nested+0x2d/0x3b0
[    6.255565]  [<ffffffff8242005d>] mutex_lock_nested+0x2d/0x3b0
[    6.256713]  [<ffffffff81041060>] propagate_tlb_flush+0x20/0x60
[    6.256713]  [<ffffffff81041060>] propagate_tlb_flush+0x20/0x60
[    6.257931]  [<ffffffff81041657>] flush_tlb_mm_range+0x37/0xb0
[    6.257931]  [<ffffffff81041657>] flush_tlb_mm_range+0x37/0xb0
[    6.259191]  [<ffffffff81165476>] move_page_tables+0x4e6/0x700
[    6.259191]  [<ffffffff81165476>] move_page_tables+0x4e6/0x700
[    6.260363]  [<ffffffff810cfc6a>] ? up_write+0x1a/0x40
[    6.260363]  [<ffffffff810cfc6a>] ? up_write+0x1a/0x40
[    6.261361]  [<ffffffff8119146a>] shift_arg_pages+0xaa/0x190
[    6.261361]  [<ffffffff8119146a>] shift_arg_pages+0xaa/0x190
[    6.262562]  [<ffffffff81191d38>] ? setup_arg_pages+0xb8/0x210
[    6.262562]  [<ffffffff81191d38>] ? setup_arg_pages+0xb8/0x210
[    6.264042]  [<ffffffff81191e57>] setup_arg_pages+0x1d7/0x210
[    6.264042]  [<ffffffff81191e57>] setup_arg_pages+0x1d7/0x210
[    6.265160]  [<ffffffff811d723f>] load_elf_binary+0x45f/0x16a0
[    6.265160]  [<ffffffff811d723f>] load_elf_binary+0x45f/0x16a0
[    6.266235]  [<ffffffff82423ec2>] ? _raw_read_unlock+0x22/0x30
[    6.266235]  [<ffffffff82423ec2>] ? _raw_read_unlock+0x22/0x30
[    6.267294]  [<ffffffff81192ad6>] ? search_binary_handler+0x46/0xe0
[    6.267294]  [<ffffffff81192ad6>] ? search_binary_handler+0x46/0xe0
[    6.268491]  [<ffffffff81192ae5>] search_binary_handler+0x55/0xe0
[    6.268491]  [<ffffffff81192ae5>] search_binary_handler+0x55/0xe0
[    6.269624]  [<ffffffff8119319c>] do_execveat_common+0x62c/0x7e0
[    6.269624]  [<ffffffff8119319c>] do_execveat_common+0x62c/0x7e0
[    6.270815]  [<ffffffff811930fa>] ? do_execveat_common+0x58a/0x7e0
[    6.270815]  [<ffffffff811930fa>] ? do_execveat_common+0x58a/0x7e0
[    6.271973]  [<ffffffff8241bb00>] ? rest_init+0x140/0x140
[    6.271973]  [<ffffffff8241bb00>] ? rest_init+0x140/0x140
[    6.272982]  [<ffffffff8119336a>] do_execve+0x1a/0x20
[    6.272982]  [<ffffffff8119336a>] do_execve+0x1a/0x20
[    6.273941]  [<ffffffff81002026>] run_init_process+0x26/0x30
[    6.273941]  [<ffffffff81002026>] run_init_process+0x26/0x30
[    6.274995]  [<ffffffff8241bb38>] kernel_init+0x38/0xd0
[    6.274995]  [<ffffffff8241bb38>] kernel_init+0x38/0xd0
[    6.275965]  [<ffffffff824245df>] ret_from_fork+0x3f/0x70
[    6.275965]  [<ffffffff824245df>] ret_from_fork+0x3f/0x70
[    6.277027]  [<ffffffff8241bb00>] ? rest_init+0x140/0x140
[    6.277027]  [<ffffffff8241bb00>] ? rest_init+0x140/0x140
[    6.284658] random: init urandom read with 3 bits of entropy available
[    6.284658] random: init urandom read with 3 bits of entropy available
[    6.344527] init: Failed to create pty - disabling logging for job


FYI, raw QEMU command line is:

	qemu-system-x86_64 -enable-kvm -kernel /pkg/linux/x86_64-randconfig-i0-201612/gcc-5/a80e513582bdd0afcbe9140dcdd2c646fcdc32d1/vmlinuz-4.5.0-rc2-00215-ga80e513 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-vp-quantal-x86_64-53/bisect_boot-1-quantal-core-x86_64.cgz-x86_64-randconfig-i0-201612-a80e513582bdd0afcbe9140dcdd2c646fcdc32d1-20160323-39787-9dnifg-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-i0-201612 branch=luto/x86/pcid commit=a80e513582bdd0afcbe9140dcdd2c646fcdc32d1 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-i0-201612/gcc-5/a80e513582bdd0afcbe9140dcdd2c646fcdc32d1/vmlinuz-4.5.0-rc2-00215-ga80e513 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-vp-quantal-x86_64/quantal-core-x86_64.cgz/x86_64-randconfig-i0-201612/gcc-5/a80e513582bdd0afcbe9140dcdd2c646fcdc32d1/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal rw ip=::::vm-vp-quantal-x86_64-53::dhcp drbd.minor_count=8'  -initrd /fs/sdb1/initrd-vm-vp-quantal-x86_64-53 -m 360 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-vp-quantal-x86_64-53 -serial file:/dev/shm/kboot/serial-vm-vp-quantal-x86_64-53 -daemonize -display none -monitor null 




Thanks,
Xiaolong Ye.

View attachment "config-4.5.0-rc2-00215-ga80e513" of type "text/plain" (108870 bytes)

Download attachment "dmesg.xz" of type "application/octet-stream" (18856 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ