syzbot


INFO: task hung in smc_getsockopt

Status: auto-obsoleted due to no activity on 2024/10/12 20:40
Subsystems: net s390
[Documentation on labels]
First crash: 188d, last: 188d

Sample crash report:
INFO: task syz.3.360:6599 blocked for more than 147 seconds.
      Not tainted 6.11.0-rc3-next-20240813-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.360       state:D stack:27392 pid:6599  tgid:6594  ppid:6187   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5270 [inline]
 __schedule+0x17ff/0x4ad0 kernel/sched/core.c:6639
 __schedule_loop kernel/sched/core.c:6716 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6731
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6788
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752
 smc_getsockopt+0x144/0x3e0 net/smc/af_smc.c:3136
 do_sock_getsockopt+0x373/0x850 net/socket.c:2386
 __sys_getsockopt+0x271/0x330 net/socket.c:2415
 __do_sys_getsockopt net/socket.c:2425 [inline]
 __se_sys_getsockopt net/socket.c:2422 [inline]
 __x64_sys_getsockopt+0xb5/0xd0 net/socket.c:2422
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6164d799f9
RSP: 002b:00007f6165b34038 EFLAGS: 00000246 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 00007f6164f16058 RCX: 00007f6164d799f9
RDX: 0000000000000013 RSI: 0000000000000006 RDI: 0000000000000006
RBP: 00007f6164de78ee R08: 0000000020000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6164f16058 R15: 00007fffbaee14f8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8e937720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8e937720 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8e937720 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6645
1 lock held by dhcpcd/4893:
4 locks held by dhcpcd/4894:
2 locks held by getty/4982:
 #0: ffff88802b7970a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ac/0x1e00 drivers/tty/n_tty.c:2211
6 locks held by kworker/u9:4/5234:
 #0: ffff88802d07b148 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
 #0: ffff88802d07b148 ((wq_completion)hci4){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
 #1: ffffc90003a7fd00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
 #1: ffffc90003a7fd00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
 #2: ffff88805faccd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:327
 #3: ffff88805facc078 (&hdev->lock){+.+.}-{3:3}, at: hci_abort_conn_sync+0x1ea/0xde0 net/bluetooth/hci_sync.c:5526
 #4: ffffffff8fdf7368 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1962 [inline]
 #4: ffffffff8fdf7368 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_failed+0x185/0x340 net/bluetooth/hci_conn.c:1265
 #5: ffffffff8e93ccb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:328 [inline]
 #5: ffffffff8e93ccb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:969
2 locks held by syz-executor/5652:
1 lock held by syz-executor/5660:
 #0: ffffffff8e93ccb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:328 [inline]
 #0: ffffffff8e93ccb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:969
2 locks held by syz-executor/5752:
2 locks held by syz-executor/6187:
1 lock held by syz.3.360/6595:
1 lock held by syz.3.360/6599:
 #0: ffff888066ef8a50 (&smc->clcsock_release_lock){+.+.}-{3:3}, at: smc_getsockopt+0x144/0x3e0 net/smc/af_smc.c:3136
2 locks held by syz-executor/6618:

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-rc3-next-20240813-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xff4/0x1040 kernel/hung_task.c:379
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:144
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 6595 Comm: syz.3.360 Not tainted 6.11.0-rc3-next-20240813-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:lockdep_hardirqs_on_prepare+0x5/0x780 kernel/locking/lockdep.c:4314
Code: 6f 8c 00 e9 43 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 80 00 00
RSP: 0018:ffffc900052af288 EFLAGS: 00000002
RAX: 0000000000000001 RBX: ffffffff951e4bc0 RCX: ffffffff819b3dcc
RDX: 0000000000000000 RSI: ffffffff8c609580 RDI: ffffffff8c609540
RBP: ffffc900052af330 R08: ffffffff90187def R09: 1ffffffff2030fbd
R10: dffffc0000000000 R11: fffffbfff2030fbe R12: dffffc0000000000
R13: 1ffff92000a55e54 R14: ffffc900052af2c0 R15: 0000000000000246
FS:  00007f6165b556c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055946cd387f0 CR3: 00000000640de000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
 _raw_spin_unlock_irqrestore+0x8f/0x140 kernel/locking/spinlock.c:194
 __debug_check_no_obj_freed lib/debugobjects.c:999 [inline]
 debug_check_no_obj_freed+0x561/0x580 lib/debugobjects.c:1020
 remove_vm_area+0x1d3/0x300 mm/vmalloc.c:3239
 free_vm_area mm/vmalloc.c:4532 [inline]
 __vmalloc_area_node mm/vmalloc.c:3662 [inline]
 __vmalloc_node_range_noprof+0x6c6/0x1400 mm/vmalloc.c:3850
 __kvmalloc_node_noprof+0x142/0x1b0 mm/util.c:681
 translate_table+0x174/0x2260 net/ipv4/netfilter/ip_tables.c:678
 do_replace net/ipv4/netfilter/ip_tables.c:1137 [inline]
 do_ipt_set_ctl+0xe3d/0x1250 net/ipv4/netfilter/ip_tables.c:1635
 nf_setsockopt+0x295/0x2c0 net/netfilter/nf_sockopt.c:101
 smc_setsockopt+0x275/0xe50 net/smc/af_smc.c:3064
 do_sock_setsockopt+0x3af/0x720 net/socket.c:2324
 __sys_setsockopt+0x1ae/0x250 net/socket.c:2347
 __do_sys_setsockopt net/socket.c:2356 [inline]
 __se_sys_setsockopt net/socket.c:2353 [inline]
 __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2353
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6164d799f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6165b55038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f6164f15f80 RCX: 00007f6164d799f9
RDX: 0000000000000040 RSI: 0004000000000000 RDI: 0000000000000006
RBP: 00007f6164de78ee R08: 0000000000000298 R09: 0000000000000000
R10: 0000000020000300 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f6164f15f80 R15: 00007fffbaee14f8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/13 20:32 linux-next 033a4691702c f21a18ca .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in smc_getsockopt
* Struck through repros no longer work on HEAD.