bisecting cause commit starting from 29ce8f9701072fc221d9c38ad952de1a9578f95c building syzkaller on 7eb7e15259fddd67759f90feb2b016da878f76c7 testing commit 29ce8f9701072fc221d9c38ad952de1a9578f95c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 3266578d1f4edcb3307150ad9e68a6337554802944d9843d3a2bd7288f77c17c all runs: crashed: INFO: task hung in lock_sock_nested 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: 909f5b513362d755e99068620c19525cb2afd91ca8725228219fd46574a48866 all runs: OK # git bisect start 29ce8f9701072fc221d9c38ad952de1a9578f95c 62fb9874f5da54fdb243003b386128037319b219 Bisecting: 8983 revisions left to test after this (roughly 13 steps) [bd31b9efbf549d9630bf2f269a3a56dcb29fcac1] Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi testing commit bd31b9efbf549d9630bf2f269a3a56dcb29fcac1 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 56673a77ac99a441e9d153e12b74b50705d838b711d4c61681eae09f8053c62c run #0: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #1: boot failed: possible deadlock in fs_reclaim_acquire run #2: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #3: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #4: boot failed: possible deadlock in fs_reclaim_acquire run #5: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #6: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #7: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #8: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #9: boot failed: possible deadlock in fs_reclaim_acquire # git bisect skip bd31b9efbf549d9630bf2f269a3a56dcb29fcac1 Bisecting: 8983 revisions left to test after this (roughly 13 steps) [fc357bc8ebac978631b5f2572c9065771c78a631] drm/ttm: fix pipelined gutting v2 testing commit fc357bc8ebac978631b5f2572c9065771c78a631 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 277248e3bd210b32208d0d7581ce25ae3bd8b50ebf328a5f2ebabbca319a1520 all runs: OK # git bisect good fc357bc8ebac978631b5f2572c9065771c78a631 Bisecting: 8349 revisions left to test after this (roughly 13 steps) [d6b63b5b7d7f363c6a54421533791e9849adf2e0] Merge tag 'sound-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound testing commit d6b63b5b7d7f363c6a54421533791e9849adf2e0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 28a645d1c1187c35d252db5ff9eacb9b2ec29815c0b0f57e0107717aebb6a1dc run #0: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #1: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #2: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #3: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #4: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #5: boot failed: possible deadlock in fs_reclaim_acquire run #6: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #7: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #8: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #9: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) # git bisect skip d6b63b5b7d7f363c6a54421533791e9849adf2e0 Bisecting: 8349 revisions left to test after this (roughly 13 steps) [34f7f79827ec4db30cff9001dfba19f496473e8d] selftests/powerpc: Add test of mitigation patching testing commit 34f7f79827ec4db30cff9001dfba19f496473e8d compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 01dfa9f8b84d4ecddd0e02f32cb0a87cb4490a1b47bc1843e0b5d6b583ffdf27 all runs: OK # git bisect good 34f7f79827ec4db30cff9001dfba19f496473e8d Bisecting: 8349 revisions left to test after this (roughly 13 steps) [9fc4abfe5a5fc9fabce41b9d2ba8425ef498b32c] scsi: mpi3mr: Add event handling debug prints testing commit 9fc4abfe5a5fc9fabce41b9d2ba8425ef498b32c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 72c211eb1cefbd42c811d57e2a52ee63e6bf067ad9c21d68caa5255085991a52 all runs: OK # git bisect good 9fc4abfe5a5fc9fabce41b9d2ba8425ef498b32c Bisecting: 8349 revisions left to test after this (roughly 13 steps) [23c0ebac20de19e3f54e5e81f4c3fa0caf2f8395] drm/amd/pm: update yellow carp pmfw interface version testing commit 23c0ebac20de19e3f54e5e81f4c3fa0caf2f8395 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 3ccd548ce14f48d1936b8cb5dc13fb32003511125d2488cc4d944614e0a4e4ca all runs: OK # git bisect good 23c0ebac20de19e3f54e5e81f4c3fa0caf2f8395 Bisecting: 1379 revisions left to test after this (roughly 11 steps) [f4083a752a3b7dc2076432129c8469d02c25318e] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit f4083a752a3b7dc2076432129c8469d02c25318e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 1c77424d85c3f81a7f66710f9b26cbe20cad86c094e3706ff5da043ea70e8200 all runs: OK # git bisect good f4083a752a3b7dc2076432129c8469d02c25318e Bisecting: 689 revisions left to test after this (roughly 10 steps) [1d38ec4974143827631d44a6a2a4c069fc4c05bd] can: rcar_canfd: rcar_canfd_handle_channel_tx(): fix redundant assignment testing commit 1d38ec4974143827631d44a6a2a4c069fc4c05bd compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: a0531659681db892eeda32f71d994f3490cde74c55e7b9d9aab103002531a263 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad 1d38ec4974143827631d44a6a2a4c069fc4c05bd Bisecting: 265 revisions left to test after this (roughly 9 steps) [f444fea7896dbc267249d27f604082a51b8efca2] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit f444fea7896dbc267249d27f604082a51b8efca2 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: ab892f86cf0b908bfb171f8e2343dd1e480e78be4f3042ad1ac543872b6d7480 all runs: OK # git bisect good f444fea7896dbc267249d27f604082a51b8efca2 Bisecting: 132 revisions left to test after this (roughly 7 steps) [2775cbc5afeb63f1ddd8c05df216763450772ad9] net: ipa: rename "ipa_clock.c" testing commit 2775cbc5afeb63f1ddd8c05df216763450772ad9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 946be3844def9e62ca12f7d753bd62edecad490ce20bb14aaab599762b3fa0b2 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad 2775cbc5afeb63f1ddd8c05df216763450772ad9 Bisecting: 66 revisions left to test after this (roughly 6 steps) [e61fbee7be4b9566f8e8fcb15aadad0f17936c31] Merge tag 'for-net-next-2021-08-19' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next testing commit e61fbee7be4b9566f8e8fcb15aadad0f17936c31 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 6b80f3f17704c8f16ba60dc4a52bfef0d8419c648158ef01c8dd6fe6ba6d4937 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad e61fbee7be4b9566f8e8fcb15aadad0f17936c31 Bisecting: 32 revisions left to test after this (roughly 5 steps) [53492a668e3b9b823fc9a3ba563a5d10fef32c03] Bluetooth: btintel: Add btintel data struct testing commit 53492a668e3b9b823fc9a3ba563a5d10fef32c03 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: e30266543a051ece88aac0e7b2d251bebaa162852f15762d073802d98bf5b9fc 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 53492a668e3b9b823fc9a3ba563a5d10fef32c03 Bisecting: 15 revisions left to test after this (roughly 4 steps) [0ea53674d07fb6db2dd7a7ec2fdc85a12eb246c2] Bluetooth: Move shutdown callback before flushing tx and rx queue testing commit 0ea53674d07fb6db2dd7a7ec2fdc85a12eb246c2 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 9de9231b28cdcd42ede58d60acc9f37ab28cbc4d24cc20f699cd2310079a9211 all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad 0ea53674d07fb6db2dd7a7ec2fdc85a12eb246c2 Bisecting: 7 revisions left to test after this (roughly 3 steps) [146af22649020e6b163482bc66150683ebf893bf] Bluetooth: btusb: Fix fall-through warnings testing commit 146af22649020e6b163482bc66150683ebf893bf compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 29039186dadd5c15664bc1380a606c28b0f7bc1f4f013a2be9427d616e532fd2 all runs: OK # git bisect good 146af22649020e6b163482bc66150683ebf893bf Bisecting: 3 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: 0ef8b104f964ecd3cf0c11ee40b0e8ed6372602dbc870be1f9921674dec182b5 all runs: OK # git bisect good 3f2c89fb465f63fe14da804a8afcd7ac6776508e Bisecting: 1 revision left to test after this (roughly 1 step) [e1dee2c1de2b4dd00eb44004a4bda6326ed07b59] Bluetooth: fix repeated calls to sco_sock_kill testing commit e1dee2c1de2b4dd00eb44004a4bda6326ed07b59 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 304b06bbd7ced6f7bc9547518df6b6e9f542bffd32f03ce88bafb5772db4592f all runs: crashed: INFO: task hung in lock_sock_nested # git bisect bad e1dee2c1de2b4dd00eb44004a4bda6326ed07b59 Bisecting: 0 revisions left to test after this (roughly 0 steps) [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: c565a2c8fe6191ffd4d534d26c102a3c71f67b80782408894735359208406366 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: c565a2c8fe6191ffd4d534d26c102a3c71f67b80782408894735359208406366 parent signature: 0ef8b104f964ecd3cf0c11ee40b0e8ed6372602dbc870be1f9921674dec182b5 revisions tested: 19, total time: 5h19m5.604977723s (build: 2h20m12.781516908s, test: 2h56m29.223446099s) 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.3:10981 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.3 state:D stack:27600 pid:10981 ppid: 8964 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:0x4665f9 RSP: 002b:00007fc3a86b7188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: fffffffffffffffc RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd6629f1bf R14: 00007fc3a86b7300 R15: 0000000000022000 INFO: task syz-executor.2:11021 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.2 state:D stack:28216 pid:11021 ppid: 8972 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:0x4665f9 RSP: 002b:00007f5f23f9e188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff518e73af R14: 00007f5f23f9e300 R15: 0000000000022000 INFO: task syz-executor.0: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.0 state:D stack:27600 pid:11026 ppid: 8969 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:0x4665f9 RSP: 002b:00007fe1f0fbe188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffc38e9ddbf R14: 00007fe1f0fbe300 R15: 0000000000022000 INFO: task syz-executor.5:11055 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:11055 ppid: 8971 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:0x4665f9 RSP: 002b:00007f3b26268188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffda677760f R14: 00007f3b26268300 R15: 0000000000022000 INFO: task syz-executor.5: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.5 state:D stack:28512 pid:11091 ppid: 8971 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:0x4665f9 RSP: 002b:00007f3b26247188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffda677760f R14: 00007f3b26247300 R15: 0000000000022000 INFO: task syz-executor.4: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.4 state:D stack:27600 pid:11085 ppid: 8967 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:0x4665f9 RSP: 002b:00007fcc61c6d188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffdd70c5d2f R14: 00007fcc61c6d300 R15: 0000000000022000 INFO: task syz-executor.1:11088 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.1 state:D stack:27600 pid:11088 ppid: 8973 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:0x4665f9 RSP: 002b:00007f01f8e70188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9 RDX: 0000000000000080 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fffe9ff26cf R14: 00007f01f8e70300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by ksoftirqd/0/13: #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 khungtaskd/1649: #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: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_process_sessions net/bluetooth/rfcomm/core.c:1979 [inline] #0: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_run+0x290/0x4250 net/bluetooth/rfcomm/core.c:2086 1 lock held by in:imklog/8360: #0: ffff88802b884ff0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x9c/0xb0 fs/file.c:974 4 locks held by syz-executor.3/10981: #0: ffff8880450e1710 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline] #0: ffff8880450e1710 (&sb->s_type->i_mutex_key#13){+.+.}-{3:3}, at: __sock_release+0x76/0x270 net/socket.c:647 #1: ffff88802bade120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #1: ffff88802bade120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_shutdown+0x41/0x1b0 net/bluetooth/rfcomm/sock.c:928 #2: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_close+0x25/0x200 net/bluetooth/rfcomm/core.c:507 #3: ffff888045db3928 (&d->lock){+.+.}-{3:3}, at: __rfcomm_dlc_close+0xff/0x770 net/bluetooth/rfcomm/core.c:487 2 locks held by syz-executor.2/11021: #0: ffff88802d404120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff88802d404120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.0/11026: #0: ffff8880357c0120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff8880357c0120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.5/11055: #0: ffff888035702120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888035702120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.5/11091: #0: ffff88801c9cc120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff88801c9cc120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.4/11085: #0: ffff888046e07120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff888046e07120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 2 locks held by syz-executor.1/11088: #0: ffff88802c5ca120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline] #0: ffff88802c5ca120 (sk_lock-AF_BLUETOOTH-BTPROTO_RFCOMM){+.+.}-{0:0}, at: rfcomm_sock_connect+0xaf/0x3b0 net/bluetooth/rfcomm/sock.c:394 #1: ffffffff8c422428 (rfcomm_mutex){+.+.}-{3:3}, at: rfcomm_dlc_open+0x8e/0x990 net/bluetooth/rfcomm/core.c:425 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1649 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 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: bat_events batadv_nc_worker RIP: 0010:check_wait_context kernel/locking/lockdep.c:4702 [inline] RIP: 0010:__lock_acquire+0x532/0x5410 kernel/locking/lockdep.c:4965 Code: 0f 00 00 0f b6 85 b9 00 00 00 48 8b 0c 24 84 c0 41 0f 44 c7 48 c1 e9 03 88 44 24 50 48 b8 00 00 00 00 00 fc ff df 0f b6 04 01 <84> c0 74 08 3c 03 0f 8e 9c 0f 00 00 41 8b b5 e8 09 00 00 41 89 f6 RSP: 0018:ffffc90000cf79e8 EFLAGS: 00000806 RAX: 0000000000000000 RBX: ffff888037825698 RCX: 1ffff11001fcf4bd RDX: 0000000000000006 RSI: 0000000000000008 RDI: ffffffff8ee288b9 RBP: ffffffff8ee28800 R08: 0000000000000000 R09: ffffffff8edd9977 R10: fffffbfff1dbb32e R11: 0000000000000001 R12: ffff88800fe7a640 R13: ffff88800fe79c00 R14: 0000000000040000 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9e06954018 CR3: 00000000228b7000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] batadv_nc_purge_paths+0xc0/0x2d0 net/batman-adv/network-coding.c:438 batadv_nc_worker+0x6a7/0xcc0 net/batman-adv/network-coding.c:718 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 ---------------- Code disassembly (best guess): 0: 0f 00 00 sldt (%rax) 3: 0f b6 85 b9 00 00 00 movzbl 0xb9(%rbp),%eax a: 48 8b 0c 24 mov (%rsp),%rcx e: 84 c0 test %al,%al 10: 41 0f 44 c7 cmove %r15d,%eax 14: 48 c1 e9 03 shr $0x3,%rcx 18: 88 44 24 50 mov %al,0x50(%rsp) 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 0f b6 04 01 movzbl (%rcx,%rax,1),%eax * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 74 08 je 0x36 2e: 3c 03 cmp $0x3,%al 30: 0f 8e 9c 0f 00 00 jle 0xfd2 36: 41 8b b5 e8 09 00 00 mov 0x9e8(%r13),%esi 3d: 41 89 f6 mov %esi,%r14d