bisecting cause commit starting from 8ca403f3e7a23c4513046ad8d107adfbe4703362 building syzkaller on 6972b10616d785401dea17cec890cca8916424a7 testing commit 8ca403f3e7a23c4513046ad8d107adfbe4703362 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5a10377c7ac321fe82e38df63a658f2dd400a5e3207b23023185e1274ba686f1 all runs: crashed: INFO: task can't die in __lock_sock testing release v5.13 testing commit 62fb9874f5da54fdb243003b386128037319b219 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 1cb5111c0f95c1fc7e3896d55db5b53fbce5858f143c657e735c92f7019c7d10 all runs: OK # git bisect start 8ca403f3e7a23c4513046ad8d107adfbe4703362 62fb9874f5da54fdb243003b386128037319b219 Bisecting: 10721 revisions left to test after this (roughly 14 steps) [a16d8644bad461bb073b92e812080ea6715ddf2b] Merge tag 'staging-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit a16d8644bad461bb073b92e812080ea6715ddf2b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 731f071ac0890eca6e2659c43417eae356e689c88e2c3c3cc1a035a586b04abb run #0: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #1: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(0,0) run #2: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(0,0) run #3: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #4: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(0,0) run #5: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #6: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(0,0) run #7: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #8: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(0,0) run #9: boot failed: BUG: sleeping function called from invalid context in stack_depot_save # git bisect skip a16d8644bad461bb073b92e812080ea6715ddf2b Bisecting: 10721 revisions left to test after this (roughly 14 steps) [3099406ef4832124ce572cfbbc914e8a385ca38f] ALSA: hda: Release codec display power during shutdown/reboot testing commit 3099406ef4832124ce572cfbbc914e8a385ca38f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 08bec82a18591cd5359d1ff10631cdc255dbc4aacf6a402fb7d63a86f274dbb1 all runs: OK # git bisect good 3099406ef4832124ce572cfbbc914e8a385ca38f Bisecting: 10721 revisions left to test after this (roughly 13 steps) [7ac5ed5095a579ea12cedc30978ffb048b4a0884] staging: rtl8723bs: hal: Remove set but unused variable testing commit 7ac5ed5095a579ea12cedc30978ffb048b4a0884 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: e2ac86c7be016c5a2d8993740c1952a0a05f503a92c507a3ec15c5615a870030 all runs: OK # git bisect good 7ac5ed5095a579ea12cedc30978ffb048b4a0884 Bisecting: 10721 revisions left to test after this (roughly 13 steps) [bfc3cac0c76126995737f1b858d2cdb476be5b1d] smack: mark 'smack_enabled' global variable as __initdata testing commit bfc3cac0c76126995737f1b858d2cdb476be5b1d compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 75e304675f629c7a9816e8104d69209b5f59fc2a366ede253a78136cd4ce8312 all runs: OK # git bisect good bfc3cac0c76126995737f1b858d2cdb476be5b1d Bisecting: 3610 revisions left to test after this (roughly 12 steps) [8aa48b26c73957e7b36294b9e4ebf4a4ef7fdf9e] Merge remote-tracking branch 'net-next/master' testing commit 8aa48b26c73957e7b36294b9e4ebf4a4ef7fdf9e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 555da3c189d8bb1163e78953831c80760befdbf14953f5aee6266b390f8b4223 all runs: OK # git bisect good 8aa48b26c73957e7b36294b9e4ebf4a4ef7fdf9e Bisecting: 1816 revisions left to test after this (roughly 11 steps) [19c40b2e5c06d0289f78f38ae413458e7d37f7bf] Merge remote-tracking branch 'irqchip/irq/irqchip-next' testing commit 19c40b2e5c06d0289f78f38ae413458e7d37f7bf compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 144efffb9fbadf0f3327203592ad6c380c94d5982007d72e6b645785a7d2bf14 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad 19c40b2e5c06d0289f78f38ae413458e7d37f7bf Bisecting: 908 revisions left to test after this (roughly 10 steps) [3643700fcbcee9a69d95c6441677e612f7ed9707] Merge remote-tracking branch 'amdgpu/drm-next' testing commit 3643700fcbcee9a69d95c6441677e612f7ed9707 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: c817477c80192b2c631dc79426e6ad0101039a4ae0ccd7d2165ae799a3b1ec86 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad 3643700fcbcee9a69d95c6441677e612f7ed9707 Bisecting: 479 revisions left to test after this (roughly 9 steps) [f1b7996551a40a4ebb551130c83077a0cabcb935] Merge tag 'drm-msm-next-2021-07-28' of https://gitlab.freedesktop.org/drm/msm into drm-next testing commit f1b7996551a40a4ebb551130c83077a0cabcb935 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: b3dfe1d87adb99fd5bb3c2743d16bfd75876ed83a07f0d12f69c44a2af40bf94 all runs: OK # git bisect good f1b7996551a40a4ebb551130c83077a0cabcb935 Bisecting: 239 revisions left to test after this (roughly 8 steps) [626803d1f21719d4a91d3f693fc3b1515993b8e5] Revert "Revert "drm/amdkfd: Add memory sync before TLB flush on unmap"" testing commit 626803d1f21719d4a91d3f693fc3b1515993b8e5 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: b3dfe1d87adb99fd5bb3c2743d16bfd75876ed83a07f0d12f69c44a2af40bf94 all runs: OK # git bisect good 626803d1f21719d4a91d3f693fc3b1515993b8e5 Bisecting: 119 revisions left to test after this (roughly 7 steps) [225b1e6400440ef9401a4dc24da9a2d2d497d408] Merge remote-tracking branch 'crypto/master' testing commit 225b1e6400440ef9401a4dc24da9a2d2d497d408 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 2ab3b67db07c7aae9625b95c1f115f39c46edb752abb04fc5a2fc7ffe484c2cc all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad 225b1e6400440ef9401a4dc24da9a2d2d497d408 Bisecting: 70 revisions left to test after this (roughly 6 steps) [55981d3541812234e687062926ff199c83f79a39] Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS testing commit 55981d3541812234e687062926ff199c83f79a39 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 8dbc924fec32ddc9cd149eed620422edd6addab8d5d9ba7cc8f8a01e8391169a run #0: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #1: crashed: INFO: task hung in lock_sock_nested run #2: crashed: INFO: task hung in lock_sock_nested run #3: crashed: INFO: task hung in lock_sock_nested run #4: crashed: INFO: task hung in lock_sock_nested run #5: crashed: INFO: task hung in lock_sock_nested run #6: crashed: INFO: task hung in lock_sock_nested run #7: crashed: INFO: task hung in lock_sock_nested run #8: crashed: INFO: task hung in lock_sock_nested run #9: crashed: INFO: task hung in lock_sock_nested # git bisect bad 55981d3541812234e687062926ff199c83f79a39 Bisecting: 23 revisions left to test after this (roughly 5 steps) [67cbdd74c4cba378a715003923fc418a10349fae] Bluetooth: hci_bcm: Fix kernel doc comments testing commit 67cbdd74c4cba378a715003923fc418a10349fae compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: c70cc63e72a6646ef8c75e7a134e7d6eb9df1f2df36e0e341fcb745f72db5086 all runs: OK # git bisect good 67cbdd74c4cba378a715003923fc418a10349fae Bisecting: 11 revisions left to test after this (roughly 4 steps) [019a1caa7fd2c9bb689f9a15fe8cb1d53aa6d8b8] Bluetooth: btintel: Refactoring setup routine for bootloader devices testing commit 019a1caa7fd2c9bb689f9a15fe8cb1d53aa6d8b8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: cbeeb01144c315ae20f4ca1b660aac65c168d94ac72bace61f00fcfe48a45ee9 all runs: OK # git bisect good 019a1caa7fd2c9bb689f9a15fe8cb1d53aa6d8b8 Bisecting: 5 revisions left to test after this (roughly 3 steps) [ba316be1b6a00db7126ed9a39f9bee434a508043] Bluetooth: schedule SCO timeouts with delayed_work testing commit ba316be1b6a00db7126ed9a39f9bee434a508043 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 74dcc7f0111fb6dfeb323e6ff044a6be9fffd7c6b2ac0069d18a38e91b88e7c2 run #0: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good ba316be1b6a00db7126ed9a39f9bee434a508043 Bisecting: 2 revisions left to test after this (roughly 2 steps) [3f2c89fb465f63fe14da804a8afcd7ac6776508e] Bluetooth: serialize calls to sco_sock_{set,clear}_timer testing commit 3f2c89fb465f63fe14da804a8afcd7ac6776508e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 06ee6c10e9b75644632de7e311961da90aba5c6f3fe18da34fe293e42a13a1a7 run #0: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 3f2c89fb465f63fe14da804a8afcd7ac6776508e Bisecting: 1 revision left to test after this (roughly 1 step) [b7ce436a5d798bc59e71797952566608a4b4626b] Bluetooth: switch to lock_sock in RFCOMM testing commit b7ce436a5d798bc59e71797952566608a4b4626b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 89466cf26024938064253e23c45a106b6c7d86ab97dd984612e2616c2635b7f3 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad b7ce436a5d798bc59e71797952566608a4b4626b b7ce436a5d798bc59e71797952566608a4b4626b is the first bad commit commit b7ce436a5d798bc59e71797952566608a4b4626b Author: Desmond Cheong Zhi Xi Date: Tue Aug 10 12:14:09 2021 +0800 Bluetooth: switch to lock_sock in RFCOMM Other than rfcomm_sk_state_change and rfcomm_connect_ind, functions in RFCOMM use lock_sock to lock the socket. Since bh_lock_sock and spin_lock_bh do not provide synchronization with lock_sock, these calls should be changed to lock_sock. This is now safe to do because packet processing is now done in a workqueue instead of a tasklet, so bh_lock_sock/spin_lock_bh are no longer necessary to synchronise between user contexts and SOFTIRQ processing. Signed-off-by: Desmond Cheong Zhi Xi Signed-off-by: Luiz Augusto von Dentz net/bluetooth/rfcomm/sock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) culprit signature: 89466cf26024938064253e23c45a106b6c7d86ab97dd984612e2616c2635b7f3 parent signature: 06ee6c10e9b75644632de7e311961da90aba5c6f3fe18da34fe293e42a13a1a7 revisions tested: 18, total time: 4h51m48.505945722s (build: 1h58m57.887977931s, test: 2h50m37.8220917s) first bad commit: b7ce436a5d798bc59e71797952566608a4b4626b Bluetooth: switch to lock_sock in RFCOMM recipients (to): ["davem@davemloft.net" "desmondcheongzx@gmail.com" "johan.hedberg@gmail.com" "kuba@kernel.org" "linux-bluetooth@vger.kernel.org" "luiz.dentz@gmail.com" "luiz.von.dentz@intel.com" "marcel@holtmann.org" "netdev@vger.kernel.org"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: INFO: task hung in lock_sock_nested INFO: task syz-executor.1:10966 blocked for more than 143 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:27600 pid:10966 ppid: 8941 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 __lock_sock+0x118/0x1f0 net/core/sock.c:2631 lock_sock_nested+0xd2/0xf0 net/core/sock.c:3164 lock_sock include/net/sock.h:1613 [inline] rfcomm_sk_state_change+0x99/0x320 net/bluetooth/rfcomm/sock.c:73 __rfcomm_dlc_close+0x153/0x770 net/bluetooth/rfcomm/core.c:489 rfcomm_dlc_close+0x1a4/0x200 net/bluetooth/rfcomm/core.c:520 __rfcomm_sock_close+0x80/0x1f0 net/bluetooth/rfcomm/sock.c:220 rfcomm_sock_shutdown+0xb1/0x1b0 net/bluetooth/rfcomm/sock.c:931 rfcomm_sock_release+0x4a/0x120 net/bluetooth/rfcomm/sock.c:951 __sock_release+0xbb/0x270 net/socket.c:648 sock_close+0xf/0x20 net/socket.c:1300 __fput+0x209/0x870 fs/file_table.c:280 task_work_run+0xc0/0x160 kernel/task_work.c:164 get_signal+0x1529/0x1c80 kernel/signal.c:2581 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f2ca82cc188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: fffffffffffffffc RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff6013826f R14: 00007f2ca82cc300 R15: 0000000000022000 INFO: task syz-executor.4:11023 blocked for more than 143 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27600 pid:11023 ppid: 8940 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f6749733188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe579f040f R14: 00007f6749733300 R15: 0000000000022000 INFO: task syz-executor.4:11026 blocked for more than 143 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:28512 pid:11026 ppid: 8940 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f6749712188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffe579f040f R14: 00007f6749712300 R15: 0000000000022000 INFO: task syz-executor.5:11076 blocked for more than 144 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27600 pid:11076 ppid: 8937 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007fa691648188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fffdfc8afbf R14: 00007fa691648300 R15: 0000000000022000 INFO: task syz-executor.5:11085 blocked for more than 144 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28512 pid:11085 ppid: 8937 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007fa691627188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007fffdfc8afbf R14: 00007fa691627300 R15: 0000000000022000 INFO: task syz-executor.3:11084 blocked for more than 144 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27600 pid:11084 ppid: 8939 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f5a817c4188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff53e46b9f R14: 00007f5a817c4300 R15: 0000000000022000 INFO: task syz-executor.3:11087 blocked for more than 144 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:28512 pid:11087 ppid: 8939 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f5a817a3188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007fff53e46b9f R14: 00007f5a817a3300 R15: 0000000000022000 INFO: task syz-executor.2:11091 blocked for more than 144 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:27600 pid:11091 ppid: 8942 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f615facd188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe49cb68af R14: 00007f615facd300 R15: 0000000000022000 INFO: task syz-executor.2:11093 blocked for more than 145 seconds. Not tainted 5.14.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28512 pid:11093 ppid: 8942 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0x907/0x26b0 kernel/sched/core.c:5940 schedule+0xd3/0x270 kernel/sched/core.c:6019 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6078 __mutex_lock_common kernel/locking/mutex.c:1036 [inline] __mutex_lock+0x7b6/0x10a0 kernel/locking/mutex.c:1104 rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 rfcomm_sock_connect+0x2ac/0x3b0 net/bluetooth/rfcomm/sock.c:413 __sys_connect+0xf5/0x120 net/socket.c:1896 __do_sys_connect net/socket.c:1906 [inline] __se_sys_connect net/socket.c:1903 [inline] __x64_sys_connect+0x6a/0xb0 net/socket.c:1903 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007f615faac188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffe49cb68af R14: 00007f615faac300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1654: #0: ffffffff8ab71f80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446 1 lock held by krfcommd/4780: #0: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_process_sessions net/bluetooth/rfcomm/core.c:1979 [inline] #0: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_run+0x290/0x4250 net/bluetooth/rfcomm/core.c:2086 1 lock held by systemd-journal/4866: #0: ffff8880b9e51a58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:460 [inline] #0: ffff8880b9e51a58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1307 [inline] #0: ffff8880b9e51a58 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1610 [inline] #0: ffff8880b9e51a58 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x233/0x26b0 kernel/sched/core.c:5854 1 lock held by in:imklog/8360: #0: ffff888017d9e370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x9c/0xb0 fs/file.c:974 4 locks held by syz-executor.1/10966: #0: ffff8880396aa6d0 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline] #0: ffff8880396aa6d0 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: __sock_release+0x76/0x270 net/socket.c:647 #1: ffff888016f18120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #1: ffff888016f18120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_shutdown+0x41/0x1b0 net/bluetooth/rfcomm/sock.c:928 #2: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_close+0x25/0x200 net/bluetooth/rfcomm/core.c:507 #3: ffff888016953d28 (&d->lock){+.+.}-{3:3}, at: __rfcomm_dlc_close+0xff/0x770 net/bluetooth/rfcomm/core.c:487 2 locks held by syz-executor.4/11023: #0: ffff888016101120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888016101120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.4/11026: #0: ffff88802e27a120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff88802e27a120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.5/11076: #0: ffff888044795120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888044795120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.5/11085: #0: ffff888146282120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888146282120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.3/11084: #0: ffff8880115bc120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff8880115bc120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.3/11087: #0: ffff888016a58120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888016a58120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.2/11091: #0: ffff888028c9b120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888028c9b120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.2/11093: #0: ffff88801fed5120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff88801fed5120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c421f28 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1654 Comm: khungtaskd Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 nmi_cpu_backtrace.cold+0x30/0x99 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x11f/0x170 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0x92e/0xc40 kernel/hung_task.c:295 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 10 Comm: kworker/u4:1 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: phy11 ieee80211_iface_work RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:84 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0xc8/0x180 mm/kasan/generic.c:189 Code: 38 00 74 ed 48 8d 50 08 eb 09 48 83 c0 01 48 39 d0 74 7a 80 38 00 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 75 56 5b 5d 41 5c c3 <48> 85 d2 74 5e 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 50 80 38 00 RSP: 0018:ffffc90000cf6d60 EFLAGS: 00000083 RAX: fffffbfff1dbb130 RBX: fffffbfff1dbb131 RCX: ffffffff8152677f RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8edd8980 RBP: fffffbfff1dbb130 R08: 0000000000000000 R09: ffffffff8edd8987 R10: fffffbfff1dbb130 R11: 000000000007a088 R12: 0000000000000002 R13: ffff88800fe62618 R14: 0000000000000721 R15: ffff88800fe62638 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8592898000 CR3: 000000000a88e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hlock_class kernel/locking/lockdep.c:199 [inline] mark_lock+0xef/0x1840 kernel/locking/lockdep.c:4571 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4194 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4212 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4280 [inline] lockdep_hardirqs_on_prepare+0x135/0x400 kernel/locking/lockdep.c:4232 trace_hardirqs_on+0x1c/0x140 kernel/trace/trace_preemptirq.c:49 __local_bh_enable_ip+0xa0/0x120 kernel/softirq.c:388 spin_unlock_bh include/linux/spinlock.h:399 [inline] cfg80211_bss_update+0x222/0x1f30 net/wireless/scan.c:1789 cfg80211_inform_single_bss_frame_data+0x60d/0xcb0 net/wireless/scan.c:2414 cfg80211_inform_bss_frame_data+0x94/0xa80 net/wireless/scan.c:2447 ieee80211_bss_info_update+0x282/0x8d0 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1126 [inline] ieee80211_rx_mgmt_probe_beacon+0x7a5/0x1630 net/mac80211/ibss.c:1615 ieee80211_ibss_rx_queued_mgmt+0xaf0/0x12e0 net/mac80211/ibss.c:1642 ieee80211_iface_process_skb net/mac80211/iface.c:1426 [inline] ieee80211_iface_work+0x5f5/0x810 net/mac80211/iface.c:1462 process_one_work+0x84c/0x13d0 kernel/workqueue.c:2276 worker_thread+0x598/0x1040 kernel/workqueue.c:2422 kthread+0x38b/0x460 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295