Hello,
syzbot found the following crash on:
HEAD commit: dafd6344 Linux 4.19.79
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=162e6f2b600000
kernel config:
https://syzkaller.appspot.com/x/.config?x=f825f73d8fea6b52
dashboard link:
https://syzkaller.appspot.com/bug?extid=15643e4cfffac60a87ed
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
[email protected]
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
INFO: task syz-executor.4:9959 blocked for more than 140 seconds.
Not tainted 4.19.79 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.4 D27824 9959 7606 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2826 [inline]
__schedule+0x866/0x1dc0 kernel/sched/core.c:3515
schedule+0x92/0x1c0 kernel/sched/core.c:3559
schedule_timeout+0x8c8/0xfc0 kernel/time/timer.c:1782
do_wait_for_common kernel/sched/completion.c:83 [inline]
__wait_for_common kernel/sched/completion.c:104 [inline]
wait_for_common kernel/sched/completion.c:115 [inline]
wait_for_completion+0x29c/0x440 kernel/sched/completion.c:136
flush_workqueue+0x40f/0x14b0 kernel/workqueue.c:2707
nbd_start_device_ioctl drivers/block/nbd.c:1223 [inline]
__nbd_ioctl drivers/block/nbd.c:1294 [inline]
nbd_ioctl+0xb52/0xcb0 drivers/block/nbd.c:1334
__blkdev_driver_ioctl block/ioctl.c:303 [inline]
blkdev_ioctl+0xc38/0x1ab6 block/ioctl.c:601
block_ioctl+0xee/0x130 fs/block_dev.c:1891
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688
ksys_ioctl+0xab/0xd0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459a59
Code: 70 c0 00 48 83 fb 10 7c 6e 49 c7 c4 00 00 00 00 48 89 f7 48 83 fb 20
0f 87 c8 00 00 00 48 8d 44 1e f0 eb 17 f3 0f 6f 0f 66 0f <74> c8 66 0f d7
d1 f3 0f b8 d2 49 01 d4 48 83 c7 10 48 39 c7 76 e4
RSP: 002b:00007f9df8ae4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000459a59
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000005
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9df8ae56d4
R13: 00000000004c3381 R14: 00000000004d6f90 R15: 00000000ffffffff
Showing all locks held in the system:
2 locks held by kworker/u4:2/35:
#0: 00000000e72fe5e9 (&rq->lock){-.-.}, at: idle_balance
kernel/sched/fair.c:9656 [inline]
#0: 00000000e72fe5e9 (&rq->lock){-.-.}, at:
pick_next_task_fair+0xfae/0x1580 kernel/sched/fair.c:6837
#1: 00000000becb639f (rcu_read_lock){....}, at:
__update_idle_core+0x45/0x3f0 kernel/sched/fair.c:6054
1 lock held by khungtaskd/1042:
#0: 00000000becb639f (rcu_read_lock){....}, at:
debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4438
2 locks held by rsyslogd/7426:
#0: 000000007601d63f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110
fs/file.c:767
#1: 00000000e72fe5e9 (&rq->lock){-.-.}, at: rq_lock
kernel/sched/sched.h:1821 [inline]
#1: 00000000e72fe5e9 (&rq->lock){-.-.}, at: __schedule+0x1f8/0x1dc0
kernel/sched/core.c:3453
2 locks held by getty/7549:
#0: 0000000008f52b2d (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000299cb56e (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7550:
#0: 00000000221a696b (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 000000007617c561 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7551:
#0: 00000000b16830de (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000318334b7 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7552:
#0: 000000005de1914c (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 000000006aa81925 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7553:
#0: 00000000e0ab71b3 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000acab5e8d (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7554:
#0: 00000000ffd67e62 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000b66678b0 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7555:
#0: 0000000026fb9014 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000893b4e6e (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by kworker/u5:1/8620:
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
__write_once_size include/linux/compiler.h:220 [inline]
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline]
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
atomic_long_set include/asm-generic/atomic-long.h:59 [inline]
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
set_work_data kernel/workqueue.c:617 [inline]
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
#0: 000000007e36a9c9 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at:
process_one_work+0x87e/0x1750 kernel/workqueue.c:2124
#1: 000000002b1fb0d8 ((work_completion)(&args->work)){+.+.}, at:
process_one_work+0x8b4/0x1750 kernel/workqueue.c:2128
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 1042 Comm: khungtaskd Not tainted 4.19.79 #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+0x172/0x1f0 lib/dump_stack.c:113
nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1b0/0x1f8 lib/nmi_backtrace.c:62
arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x9df/0xee0 kernel/hung_task.c:287
kthread+0x354/0x420 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0xe/0x10
arch/x86/include/asm/irqflags.h:60
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
[email protected].
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.