syzbot


INFO: task hung in raw_release

Status: closed as dup on 2021/06/26 09:46
Subsystems: can
[Documentation on labels]
Reported-by: syzbot+aeec49cf894ac6173e92@syzkaller.appspotmail.com
First crash: 1671d, last: 994d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task hung in unregister_netdevice_notifier (3) can syz error error 184 1672d 1856d
Discussions (1)
Title Replies (including bot) Last reply
INFO: task hung in raw_release 0 (1) 2020/01/07 16:03
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in raw_release 1 1385d 1385d 0/1 auto-closed as invalid on 2020/09/30 10:18
linux-4.19 INFO: task hung in raw_release (2) syz error 4 1070d 1175d 0/1 upstream: reported syz repro on 2020/12/29 11:35

Sample crash report:
INFO: task syz-executor.5:19032 blocked for more than 143 seconds.
      Not tainted 5.13.0-rc6-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:28728 pid:19032 ppid:  8762 flags:0x00004006
Call Trace:
 context_switch kernel/sched/core.c:4339 [inline]
 __schedule+0x916/0x23e0 kernel/sched/core.c:5147
 schedule+0xcf/0x270 kernel/sched/core.c:5226
 rwsem_down_write_slowpath+0x7e5/0x1200 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write_common kernel/locking/rwsem.c:1258 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write+0x137/0x150 kernel/locking/rwsem.c:1407
 unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1949
 raw_release+0x58/0x8a0 net/can/raw.c:354
 __sock_release+0xcd/0x280 net/socket.c:599
 sock_close+0x18/0x20 net/socket.c:1258
 __fput+0x288/0x920 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xbfc/0x2a60 kernel/exit.c:826
 do_group_exit+0x125/0x310 kernel/exit.c:923
 get_signal+0x47f/0x2150 kernel/signal.c:2835
 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789
 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+0x180/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+0x47/0xb0 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
RSP: 002b:00007f07acd2d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: 0000000000000004 RBX: 000000000056c038 RCX: 00000000004665d9
RDX: 0000000000000001 RSI: 0000000000000003 RDI: 000000000000001d
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038
R13: 00007ffe4b0c225f R14: 00007f07acd2d300 R15: 0000000000022000

Showing all locks held in the system:
3 locks held by kworker/u4:0/9:
 #0: ffff888143f95138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888143f95138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline]
 #0: ffff888143f95138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline]
 #0: ffff888143f95138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline]
 #0: ffff888143f95138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
 #0: ffff888143f95138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x871/0x1600 kernel/workqueue.c:2247
 #1: ffffc90000cffda8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8a5/0x1600 kernel/workqueue.c:2251
 #2: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xb10 net/core/net_namespace.c:557
3 locks held by kworker/u4:4/222:
 #0: ffff8880b9d35758 (&rq->lock){-.-.}-{2:2}, at: newidle_balance+0x801/0xe60 kernel/sched/fair.c:10671
 #1: ffff8880b9d1f988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x24c/0x670 kernel/sched/psi.c:872
 #2: ffffffff8bf76be0 (rcu_read_lock){....}-{1:2}, at: batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:402 [inline]
 #2: ffffffff8bf76be0 (rcu_read_lock){....}-{1:2}, at: batadv_nc_worker+0xf3/0xe50 net/batman-adv/network-coding.c:715
1 lock held by khungtaskd/1611:
 #0: ffffffff8bf76be0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6333
1 lock held by in:imklog/8119:
 #0: ffff88801dad25f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:974
2 locks held by agetty/8360:
 #0: ffff8880165e1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267
 #1: ffffc90000ff42e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xd5b/0x12f0 drivers/tty/n_tty.c:2179
2 locks held by syz-executor.5/19032:
 #0: ffff88806bf7d210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline]
 #0: ffff88806bf7d210 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:598
 #1: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x1e/0x170 net/core/dev.c:1949
1 lock held by syz-executor.0/20340:
 #0: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2fa/0x760 net/core/net_namespace.c:470
1 lock held by syz-executor.1/20345:
 #0: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2fa/0x760 net/core/net_namespace.c:470
1 lock held by syz-executor.2/20346:
 #0: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2fa/0x760 net/core/net_namespace.c:470
1 lock held by syz-executor.5/20353:
 #0: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2fa/0x760 net/core/net_namespace.c:470
