syzbot


INFO: task hung in tcindex_partial_destroy_work

Status: fixed on 2023/06/08 14:41
Reported-by: syzbot+e3c2598c1486366a941b@syzkaller.appspotmail.com
Fix commit: 8c710f75256b net/sched: Retire tcindex classifier
First crash: 1270d, last: 1132d
Cause bisection: introduced by (bisect log) :
commit f9317ae5523f99999fb54c513ebabbb2bc887ddf
Author: Hauke Mehrtens <hauke@hauke-m.de>
Date: Tue Sep 22 21:41:12 2020 +0000

  net: lantiq: Add locking for TX DMA channel

Crash: WARNING: ODEBUG bug in netdev_run_todo (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) [no-op commit]:
commit 3af409ca278d4a8d50e91f9f7c4c33b175645cf3
Author: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: Tue Feb 16 10:16:28 2021 +0000

  net: enetc: fix destroyed phylink dereference during unbind

  
Discussions (2)
Title Replies (including bot) Last reply
INFO: task hung in tcindex_partial_destroy_work 1 (1) 2023/04/02 06:09
INFO: task hung in tcindex_partial_destroy_work 0 (1) 2020/09/28 07:17
Last patch testing requests (11)
Created Duration User Patch Repo Result
2023/01/14 19:32 21m retest repro linux-next error OK
2022/12/20 08:31 21m retest repro net-next-old OK log
2022/12/20 04:31 21m retest repro net-next-old OK log
2022/10/01 22:30 17m retest repro linux-next error OK
2022/09/27 13:30 18m retest repro upstream OK log
2022/09/25 05:30 18m retest repro upstream OK log
2022/09/25 02:30 19m retest repro upstream OK log
2022/09/21 16:29 19m retest repro upstream OK log
2022/09/14 16:29 19m retest repro upstream OK log
2022/09/14 13:27 19m retest repro upstream OK log
2020/10/01 01:12 12m xiyou.wangcong@gmail.com https://github.com/congwang/linux.git net report log

Sample crash report:
INFO: task kworker/u4:0:9 blocked for more than 143 seconds.
      Not tainted 5.10.0-rc6-next-20201201-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:0    state:D stack:23600 pid:    9 ppid:     2 flags:0x00004000
Workqueue: tc_filter_workqueue tcindex_partial_destroy_work
Call Trace:
 context_switch kernel/sched/core.c:4325 [inline]
 __schedule+0x8cd/0x2150 kernel/sched/core.c:5076
 schedule+0xcf/0x270 kernel/sched/core.c:5155
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:5214
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x81a/0x1110 kernel/locking/mutex.c:1103
 tcindex_partial_destroy_work+0x13/0x50 net/sched/cls_tcindex.c:287
 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2272
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
INFO: task kworker/1:1:8497 blocked for more than 143 seconds.
      Not tainted 5.10.0-rc6-next-20201201-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:1     state:D stack:29616 pid: 8497 ppid:     2 flags:0x00004000
Workqueue: ipv6_addrconf addrconf_verify_work
Call Trace:
 context_switch kernel/sched/core.c:4325 [inline]
 __schedule+0x8cd/0x2150 kernel/sched/core.c:5076
 schedule+0xcf/0x270 kernel/sched/core.c:5155
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:5214
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x81a/0x1110 kernel/locking/mutex.c:1103
 addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4569
 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2272
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
INFO: task syz-executor598:8527 can't die for more than 143 seconds.
task:syz-executor598 state:R  running task     stack:24992 pid: 8527 ppid:  8505 flags:0x00004006
Call Trace:

