bisecting fixing commit since f21b807c3cf8cd7c5ca9e406b27bf1cd2f1c1238
building syzkaller on 1ba81399e2d03b53a7e631c4ab05f25af1fb1911
testing commit f21b807c3cf8cd7c5ca9e406b27bf1cd2f1c1238
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: 8b21325b923fb20a897d5cf3ff1b49eb35e00ef1ffefe76ca64cf7567fdeef74
run #0: crashed: BUG: sleeping function called from invalid context in lock_sock_nested
run #1: crashed: INFO: task hung in ext4_fill_super
run #2: crashed: INFO: task hung in ext4_fill_super
run #3: crashed: INFO: task hung in ext4_fill_super
run #4: crashed: INFO: task hung in ext4_fill_super
run #5: crashed: INFO: task hung in ext4_fill_super
run #6: crashed: INFO: task hung in ext4_fill_super
run #7: crashed: INFO: task hung in ext4_fill_super
run #8: crashed: INFO: task hung in ext4_fill_super
run #9: crashed: INFO: task hung in ext4_fill_super
run #10: crashed: INFO: task hung in ext4_fill_super
run #11: crashed: INFO: task hung in ext4_fill_super
run #12: crashed: INFO: task hung in ext4_fill_super
run #13: crashed: INFO: task hung in ext4_fill_super
run #14: crashed: INFO: task hung in ext4_fill_super
run #15: crashed: INFO: task hung in ext4_fill_super
run #16: crashed: INFO: task hung in ext4_fill_super
run #17: crashed: INFO: task hung in ext4_fill_super
run #18: crashed: INFO: task hung in ext4_fill_super
run #19: crashed: INFO: task hung in ext4_fill_super
testing current HEAD fb3b0673b7d5b477ed104949450cd511337ba3c6
testing commit fb3b0673b7d5b477ed104949450cd511337ba3c6
compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2
kernel signature: 308498012a20901117843137fdf1e550008e88fe0dc324261f0bead11db861df
all runs: crashed: INFO: task hung in ext4_stop_mmpd
revisions tested: 2, total time: 24m46.248029027s (build: 12m48.712612649s, test: 11m22.251298359s)
the crash still happens on HEAD
commit msg: Merge tag 'mailbox-v5.17' of git://git.linaro.org/landing-teams/working/fujitsu/integration
crash: INFO: task hung in ext4_stop_mmpd
INFO: task syz-executor.1:4126 blocked for more than 143 seconds.
Not tainted 5.16.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:27848 pid: 4126 ppid: 3927 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:4986 [inline]
__schedule+0x90d/0x26e0 kernel/sched/core.c:6296
schedule+0xd2/0x260 kernel/sched/core.c:6369
schedule_timeout+0x19d/0x250 kernel/time/timer.c:1857
do_wait_for_common kernel/sched/completion.c:85 [inline]
__wait_for_common kernel/sched/completion.c:106 [inline]
wait_for_common kernel/sched/completion.c:117 [inline]
wait_for_completion+0x174/0x270 kernel/sched/completion.c:138
kthread_stop+0x104/0x4f0 kernel/kthread.c:648
ext4_stop_mmpd+0x34/0xb0 fs/ext4/mmp.c:255
__ext4_fill_super fs/ext4/super.c:5509 [inline]
ext4_fill_super+0x7952/0xc2a0 fs/ext4/super.c:5558
get_tree_bdev+0x398/0x680 fs/super.c:1295
vfs_get_tree+0x7f/0x2c0 fs/super.c:1500
do_new_mount fs/namespace.c:2994 [inline]
path_mount+0x7e8/0x1a40 fs/namespace.c:3324
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount fs/namespace.c:3522 [inline]
__x64_sys_mount+0x1f5/0x260 fs/namespace.c:3522
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x467afa
RSP: 002b:00007fae85560fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000380 RCX: 0000000000467afa
RDX: 0000000020000000 RSI: 00000000200000c0 RDI: 00007fae85561000
RBP: 00007fae85561040 R08: 00007fae85561040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000
R13: 00000000200000c0 R14: 00007fae85561000 R15: 0000000020000200
INFO: task syz-executor.3:4157 blocked for more than 143 seconds.
Not tainted 5.16.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:27720 pid: 4157 ppid: 3920 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:4986 [inline]
__schedule+0x90d/0x26e0 kernel/sched/core.c:6296
schedule+0xd2/0x260 kernel/sched/core.c:6369
schedule_timeout+0x19d/0x250 kernel/time/timer.c:1857
do_wait_for_common kernel/sched/completion.c:85 [inline]
__wait_for_common kernel/sched/completion.c:106 [inline]
wait_for_common kernel/sched/completion.c:117 [inline]
wait_for_completion+0x174/0x270 kernel/sched/completion.c:138
kthread_stop+0x104/0x4f0 kernel/kthread.c:648
ext4_stop_mmpd+0x34/0xb0 fs/ext4/mmp.c:255
__ext4_fill_super fs/ext4/super.c:5509 [inline]
ext4_fill_super+0x7952/0xc2a0 fs/ext4/super.c:5558
get_tree_bdev+0x398/0x680 fs/super.c:1295
vfs_get_tree+0x7f/0x2c0 fs/super.c:1500
do_new_mount fs/namespace.c:2994 [inline]
path_mount+0x7e8/0x1a40 fs/namespace.c:3324
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount fs/namespace.c:3522 [inline]
__x64_sys_mount+0x1f5/0x260 fs/namespace.c:3522
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x467afa
RSP: 002b:00007fe1cd216fa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000380 RCX: 0000000000467afa
RDX: 0000000020000000 RSI: 00000000200000c0 RDI: 00007fe1cd217000
RBP: 00007fe1cd217040 R08: 00007fe1cd217040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000000
R13: 00000000200000c0 R14: 00007fe1cd217000 R15: 0000000020000200
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8ab79f60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
2 locks held by getty/3315:
#0: ffff8880226d0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x1f/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900027962e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x9dd/0xed0 drivers/tty/n_tty.c:2077
1 lock held by syz-executor.1/4126:
#0: ffff8880790dc0e0 (&type->s_umount_key#27/1){+.+.}-{3:3}, at: alloc_super+0x192/0xa10 fs/super.c:229
1 lock held by syz-executor.3/4157:
#0: ffff88805fca60e0 (&type->s_umount_key#27/1){+.+.}-{3:3}, at: alloc_super+0x192/0xa10 fs/super.c:229
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x30/0xc0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x11f/0x170 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0x88c/0xbf0 kernel/hung_task.c:295
kthread+0x3ab/0x480 kernel/kthread.c:327
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:check_preemption_disabled+0x2/0xe0 lib/smp_processor_id.c:13
Code: a6 87 77 c3 0f 0b eb 96 e8 7b 3d 10 f9 65 48 8b 3c 25 00 70 02 00 e8 cd 81 ce f8 eb bf cc cc cc cc cc cc cc cc cc cc cc 41 54 <55> 53 48 83 ec 08 65 44 8b 25 b8 73 86 77 65 8b 05 a9 c9 86 77 a9
RSP: 0018:ffffc90000cd7b38 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff88cb5c20 RDI: ffffffff8921d9a0
RBP: ffffffff8ab79ea0 R08: 0000000000000000 R09: ffffffff8c83b157
R10: fffffbfff190762a R11: 0000000000000000 R12: ffff88801090d640
R13: 00000000ffffffff R14: 00000000ffffffff R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561deda1c600 CR3: 0000000021246000 CR4: 0000000000350ee0
Call Trace:
lockdep_recursion_inc kernel/locking/lockdep.c:433 [inline]
lock_is_held_type+0x63/0x140 kernel/locking/lockdep.c:5681
lock_is_held include/linux/lockdep.h:283 [inline]
rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125
trace_lock_acquire include/trace/events/lock.h:13 [inline]
lock_acquire+0x442/0x510 kernel/locking/lockdep.c:5610
rcu_lock_acquire include/linux/rcupdate.h:268 [inline]
rcu_read_lock include/linux/rcupdate.h:694 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0x108/0xd70 net/batman-adv/network-coding.c:719
process_one_work+0x879/0x1410 kernel/workqueue.c:2307
worker_thread+0x5a0/0xf60 kernel/workqueue.c:2454
kthread+0x3ab/0x480 kernel/kthread.c:327
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess):
0: a6 cmpsb %es:(%rdi),%ds:(%rsi)
1: 87 77 c3 xchg %esi,-0x3d(%rdi)
4: 0f 0b ud2
6: eb 96 jmp 0xffffff9e
8: e8 7b 3d 10 f9 callq 0xf9103d88
d: 65 48 8b 3c 25 00 70 mov %gs:0x27000,%rdi
14: 02 00
16: e8 cd 81 ce f8 callq 0xf8ce81e8
1b: eb bf jmp 0xffffffdc
1d: cc int3
1e: cc int3
1f: cc int3
20: cc int3
21: cc int3
22: cc int3
23: cc int3
24: cc int3
25: cc int3
26: cc int3
27: cc int3
28: 41 54 push %r12
* 2a: 55 push %rbp <-- trapping instruction
2b: 53 push %rbx
2c: 48 83 ec 08 sub $0x8,%rsp
30: 65 44 8b 25 b8 73 86 mov %gs:0x778673b8(%rip),%r12d # 0x778673f0
37: 77
38: 65 8b 05 a9 c9 86 77 mov %gs:0x7786c9a9(%rip),%eax # 0x7786c9e8
3f: a9 .byte 0xa9