1 lock held by syz-executor.3/20355:
 #0: ffffffff8d690b50 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2fa/0x760 net/core/net_namespace.c:470

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

NMI backtrace for cpu 0
CPU: 0 PID: 1611 Comm: khungtaskd Not tainted 5.13.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x141/0x1d7 lib/dump_stack.c:120
 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd48/0xfb0 kernel/hung_task.c:294
 kthread+0x3b1/0x4a0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4839 Comm: systemd-journal Not tainted 5.13.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unwind_get_return_address+0x22/0x90 arch/x86/kernel/unwind_orc.c:315
Code: 0f 1f 84 00 00 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 55 48 c1 ea 03 53 48 89 fb 0f b6 04 02 84 c0 74 04 3c 03 7e 51 <8b> 03 85 c0 75 05 5b 31 c0 5d c3 48 8d 6b 48 48 b8 00 00 00 00 00
RSP: 0018:ffffc9000a9c78c0 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffffc9000a9c78d8 RCX: 0000000000000000
RDX: 1ffff92001538f1b RSI: ffffc9000a9c7f18 RDI: ffffc9000a9c78d8
RBP: ffffc9000a9c7960 R08: ffffffff8e4e5182 R09: 0000000000000001
R10: fffff52001538f26 R11: 0000000000084087 R12: ffffc9000a9c7990
R13: 0000000000000000 R14: ffff888019cd2140 R15: 00000091052f43a4
FS:  00007fdc79c938c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdc771bd000 CR3: 00000000197cd000 CR4: 00000000001506e0
Call Trace:
 arch_stack_walk+0x93/0xe0 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 save_stack+0x151/0x1e0 mm/page_owner.c:119
 __reset_page_owner+0x5d/0x170 mm/page_owner.c:140
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1298 [inline]
 __free_pages_ok+0x476/0xce0 mm/page_alloc.c:1572
 slab_destroy mm/slab.c:1627 [inline]
 slabs_destroy+0x89/0xc0 mm/slab.c:1647
 cache_flusharray mm/slab.c:3418 [inline]
 ___cache_free+0x58b/0x7a0 mm/slab.c:3480
 qlink_free mm/kasan/quarantine.c:146 [inline]
 qlist_free_all+0x4e/0x110 mm/kasan/quarantine.c:165
 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272
 __kasan_slab_alloc+0x8b/0xa0 mm/kasan/common.c:438
 kasan_slab_alloc include/linux/kasan.h:236 [inline]
 slab_post_alloc_hook mm/slab.h:524 [inline]
 slab_alloc mm/slab.c:3323 [inline]
 kmem_cache_alloc+0x275/0x530 mm/slab.c:3507
 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138
 getname_flags include/linux/audit.h:319 [inline]
 getname+0x8e/0xd0 fs/namei.c:209
 do_sys_openat2+0xf5/0x420 fs/open.c:1181
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1207
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fdc79222840
Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24
RSP: 002b:00007ffcf0d9a4a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ffcf0d9a7b0 RCX: 00007fdc79222840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055d188cf9960
RBP: 000000000000000d R08: 0000000000000000 R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000055d188ced060 R14: 00007ffcf0d9a770 R15: 000055d188cf7890