Showing all locks held in the system:
3 locks held by kworker/u4:0/9:
 #0: ffff8880151c9138 ((wq_completion)tc_filter_workqueue){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880151c9138 ((wq_completion)tc_filter_workqueue){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline]
 #0: ffff8880151c9138 ((wq_completion)tc_filter_workqueue){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline]
 #0: ffff8880151c9138 ((wq_completion)tc_filter_workqueue){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline]
 #0: ffff8880151c9138 ((wq_completion)tc_filter_workqueue){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline]
 #0: ffff8880151c9138 ((wq_completion)tc_filter_workqueue){+.+.}-{0:0}, at: process_one_work+0x871/0x15f0 kernel/workqueue.c:2243
 #1: ffffc90000ce7da8 ((work_completion)(&(rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8a5/0x15f0 kernel/workqueue.c:2247
 #2: ffffffff8c940f88 (rtnl_mutex){+.+.}-{3:3}, at: tcindex_partial_destroy_work+0x13/0x50 net/sched/cls_tcindex.c:287
1 lock held by khungtaskd/1656:
 #0: ffffffff8b33a7a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6254
1 lock held by in:imklog/8182:
 #0: ffff8880153fcff0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:923
3 locks held by kworker/1:1/8497:
 #0: ffff888147308138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888147308138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline]
 #0: ffff888147308138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline]
 #0: ffff888147308138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline]
 #0: ffff888147308138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline]
 #0: ffff888147308138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x871/0x15f0 kernel/workqueue.c:2243
 #1: ffffc90000edfda8 ((addr_chk_work).work){+.+.}-{0:0}, at: process_one_work+0x8a5/0x15f0 kernel/workqueue.c:2247
 #2: ffffffff8c940f88 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4569
1 lock held by syz-executor598/8527:

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

