syzbot


INFO: task can't die in tcf_action_init_1

Status: auto-closed as invalid on 2021/01/04 23:14
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+c82efd5a03cbba18ff25@syzkaller.appspotmail.com
First crash: 1300d, last: 1266d

Sample crash report:
INFO: task syz-executor.3:12418 can't die for more than 143 seconds.
task:syz-executor.3  state:D stack:25992 pid:12418 ppid:  8516 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3773 [inline]
 __schedule+0x893/0x2170 kernel/sched/core.c:4522
 schedule+0xcf/0x270 kernel/sched/core.c:4600
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4659
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x81a/0x1110 kernel/locking/mutex.c:1103
 tcf_action_init_1+0x747/0x990 net/sched/act_api.c:968
 tcf_action_init+0x265/0x4b0 net/sched/act_api.c:1043
 tcf_action_add+0xd9/0x360 net/sched/act_api.c:1456
 tc_ctl_action+0x33a/0x440 net/sched/act_api.c:1509
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5562
 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+0x6e8/0x810 net/socket.c:2362
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2416
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2449
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45deb9
Code: Unable to access opcode bytes at RIP 0x45de8f.
RSP: 002b:00007f105d515c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002e680 RCX: 000000000045deb9
RDX: 0000000000000000 RSI: 0000000020002980 RDI: 0000000000000005
RBP: 000000000118c008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4
R13: 00007ffcada812df R14: 00007f105d5169c0 R15: 000000000118bfd4
INFO: task syz-executor.3:12418 blocked for more than 144 seconds.
      Not tainted 5.10.0-rc2-next-20201105-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:25992 pid:12418 ppid:  8516 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3773 [inline]
 __schedule+0x893/0x2170 kernel/sched/core.c:4522
 schedule+0xcf/0x270 kernel/sched/core.c:4600
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4659
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x81a/0x1110 kernel/locking/mutex.c:1103
 tcf_action_init_1+0x747/0x990 net/sched/act_api.c:968
 tcf_action_init+0x265/0x4b0 net/sched/act_api.c:1043
 tcf_action_add+0xd9/0x360 net/sched/act_api.c:1456
 tc_ctl_action+0x33a/0x440 net/sched/act_api.c:1509
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5562
 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+0x6e8/0x810 net/socket.c:2362
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2416
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2449
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45deb9
Code: Unable to access opcode bytes at RIP 0x45de8f.
RSP: 002b:00007f105d515c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002e680 RCX: 000000000045deb9
RDX: 0000000000000000 RSI: 0000000020002980 RDI: 0000000000000005
RBP: 000000000118c008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4
R13: 00007ffcada812df R14: 00007f105d5169c0 R15: 000000000118bfd4
INFO: task syz-executor.3:12423 can't die for more than 144 seconds.
task:syz-executor.3  state:R  running task     stack:25368 pid:12423 ppid:  8516 flags:0x00004006
Call Trace:

Showing all locks held in the system:
1 lock held by ksoftirqd/0/10:
 #0: ffff8880b9e34dd8 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1292 [inline]
 #0: ffff8880b9e34dd8 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x21a/0x2170 kernel/sched/core.c:4440
3 locks held by kworker/1:1/23:
 #0: ffff888020ca3d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff888020ca3d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline]
 #0: ffff888020ca3d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline]
 #0: ffff888020ca3d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:616 [inline]
 #0: ffff888020ca3d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:643 [inline]
 #0: ffff888020ca3d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x821/0x15a0 kernel/workqueue.c:2243
 #1: ffffc90000ddfda8 ((addr_chk_work).work){+.+.}-{0:0}, at: process_one_work+0x854/0x15a0 kernel/workqueue.c:2247
 #2: ffffffff8c92bc48 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4569
1 lock held by khungtaskd/1659:
 #0: ffffffff8b3381a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6253
1 lock held by in:imklog/8176:
 #0: ffff88801c6854f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:932
1 lock held by syz-executor.3/12418:
 #0: ffffffff8c92bc48 (rtnl_mutex){+.+.}-{3:3}, at: tcf_action_init_1+0x747/0x990 net/sched/act_api.c:968
2 locks held by syz-executor.3/12423:

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

NMI backtrace for cpu 1
CPU: 1 PID: 1659 Comm: khungtaskd Not tainted 5.10.0-rc2-next-20201105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:118
 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+0x3af/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: 4894 Comm: systemd-journal Not tainted 5.10.0-rc2-next-20201105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:46 [inline]
RIP: 0010:unwind_next_frame+0x13d3/0x1f90 arch/x86/kernel/unwind_orc.c:601
Code: 8d 7f 08 49 8b 6f 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 d5 07 00 00 49 8d 7f 10 4d 8b 67 08 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f
RSP: 0018:ffffc9000153f968 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 1ffff920002a7f35 RCX: 0000000000000003
RDX: 1ffff920002a7f49 RSI: 0000000000000001 RDI: ffffc9000153fa50
RBP: ffffc9000153fd78 R08: ffffffff8d6dfcbe R09: ffffffff8d6dfcc2
R10: 0000000000082081 R11: 0000000000000001 R12: ffffc90001538000
R13: ffffc9000153fa75 R14: ffffc9000153fa90 R15: ffffc9000153fa40
FS:  00007f05d8f928c0(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f05d63c5008 CR3: 00000000259f1000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121
 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:49
 kasan_set_track+0x1c/0x30 mm/kasan/common.c:57
 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:356
 __kasan_slab_free+0x102/0x140 mm/kasan/common.c:438
 slab_free_hook mm/slub.c:1545 [inline]
 slab_free_freelist_hook+0x5d/0x150 mm/slub.c:1583
 slab_free mm/slub.c:3155 [inline]
 kmem_cache_free+0x82/0x350 mm/slub.c:3171
 security_file_free+0xa4/0xd0 security/security.c:1475
 file_free fs/file_table.c:55 [inline]
 __fput+0x3d5/0x920 fs/file_table.c:298
 task_work_run+0xdd/0x190 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x1f0/0x200 kernel/entry/common.c:199
 syscall_exit_to_user_mode+0x38/0x260 kernel/entry/common.c:274
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f05d8522840
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:00007ffeeea503a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: fffffffffffffffe RBX: 00007ffeeea506b0 RCX: 00007f05d8522840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055ff827b0900
RBP: 000000000000000d R08: 0000000000000000 R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000055ff827a3040 R14: 00007ffeeea50670 R15: 000055ff827b0950

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/05 23:13 linux-next 0a6f624a86e7 64069d48 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/10/03 08:34 linux-next 2172e358cd17 2653fa43 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.