INFO: task syz-executor.2:3636 blocked for more than 143 seconds.
Not tainted 5.16.0-next-20220111-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:23864 pid: 3636 ppid: 1 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:4986 [inline]
__schedule+0xab2/0x4e90 kernel/sched/core.c:6296
schedule+0xd2/0x260 kernel/sched/core.c:6369
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428
__mutex_lock_common kernel/locking/mutex.c:673 [inline]
__mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733
__pipe_lock fs/pipe.c:103 [inline]
pipe_write+0x132/0x1c00 fs/pipe.c:430
call_write_iter include/linux/fs.h:2074 [inline]
new_sync_write+0x431/0x660 fs/read_write.c:503
vfs_write+0x7cd/0xae0 fs/read_write.c:590
ksys_write+0x1ee/0x250 fs/read_write.c:643
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:0x7f292c2229cf
RSP: 002b:00007ffd65f3c310 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000000001a RCX: 00007f292c2229cf
RDX: 000000000000001a RSI: 00007ffd65f3c500 RDI: 0000000000000002
RBP: 00007ffd65f3c500 R08: 0000000000000000 R09: 000000000000001a
R10: 00007ffd65f3fd50 R11: 0000000000000293 R12: 000000000000001a
R13: 00007f292c355f80 R14: 000000000000001a R15: 000000000000001a
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8bb839e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460
4 locks held by kworker/1:2/140:
#0: ffff8880b9d39c58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:489
#1: ffff8880b9d27948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3e7/0x4e0 kernel/sched/psi.c:891
#2: ffffffff8bb72578 ((console_sem).lock){-.-.}-{2:2}, at: up+0x12/0xb0 kernel/locking/semaphore.c:186
#3: ffffffff90777a90 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_active_state lib/debugobjects.c:927 [inline]
#3: ffffffff90777a90 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_active_state+0x10b/0x350 lib/debugobjects.c:914
2 locks held by getty/3288:
#0: ffff8880225a3098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc90002b962e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2077
1 lock held by syz-executor.2/3636:
#0: ffff88801e6f6068 (&pipe->mutex/1){+.+.}-{3:3}, at: __pipe_lock fs/pipe.c:103 [inline]
#0: ffff88801e6f6068 (&pipe->mutex/1){+.+.}-{3:3}, at: pipe_write+0x132/0x1c00 fs/pipe.c:430
2 locks held by kworker/u4:6/3934:
1 lock held by syz-executor.2/6750:
#0: ffff88801e6f6068 (&pipe->mutex/1){+.+.}-{3:3}, at: pipe_lock_nested fs/pipe.c:82 [inline]
#0: ffff88801e6f6068 (&pipe->mutex/1){+.+.}-{3:3}, at: pipe_lock+0x5a/0x70 fs/pipe.c:90
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-next-20220111-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+0xcd/0x134 lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:256 [inline]
watchdog+0xcb7/0xed0 kernel/hung_task.c:413
kthread+0x2e9/0x3a0 kernel/kthread.c:377
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: 4376 Comm: kworker/u4:16 Not tainted 5.16.0-next-20220111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:lockdep_softirqs_on+0xdc/0x340 kernel/locking/lockdep.c:4417
Code: ff df 48 89 c1 83 e0 07 48 c1 e9 03 83 c0 03 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 0d 02 00 00 8b 05 39 9c f4 0e 85 c0 75 0b 9c <58> f6 c4 02 0f 85 93 01 00 00 65 48 8b 2c 25 00 70 02 00 48 8d bd
RSP: 0018:ffffc90005667be8 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff8880292dba80 RCX: 1ffffffff20a4120
RDX: 0000000000000004 RSI: 0000000000000000 RDI: ffff8880292dc4e4
RBP: ffff8880292dba80 R08: 0000000000000000 R09: ffff88801d018c83
R10: ffffffff817ea31d R11: 0000000000000001 R12: ffffffff88f45845
R13: ffff888075934cc0 R14: dffffc0000000000 R15: ffffffff88f45940
FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c01536b100 CR3: 000000000b88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__local_bh_enable_ip+0xcd/0x120 kernel/softirq.c:371
spin_unlock_bh include/linux/spinlock.h:399 [inline]
batadv_nc_purge_paths+0x2a5/0x3a0 net/batman-adv/network-coding.c:471
batadv_nc_worker+0x930/0xfa0 net/batman-adv/network-coding.c:722
process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307
worker_thread+0x657/0x1110 kernel/workqueue.c:2454
kthread+0x2e9/0x3a0 kernel/kthread.c:377
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess), 1 bytes skipped:
0: df 48 89 fisttps -0x77(%rax)
3: c1 83 e0 07 48 c1 e9 roll $0xe9,-0x3eb7f820(%rbx)
a: 03 83 c0 03 0f b6 add -0x49f0fc40(%rbx),%eax
10: 14 11 adc $0x11,%al
12: 38 d0 cmp %dl,%al
14: 7c 08 jl 0x1e
16: 84 d2 test %dl,%dl
18: 0f 85 0d 02 00 00 jne 0x22b
1e: 8b 05 39 9c f4 0e mov 0xef49c39(%rip),%eax # 0xef49c5d
24: 85 c0 test %eax,%eax
26: 75 0b jne 0x33
28: 9c pushfq
* 29: 58 pop %rax <-- trapping instruction
2a: f6 c4 02 test $0x2,%ah
2d: 0f 85 93 01 00 00 jne 0x1c6
33: 65 48 8b 2c 25 00 70 mov %gs:0x27000,%rbp
3a: 02 00
3c: 48 rex.W
3d: 8d .byte 0x8d
3e: bd .byte 0xbd