syzbot


INFO: task hung in br_ioctl_call

Status: auto-closed as invalid on 2022/09/27 02:31
Subsystems: net
[Documentation on labels]
First crash: 639d, last: 639d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in br_ioctl_call (2) net 1 427d 427d 0/26 auto-obsoleted due to no activity on 2023/04/26 22:28

Sample crash report:
INFO: task syz-executor.3:12006 blocked for more than 143 seconds.
      Not tainted 5.19.0-rc4-syzkaller-00014-g941e3e791269 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:28384 pid:12006 ppid:  3636 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5146 [inline]
 __schedule+0x957/0xe20 kernel/sched/core.c:6458
 schedule+0xeb/0x1b0 kernel/sched/core.c:6530
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6589
 __mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
 br_ioctl_call+0x55/0xa0 net/socket.c:1141
 dev_ifsioc+0x8fc/0x11e0 net/core/dev_ioctl.c:389
 dev_ioctl+0x58e/0xf30 net/core/dev_ioctl.c:588
 sock_do_ioctl+0x26a/0x450 net/socket.c:1183
 sock_ioctl+0x481/0x770 net/socket.c:1286
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f7768889109
RSP: 002b:00007f77699ca168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f776899bf60 RCX: 00007f7768889109
RDX: 0000000020000080 RSI: 00000000000089a3 RDI: 0000000000000003
RBP: 00007f77688e305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe729c791f R14: 00007f77699ca300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/28:
 #0: ffffffff8cb1e820 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by klogd/2967:
2 locks held by getty/3286:
 #0: ffff88802696a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002d162e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2124
1 lock held by syz-executor.3/12006:
 #0: ffffffff8dba6b28 (br_ioctl_mutex){+.+.}-{3:3}, at: br_ioctl_call+0x55/0xa0 net/socket.c:1141
2 locks held by syz-executor.3/12014:
 #0: ffffffff8dba6b28 (br_ioctl_mutex){+.+.}-{3:3}, at: br_ioctl_call net/socket.c:1141 [inline]
 #0: ffffffff8dba6b28 (br_ioctl_mutex){+.+.}-{3:3}, at: sock_ioctl+0x271/0x770 net/socket.c:1240
 #1: ffffffff8cb237e8 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x620 kernel/rcu/tree.c:4105

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc4-syzkaller-00014-g941e3e791269 #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+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x168/0x280 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+0xcf9/0xd40 kernel/hung_task.c:369
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2967 Comm: klogd Not tainted 5.19.0-rc4-syzkaller-00014-g941e3e791269 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:157 [inline]
RIP: 0010:unwind_next_frame+0x1c7/0x24c0 arch/x86/kernel/unwind_orc.c:443
Code: 49 39 c4 0f 82 19 01 00 00 48 c7 c0 a0 76 60 8a 49 39 c4 0f 83 09 01 00 00 48 c7 c0 00 00 00 81 4d 89 e6 49 29 c6 49 c1 ee 08 <48> c7 c0 38 f0 22 8f 48 c7 c1 18 72 48 8f 48 29 c1 48 8d 41 03 48
RSP: 0018:ffffc90002d3efa0 EFLAGS: 00000203
RAX: ffffffff81000000 RBX: ffffc90002d3f0c8 RCX: ffffffff8a342400
RDX: dffffc0000000000 RSI: ffffffff81da73f9 RDI: ffffffff813babc3
RBP: 1ffff920005a7e16 R08: 0000000000000006 R09: dffffc0000000000
R10: fffff520005a7e1c R11: 1ffff920005a7e1a R12: ffffffff81da73f8
R13: ffffc90002d3f0c8 R14: 000000000000da73 R15: ffffc90002d3f0b5
FS:  00007f4559925800(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c008a56198 CR3: 000000001c7dd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122
 save_stack+0xf5/0x1e0 mm/page_owner.c:127
 __reset_page_owner+0x52/0x190 mm/page_owner.c:148
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1371 [inline]
 free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1421
 free_unref_page_prepare mm/page_alloc.c:3343 [inline]
 free_unref_page+0x7d/0x390 mm/page_alloc.c:3438
 free_slab mm/slub.c:2068 [inline]
 discard_slab mm/slub.c:2074 [inline]
 __unfreeze_partials+0x1ab/0x200 mm/slub.c:2548
 put_cpu_partial+0x116/0x180 mm/slub.c:2624
 do_slab_free mm/slub.c:3524 [inline]
 ___cache_free+0x118/0x1a0 mm/slub.c:3543
 qlist_free_all+0x2b/0x70 mm/kasan/quarantine.c:187
 kasan_quarantine_reduce+0x169/0x180 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:446
 kasan_slab_alloc include/linux/kasan.h:224 [inline]
 slab_post_alloc_hook mm/slab.h:750 [inline]
 slab_alloc_node mm/slub.c:3243 [inline]
 __kmalloc_node_track_caller+0x1f9/0x3f0 mm/slub.c:4979
 kmalloc_reserve net/core/skbuff.c:354 [inline]
 __alloc_skb+0x11d/0x660 net/core/skbuff.c:426
 alloc_skb include/linux/skbuff.h:1426 [inline]
 alloc_skb_with_frags+0xac/0x800 net/core/skbuff.c:5992
 sock_alloc_send_pskb+0x930/0xa70 net/core/sock.c:2662
 unix_dgram_sendmsg+0x5ca/0x1fc0 net/unix/af_unix.c:1895
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 __sys_sendto+0x439/0x5c0 net/socket.c:2119
 __do_sys_sendto net/socket.c:2131 [inline]
 __se_sys_sendto net/socket.c:2127 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2127
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f4559ac10ac
Code: 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 19 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 64 c3 0f 1f 00 55 48 83 ec 20 48 89 54 24 10
RSP: 002b:00007ffd8a123978 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4559ac10ac
RDX: 0000000000000057 RSI: 000055faa706e3a0 RDI: 0000000000000003
RBP: 000055faa7068910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000014
R13: 0000000000000001 R14: 00007f4559c3c77d R15: 00007ffd8a123a88
 </TASK>
----------------
Code disassembly (best guess):
   0:	49 39 c4             	cmp    %rax,%r12
   3:	0f 82 19 01 00 00    	jb     0x122
   9:	48 c7 c0 a0 76 60 8a 	mov    $0xffffffff8a6076a0,%rax
  10:	49 39 c4             	cmp    %rax,%r12
  13:	0f 83 09 01 00 00    	jae    0x122
  19:	48 c7 c0 00 00 00 81 	mov    $0xffffffff81000000,%rax
  20:	4d 89 e6             	mov    %r12,%r14
  23:	49 29 c6             	sub    %rax,%r14
  26:	49 c1 ee 08          	shr    $0x8,%r14
* 2a:	48 c7 c0 38 f0 22 8f 	mov    $0xffffffff8f22f038,%rax <-- trapping instruction
  31:	48 c7 c1 18 72 48 8f 	mov    $0xffffffff8f487218,%rcx
  38:	48 29 c1             	sub    %rax,%rcx
  3b:	48 8d 41 03          	lea    0x3(%rcx),%rax
  3f:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/06/29 02:22 upstream 941e3e791269 496a8536 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in br_ioctl_call
* Struck through repros no longer work on HEAD.