Crashes (1388):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/15 23:19 upstream 94f0b2d4a1d0 990d3cbe .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in raw_release
2021/06/02 12:33 upstream 231bc5390667 0740de69 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in raw_release
2021/05/23 11:43 upstream 4d7620341eda 3c7fef33 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in raw_release
2021/05/20 01:24 upstream 293837b9ac8d a343ba6b .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in raw_release
2021/05/18 01:38 upstream 8ac91e6c6033 a343ba6b .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in raw_release
2021/05/17 10:19 upstream d07f6ca923ea a2eb125d .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in raw_release
2021/05/17 02:00 upstream d07f6ca923ea f54a5c09 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in raw_release
2021/05/16 13:38 upstream 63d1cb53e26a f54a5c09 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in raw_release
2021/05/16 12:23 upstream 63d1cb53e26a f54a5c09 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in raw_release
2021/04/06 08:58 upstream 0a50438c8436 6a81331a .config console log report info ci-upstream-kasan-gce INFO: task hung in raw_release
2021/01/31 13:29 upstream 6642d600b541 fc9fd31e .config console log report info ci-upstream-kasan-gce INFO: task hung in raw_release
2021/01/17 21:32 upstream a1339d6355ac 813be542 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in raw_release
2021/06/06 13:27 net-old 3822d0670c9d 500c2339 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/05/31 13:19 net-old 593f555fbc60 032639db .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/05/26 18:24 net-old f5d287126f63 54f0bcf1 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/05/24 15:59 net-old 4dd649d130c6 3c7fef33 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/05/14 01:21 net-old a93a0a15876d 80f9b418 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/04/24 14:03 net-old 6477dd39e62c 17f0b706 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/04/22 16:33 net-old eefb45eef5c4 33c28d03 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/04/10 17:04 net-old 4e04e7513b0f bfeda1b1 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/02/01 06:33 net-old eb4e8fac00d1 fc9fd31e .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/01/29 19:54 net-old 909b447dcc45 6593fd32 .config console log report info ci-upstream-net-this-kasan-gce INFO: task hung in raw_release
2021/06/16 18:10 net-next-old c7654495916e c06f97ad .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/06/15 17:59 net-next-old 89212e160b81 58636922 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/06/13 16:19 net-next-old ffbbc5e5c717 1ba81399 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/05/24 14:03 net-next-old 5d6c3d91ad72 3c7fef33 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/05/15 12:37 net-next-old 77091933e453 93f844de .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/05/14 19:00 net-next-old ea89c862f01e 8bdd5343 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/05/06 04:00 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/05/02 14:22 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/29 10:46 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/27 15:10 net-next-old 95aafe911db6 805b5003 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/26 10:48 net-next-old 95aafe911db6 2a82f1b3 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/18 15:00 net-next-old e7ad33fa7bc5 7e2b734b .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/12 09:42 net-next-old 5b489fea977c bfeda1b1 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/12 02:30 net-next-old cbd312539284 bfeda1b1 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/11 03:07 net-next-old cbd312539284 bfeda1b1 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/10 00:16 net-next-old 4438669eb703 6a81331a .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/08 08:33 net-next-old 0b35e0deb5be 6a81331a .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/04/04 19:09 net-next-old 7d42e84eb99d 6a81331a .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/03/28 21:47 net-next-old a1281601f88e a8529b82 .config console log report info ci-upstream-net-kasan-gce INFO: task hung in raw_release
2021/06/28 11:41 linux-next a1f92694393a 9d2ab5df .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/06/25 05:47 linux-next a1f92694393a 0edbbe31 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/06/09 14:02 linux-next a1f92694393a 84fe5d96 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/05/26 10:56 linux-next a1f92694393a 54f0bcf1 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/05/07 09:52 linux-next 869a85b925fc f6da8120 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/04/09 18:03 linux-next e99d8a849517 6a81331a .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/04/04 12:26 linux-next 454c576c3f5e 6a81331a .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2021/03/24 19:37 linux-next 20f1b5f9c07c 607e3baf .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in raw_release
2020/12/11 06:04 upstream 33dc9614dc20 f900b48c .config console log report info ci-upstream-kasan-gce
2020/12/06 16:00 upstream 33256ce19411 f12ba0c5 .config console log report info ci-upstream-kasan-gce
2020/01/07 11:38 upstream ae6088216ce4 1bcd407e .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/27 23:57 upstream 1590a2e1c681 ffec44b5 .config console log report ci-upstream-kasan-gce-386
2021/01/05 01:33 net-old 862aecbd9569 2a28ff1f .config console log report info ci-upstream-net-this-kasan-gce
2020/12/17 05:01 net-old 57030a0b620f 04201c06 .config console log report info ci-upstream-net-this-kasan-gce
2020/11/15 02:37 net-old 37344718bd70 1bf9a662 .config console log report info ci-upstream-net-this-kasan-gce
2020/01/29 12:25 bpf 2821e26f3a0a c8e81ce4 .config console log report ci-upstream-bpf-kasan-gce
2020/10/13 01:01 net-next-old 15f5e48f93c0 d32b0bbf .config console log report info ci-upstream-net-kasan-gce
2020/04/07 06:40 bpf-next 1a323ea5356e 99a96044 .config console log report ci-upstream-bpf-next-kasan-gce
2019/08/21 22:50 net-next-old 4f830a5af7b5 984250d5 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.