Hello,
syzbot found the following crash on:
HEAD commit: a5aa8058 Linux 4.19.67
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=11efe81e600000
kernel config:
https://syzkaller.appspot.com/x/.config?x=8e5f93d2c874cdab
dashboard link:
https://syzkaller.appspot.com/bug?extid=cb1a7299534706f76d88
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:
syzbot+cb1a72...@syzkaller.appspotmail.com
BFS-fs: bfs_fill_super(): Last block not available: 1587619
INFO: task syz-executor.2:16977 blocked for more than 140 seconds.
Not tainted 4.19.67 #41
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2 D28152 16977 7539 0x00000004
Call Trace:
context_switch kernel/sched/core.c:2826 [inline]
__schedule+0x866/0x1dc0 kernel/sched/core.c:3474
schedule+0x92/0x1c0 kernel/sched/core.c:3518
schedule_timeout+0x8c8/0xfc0 kernel/time/timer.c:1780
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_work+0x49f/0x870 kernel/workqueue.c:2920
__cancel_work_timer+0x3bf/0x520 kernel/workqueue.c:3007
cancel_work_sync+0x18/0x20 kernel/workqueue.c:3043
p9_conn_destroy net/9p/trans_fd.c:883 [inline]
p9_fd_close+0x329/0x570 net/9p/trans_fd.c:913
p9_client_create+0x98c/0x1400 net/9p/client.c:1083
v9fs_session_init+0x1e7/0x18c0 fs/9p/v9fs.c:421
v9fs_mount+0x7d/0x920 fs/9p/vfs_super.c:135
mount_fs+0xa8/0x31f fs/super.c:1261
vfs_kern_mount.part.0+0x6f/0x410 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x53e/0x2bc0 fs/namespace.c:2799
ksys_mount+0xdb/0x150 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xbe/0x150 fs/namespace.c:3026
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459829
Code: ff ff c3 c5 f8 77 eb 60 80 3d 3c b0 39 01 01 0f 85 7f fd ff ff 48 83
f8 0c 0f 83 74 fe ff ff 48 8d 75 10 66 f7 c6 f0 0f 0f 84 <66> fd ff ff f3
0f 6f 4d 00 48 8d 74 17 f1 49 c7 c1 10 00 00 00 49
RSP: 002b:00007fc3c2341c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000459829
RDX: 0000000020000100 RSI: 0000000020000140 RDI: 0000000000000000
RBP: 000000000075c118 R08: 00000000200001c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc3c23426d4
R13: 00000000004c5dcf R14: 00000000004da890 R15: 00000000ffffffff
Showing all locks held in the system:
2 locks held by kworker/u4:1/23:
#0: 0000000011891ec1 (&rq->lock){-.-.}, at: idle_balance
kernel/sched/fair.c:9650 [inline]
#0: 0000000011891ec1 (&rq->lock){-.-.}, at:
pick_next_task_fair+0xb1f/0x15c0 kernel/sched/fair.c:6832
#1: 00000000627a8628 (rcu_read_lock){....}, at:
__update_idle_core+0x45/0x3f0 kernel/sched/fair.c:6049
1 lock held by khungtaskd/1035:
#0: 00000000627a8628 (rcu_read_lock){....}, at:
debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4435
1 lock held by rsyslogd/7369:
#0: 000000003637083d (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110
fs/file.c:767
2 locks held by getty/7491:
#0: 0000000005113988 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 000000009bf2728f (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7492:
#0: 000000002e4d859a (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000e23b9bbe (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7493:
#0: 00000000c4d4ecad (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000ae2c46ca (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7494:
#0: 00000000b302f339 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 00000000a0413d51 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7495:
#0: 000000002ac73f99 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 0000000056393740 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7496:
#0: 000000000ec41afc (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 0000000054911d82 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by getty/7497:
#0: 000000009484c9a5 (&tty->ldisc_sem){++++}, at:
ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:362
#1: 000000008fe37e92 (&ldata->atomic_read_lock){+.+.}, at:
n_tty_read+0x232/0x1b30 drivers/tty/n_tty.c:2154
2 locks held by kworker/1:1/23678:
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at:
__write_once_size include/linux/compiler.h:220 [inline]
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at:
arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at: atomic64_set
include/asm-generic/atomic-instrumented.h:40 [inline]
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at: atomic_long_set
include/asm-generic/atomic-long.h:59 [inline]
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at: set_work_data
kernel/workqueue.c:617 [inline]
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at:
set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline]
#0: 0000000082033c25 ((wq_completion)"events"){+.+.}, at:
process_one_work+0x87e/0x1750 kernel/workqueue.c:2124
#1: 0000000046e20cf6 ((work_completion)(&m->wq)){+.+.}, at:
process_one_work+0x8b4/0x1750 kernel/workqueue.c:2128
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 1035 Comm: khungtaskd Not tainted 4.19.67 #41
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
CPU: 1 PID: 23 Comm: kworker/u4:1 Not tainted 4.19.67 #41
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:mark_lock+0x2f/0x1370 kernel/locking/lockdep.c:3095
Code: 89 d1 48 b8 00 00 00 00 00 fc ff df 48 89 e5 41 57 49 89 ff 41 56 41
89 d6 4c 89 ca 41 55 48 c1 ea 03 41 bd 01 00 00 00 41 54 <41> d3 e5 49 89
f4 53 48 83 ec 20 0f b6 04 02 84 c0 74 08 3c 01 0f
RSP: 0018:ffff8880aa39fb48 EFLAGS: 00000806
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000002
RDX: 1ffff11015471dd4 RSI: ffff8880aa38ee80 RDI: ffff8880aa38e600
RBP: ffff8880aa39fb68 R08: ffff8880aa38e600 R09: ffff8880aa38eea0
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880aa38ee80
R13: 0000000000000001 R14: 0000000000000002 R15: ffff8880aa38e600
FS: 0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba1b38f140 CR3: 00000000a5e37000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
mark_held_locks+0xb1/0x100 kernel/locking/lockdep.c:2805
__trace_hardirqs_on_caller kernel/locking/lockdep.c:2826 [inline]
lockdep_hardirqs_on+0x19b/0x5d0 kernel/locking/lockdep.c:2879
trace_hardirqs_on+0x67/0x220 kernel/trace/trace_preemptirq.c:30
__local_bh_enable_ip+0x15a/0x270 kernel/softirq.c:194
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0x31/0x40 kernel/locking/spinlock.c:200
spin_unlock_bh include/linux/spinlock.h:374 [inline]
batadv_nc_purge_paths+0x265/0x370 net/batman-adv/network-coding.c:482
batadv_nc_worker+0x29c/0x760 net/batman-adv/network-coding.c:731
process_one_work+0x989/0x1750 kernel/workqueue.c:2153
worker_thread+0x98/0xe40 kernel/workqueue.c:2296
kthread+0x354/0x420 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415