syzbot


INFO: task hung in rfcomm_run
Status: upstream: reported C repro on 2021/08/17 12:03
Reported-by: syzbot+bd221c9eb2a95e43c20f@syzkaller.appspotmail.com
First crash: 289d, last: 59d

Cause bisection: introduced by (bisect log) :
commit b7ce436a5d798bc59e71797952566608a4b4626b
Author: Desmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
Date: Tue Aug 10 04:14:09 2021 +0000

  Bluetooth: switch to lock_sock in RFCOMM

Crash: INFO: task hung in lock_sock_nested (log)
Repro: C syz .config

Fix bisection: the fix commit could be any of (bisect log):
  29ce8f970107 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
  c002496babfd Merge branch 'ipv6-loopback'

Sample crash report:
INFO: task krfcommd:2702 blocked for more than 143 seconds.
      Tainted: G        W         5.17.0-syzkaller-12882-g1930a6e739c4 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:krfcommd        state:D stack:29600 pid: 2702 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5073 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6382
 schedule+0xd2/0x1f0 kernel/sched/core.c:6454
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6513
 __mutex_lock_common kernel/locking/mutex.c:673 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733
 rfcomm_process_sessions net/bluetooth/rfcomm/core.c:2015 [inline]
 rfcomm_run+0x2ed/0x4a30 net/bluetooth/rfcomm/core.c:2122
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
INFO: task syz-executor368:3630 blocked for more than 143 seconds.
      Tainted: G        W         5.17.0-syzkaller-12882-g1930a6e739c4 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor368 state:D stack:28176 pid: 3630 ppid:  3624 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5073 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6382
 schedule+0xd2/0x1f0 kernel/sched/core.c:6454
 __lock_sock+0x13d/0x260 net/core/sock.c:2770
 lock_sock_nested+0xd6/0xf0 net/core/sock.c:3317
 lock_sock include/net/sock.h:1682 [inline]
 rfcomm_sk_state_change+0xb4/0x390 net/bluetooth/rfcomm/sock.c:73
 __rfcomm_dlc_close+0x1b6/0x8a0 net/bluetooth/rfcomm/core.c:489
 rfcomm_dlc_close+0x1ea/0x240 net/bluetooth/rfcomm/core.c:520
 __rfcomm_sock_close+0xac/0x260 net/bluetooth/rfcomm/sock.c:220
 rfcomm_sock_shutdown+0xf4/0x220 net/bluetooth/rfcomm/sock.c:905
 rfcomm_sock_release+0x5f/0x140 net/bluetooth/rfcomm/sock.c:925
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1318
 __fput+0x277/0x9d0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:37 [inline]
 do_exit+0xaff/0x2a00 kernel/exit.c:795
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 get_signal+0x22df/0x24c0 kernel/signal.c:2904
 arch_do_signal_or_restart+0x88/0x1a10 arch/x86/kernel/signal.c:867
 exit_to_user_mode_loop kernel/entry/common.c:180 [inline]
 exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:215
 __syscall_exit_to_user_mode_work kernel/entry/common.c:297 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:308
 do_syscall_64+0x42/0x80 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd72409d1b9
RSP: 002b:00007ffc72cb2668 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: fffffffffffffffc RBX: 0000000000000003 RCX: 00007fd72409d1b9
RDX: 0000000000000080 RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 0000000000000003 R08: 000000ff00000000 R09: 000000ff00000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00005555570b22b8
R13: 0000000000000072 R14: 00007ffc72cb26c0 R15: 0000000000000003
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Tainted: G        W         5.17.0-syzkaller-12882-g1930a6e739c4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:369
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:115 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:556

Crashes (37):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/03/30 06:57 upstream 1930a6e739c4 6bdac766 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-kasan-gce-root 2022/03/29 08:52 upstream cffb2b72d3ed 6bdac766 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/09/01 21:39 net-next 29ce8f970107 7eb7e152 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/09/01 17:06 net-next 29ce8f970107 7eb7e152 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/09/01 14:53 net-next 29ce8f970107 7eb7e152 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/09/01 12:44 net-next 29ce8f970107 7eb7e152 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/31 05:35 net-next 27c779437cbc 8f58a0ef .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/30 01:15 net-next eaf2aaec0be4 be2c130d .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/28 10:50 net-next 4baf0e0b3298 d5a29e53 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/27 06:58 net-next deecae7d9684 b318694d .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/26 23:27 net-next deecae7d9684 b318694d .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/26 21:09 net-next deecae7d9684 b318694d .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-net-kasan-gce 2021/08/21 06:52 net-next 4af14dbaeae0 b599f2fc .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/29 23:23 linux-next 5e63226c7228 be2c130d .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/27 05:10 linux-next 88fac11862d3 b318694d .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/26 07:43 linux-next 7636510f976d b599f2fc .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/18 04:57 linux-next 9803fb968c8c a2fe1cb5 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/18 02:30 linux-next 9803fb968c8c a2fe1cb5 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/17 23:15 linux-next 9803fb968c8c a2fe1cb5 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/17 04:25 linux-next b9011c7e671d 33c26cb7 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/17 00:11 linux-next b9011c7e671d 33c26cb7 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/14 23:37 linux-next 4b358aabb93a 2489ab88 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/14 21:08 linux-next 4b358aabb93a 2489ab88 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/14 15:33 linux-next 4b358aabb93a 2489ab88 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/14 10:28 linux-next 4b358aabb93a 2489ab88 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/14 00:29 linux-next 4b358aabb93a 3fd2ea69 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/14 00:07 linux-next 4b358aabb93a 3fd2ea69 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/13 17:14 linux-next 4b358aabb93a 3fd2ea69 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/13 07:14 linux-next 9b992972fb9c 3fd2ea69 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/13 04:43 linux-next 9b992972fb9c 3fd2ea69 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/12 18:29 linux-next 9b992972fb9c 6972b106 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/12 11:25 linux-next 8ca403f3e7a2 6972b106 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/12 09:13 linux-next 8ca403f3e7a2 6972b106 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/12 06:24 linux-next 8ca403f3e7a2 6972b106 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-linux-next-kasan-gce-root 2021/08/12 02:39 linux-next 8ca403f3e7a2 6972b106 .config log report syz C INFO: task hung in rfcomm_run
ci-upstream-kasan-gce-selinux-root 2021/09/13 14:19 upstream 6880fa6c5660 3ce60af8 .config log report info INFO: task hung in rfcomm_run
ci-upstream-kasan-gce-root 2021/09/01 21:04 upstream 835d31d319d9 7eb7e152 .config log report info INFO: task hung in rfcomm_run