NMI backtrace for cpu 1
CPU: 1 PID: 1656 Comm: khungtaskd Not tainted 5.10.0-rc6-next-20201201-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+0x107/0x163 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:147 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:253 [inline]
 watchdog+0xd89/0xf30 kernel/hung_task.c:338
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8527 Comm: syz-executor598 Not tainted 5.10.0-rc6-next-20201201-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x39b/0x5500 kernel/locking/lockdep.c:4780
Code: 00 45 09 f9 c1 e0 14 41 09 c1 41 8b 44 24 20 25 ff 1f 00 00 41 09 c1 48 b8 00 00 00 00 00 fc ff df 45 89 4c 24 20 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 96 11 00 00 8b
RSP: 0018:ffffc90000e1e858 EFLAGS: 00000002
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880167059fc
RBP: ffff888016705040 R08: 0000000000000001 R09: 0000000000040640
R10: 0000000000000028 R11: 0000000000000000 R12: ffff8880167059d8
R13: 0000000000000000 R14: ffff888012047668 R15: 0000000000040000
FS:  0000000000ecc880(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd789f216c0 CR3: 0000000012079000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire kernel/locking/lockdep.c:5437 [inline]
 lock_acquire+0x29d/0x740 kernel/locking/lockdep.c:5402
 __mutex_lock_common kernel/locking/mutex.c:956 [inline]
 __mutex_lock+0x134/0x1110 kernel/locking/mutex.c:1103
 tcf_idr_check_alloc+0x78/0x3b0 net/sched/act_api.c:549
 tcf_police_init+0x347/0x13a0 net/sched/act_police.c:81
 tcf_action_init_1+0x1a3/0x990 net/sched/act_api.c:1013
 tcf_exts_validate+0x138/0x420 net/sched/cls_api.c:3048
 tcindex_set_parms+0x189/0x20d0 net/sched/cls_tcindex.c:342
 tcindex_change+0x212/0x320 net/sched/cls_tcindex.c:546
 tc_new_tfilter+0x1394/0x2120 net/sched/cls_api.c:2129
 rtnetlink_rcv_msg+0x80e/0xad0 net/core/rtnetlink.c:5553
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 ____sys_sendmsg+0x331/0x810 net/socket.c:2340
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2394
 __sys_sendmmsg+0x195/0x470 net/socket.c:2484
 __do_sys_sendmmsg net/socket.c:2513 [inline]
 __se_sys_sendmmsg net/socket.c:2510 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2510
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x441709
Code: e8 5c ad 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 bb 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc72e86e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441709
RDX: 010efe10675dec16 RSI: 0000000020000200 RDI: 0000000000000003
RBP: 00007ffc72e86e20 R08: 0000000120080522 R09: 0000000120080522
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004a2a50
R13: 00000000004025e0 R14: 0000000000000000 R15: 0000000000000000
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.043 msecs

Crashes (84):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/04 00:51 linux-next 0eedceafd3a6 e6b0d314 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2021/02/11 03:40 upstream 291009f656e8 a52ee10a .config console log report syz C ci-upstream-kasan-gce-selinux-root INFO: task hung in tcindex_partial_destroy_work
2021/02/05 11:11 upstream 5c279c4cf206 23a562df .config console log report syz C ci-upstream-kasan-gce-smack-root INFO: task hung in tcindex_partial_destroy_work
2021/01/09 06:50 upstream 6279d812eab6 c104d4a3 .config console log report syz C ci-upstream-kasan-gce
2021/01/03 17:06 upstream 3516bd729358 79264ae3 .config console log report syz C ci-upstream-kasan-gce
2021/01/01 08:00 upstream f6e1ea196492 79264ae3 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2021/01/01 07:03 upstream f6e1ea196492 79264ae3 .config console log report syz C ci-upstream-kasan-gce
2020/12/08 16:03 upstream cd796ed33450 51a9082e .config console log report syz C ci-upstream-kasan-gce
2020/11/30 07:12 upstream aae5ab854e38 a0092f9d .config console log report syz C ci-upstream-kasan-gce-root
2021/01/03 09:40 net-old 4bfc4714849d 79264ae3 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/12/22 11:34 net-old 54ddbdb02488 04201c06 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/11/30 10:45 net-old 4d521943f76b a0092f9d .config console log report syz C ci-upstream-net-this-kasan-gce
2020/11/25 02:18 net-old d549699048b4 e34b696c .config console log report syz C ci-upstream-net-this-kasan-gce
2020/10/12 12:01 net-old 874fb9e2ca94 4a77ae0b .config console log report syz C ci-upstream-net-this-kasan-gce
2020/09/30 10:06 net-old c92a79829c7c 5abc3f1a .config console log report syz C ci-upstream-net-this-kasan-gce
2020/09/27 20:33 net-old 059432495e20 5dd8aee8 .config console log report syz C ci-upstream-net-this-kasan-gce
2021/01/01 13:31 net-next-old 3db1a3fa9880 79264ae3 .config console log report syz C ci-upstream-net-kasan-gce
2021/01/01 08:53 net-next-old 3db1a3fa9880 79264ae3 .config console log report syz C ci-upstream-net-kasan-gce
2020/12/22 07:15 net-next-old 3db1a3fa9880 04201c06 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/31 06:37 net-next-old 1fb74191988f 18e33098 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/08 05:17 net-next-old 9faebeb2d800 1880b4a9 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/07 22:24 net-next-old 9faebeb2d800 1880b4a9 .config console log report syz C ci-upstream-net-kasan-gce
2020/10/06 19:37 net-next-old 8b0308fe319b 1880b4a9 .config console log report syz C ci-upstream-net-kasan-gce
2021/01/21 16:58 upstream 9791581c049c d4f4eca5 .config console log report info ci-upstream-kasan-gce INFO: task hung in tcindex_partial_destroy_work
2021/01/01 02:19 upstream f6e1ea196492 79264ae3 .config console log report info ci-upstream-kasan-gce-root
2020/11/02 15:52 upstream 3cea11cd5e3b 8bc4594f .config console log report info ci-upstream-kasan-gce
2020/10/08 01:00 upstream c85fb28b6f99 1880b4a9 .config console log report info ci-upstream-kasan-gce-root
2020/10/06 21:23 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce
2020/10/06 09:29 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce
2020/10/06 03:02 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce
2020/10/06 02:14 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce
2020/10/06 01:01 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce-root
2020/10/06 03:19 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce-386
2020/10/06 00:27 upstream 7575fdda569b 1880b4a9 .config console log report info ci-upstream-kasan-gce-386
2020/10/07 21:42 net-old d91dc434f2ba 1880b4a9 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/06 23:07 net-old 7575fdda569b 1880b4a9 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/06 20:16 net-old 7575fdda569b 1880b4a9 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/05 23:27 net-old 4296adc3e32f 1880b4a9 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/03 06:23 net-old ab0faf5f04e8 2653fa43 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/03 05:46 net-old ab0faf5f04e8 2653fa43 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/03 05:14 net-old ab0faf5f04e8 2653fa43 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/02 19:43 net-old ef9da46ddef0 4969d6ca .config console log report info ci-upstream-net-this-kasan-gce
2020/10/02 17:30 net-old ef9da46ddef0 4969d6ca .config console log report info ci-upstream-net-this-kasan-gce
2020/10/02 16:35 net-old ef9da46ddef0 4969d6ca .config console log report info ci-upstream-net-this-kasan-gce
2020/10/02 16:22 net-old ef9da46ddef0 4969d6ca .config console log report info ci-upstream-net-this-kasan-gce
2020/10/02 05:51 net-old bb13a800620c 9602ddf4 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/02 05:16 net-old bb13a800620c 9602ddf4 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/01 08:10 net-old a59cf619787e a9767fb2 .config console log report info ci-upstream-net-this-kasan-gce
2020/10/01 03:23 net-old 2b3e981a94d8 8516f6d3 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 22:02 net-old 2b3e981a94d8 8516f6d3 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 14:51 net-old 2b3e981a94d8 8516f6d3 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 09:25 net-old c92a79829c7c 5abc3f1a .config console log report info ci-upstream-net-this-kasan-gce
2020/09/30 05:40 net-old c92a79829c7c 5abc3f1a .config console log report info ci-upstream-net-this-kasan-gce
2020/09/29 20:31 net-old c92a79829c7c 5abc3f1a .config console log report info ci-upstream-net-this-kasan-gce
2020/09/29 19:00 net-old c92a79829c7c 1b88c6d5 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/28 22:36 net-old 709a16be0593 6bfdbe89 .config console log report info ci-upstream-net-this-kasan-gce
2020/09/25 15:28 net-old ad2b9b0f8d01 4a006f63 .config console log report info ci-upstream-net-this-kasan-gce
2021/01/10 23:38 net-next-old 73b7a6047971 2c1f2513 .config console log report info ci-upstream-net-kasan-gce
2021/01/02 12:49 net-next-old 3db1a3fa9880 79264ae3 .config console log report info ci-upstream-net-kasan-gce
2021/01/01 04:14 net-next-old 3db1a3fa9880 79264ae3 .config console log report info ci-upstream-net-kasan-gce
2020/12/20 02:02 net-next-old 3db1a3fa9880 04201c06 .config console log report info ci-upstream-net-kasan-gce
2020/12/05 21:50 net-next-old bcd684aace34 50503117 .config console log report info ci-upstream-net-kasan-gce
2020/12/03 08:59 net-next-old cec85994c6b4 8c9190ef .config console log report info ci-upstream-net-kasan-gce
2020/10/16 02:03 net-next-old 346e320cb210 6e262c73 .config console log report info ci-upstream-net-kasan-gce
2020/10/07 05:15 net-next-old 9faebeb2d800 1880b4a9 .config console log report info ci-upstream-net-kasan-gce
2020/10/06 14:25 net-next-old 8b0308fe319b 1880b4a9 .config console log report info ci-upstream-net-kasan-gce
2020/10/06 13:32 net-next-old 8b0308fe319b 1880b4a9 .config console log report info ci-upstream-net-kasan-gce
2020/10/06 13:09 net-next-old 8b0308fe319b 1880b4a9 .config console log report info ci-upstream-net-kasan-gce
2021/01/01 22:20 linux-next d7a03a44a5e9 79264ae3 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.