netlink: 20 bytes leftover after parsing attributes in process `syz-executor.0'.
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
NOHZ: local_softirq_pending 08
NOHZ: local_softirq_pending 08
NOHZ: local_softirq_pending 08
BUG: workqueue lockup - pool cpus=1 node=0 flags=0x0 nice=0 stuck for 181s!
Showing busy workqueues and worker pools:
workqueue events: flags=0x0
pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=7/256 refcnt=8
pending: destroy_super_work, cache_reap, defense_work_handler, defense_work_handler, defense_work_handler, defense_work_handler, defense_work_handler
======================================================
WARNING: possible circular locking dependency detected
4.19.124-syzkaller #0 Not tainted
------------------------------------------------------
swapper/0/0 is trying to acquire lock:
000000007374275c (console_owner){-.-.}, at: log_next kernel/printk/printk.c:499 [inline]
000000007374275c (console_owner){-.-.}, at: console_unlock+0x380/0xff0 kernel/printk/printk.c:2416
but task is already holding lock:
000000009fab6684 (&(&pool->lock)->rlock){-.-.}, at: show_workqueue_state kernel/workqueue.c:4584 [inline]
000000009fab6684 (&(&pool->lock)->rlock){-.-.}, at: show_workqueue_state.cold+0x294/0x1038 kernel/workqueue.c:4557
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #4 (&(&pool->lock)->rlock){-.-.}:
spin_lock include/linux/spinlock.h:329 [inline]
__queue_work+0x1f1/0x1100 kernel/workqueue.c:1419
queue_work_on+0x17e/0x1f0 kernel/workqueue.c:1488
queue_work include/linux/workqueue.h:512 [inline]
schedule_work include/linux/workqueue.h:570 [inline]
put_pwq kernel/workqueue.c:1090 [inline]
put_pwq+0x15a/0x1b0 kernel/workqueue.c:1075
put_pwq_unlocked.part.0+0x30/0x70 kernel/workqueue.c:1107
put_pwq_unlocked kernel/workqueue.c:1101 [inline]
destroy_workqueue+0x5f4/0x6f0 kernel/workqueue.c:4243
do_floppy_init drivers/block/floppy.c:4737 [inline]
floppy_async_init+0x1fff/0x2138 drivers/block/floppy.c:4754
async_run_entry_fn+0x121/0x530 kernel/async.c:127
process_one_work+0x892/0x1580 kernel/workqueue.c:2155
worker_thread+0x96/0xe20 kernel/workqueue.c:2298
kthread+0x30b/0x410 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
-> #3 (&pool->lock/1){..-.}:
spin_lock include/linux/spinlock.h:329 [inline]
__queue_work+0x1f1/0x1100 kernel/workqueue.c:1419
queue_work_on+0x17e/0x1f0 kernel/workqueue.c:1488
pty_write+0x198/0x1f0 drivers/tty/pty.c:125
process_output_block drivers/tty/n_tty.c:593 [inline]
n_tty_write+0x3ee/0x1080 drivers/tty/n_tty.c:2331
do_tty_write drivers/tty/tty_io.c:960 [inline]
tty_write+0x455/0x790 drivers/tty/tty_io.c:1044
__vfs_write+0xf7/0x760 fs/read_write.c:485
vfs_write+0x1f3/0x540 fs/read_write.c:549
ksys_write+0x12b/0x2a0 fs/read_write.c:599
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
-> #2 (&(&port->lock)->rlock){-.-.}:
tty_port_tty_get+0x1d/0x80 drivers/tty/tty_port.c:289
tty_port_default_wakeup+0x11/0x40 drivers/tty/tty_port.c:47
serial8250_tx_chars+0x48f/0xaf0 drivers/tty/serial/8250/8250_port.c:1806
serial8250_handle_irq.part.0+0x24b/0x290 drivers/tty/serial/8250/8250_port.c:1879
serial8250_handle_irq drivers/tty/serial/8250/8250_port.c:1865 [inline]
serial8250_default_handle_irq+0xb5/0x140 drivers/tty/serial/8250/8250_port.c:1895
serial8250_interrupt+0xf2/0x1d0 drivers/tty/serial/8250/8250_core.c:125
__handle_irq_event_percpu+0xef/0x8e0 kernel/irq/handle.c:149
handle_irq_event_percpu+0x76/0x160 kernel/irq/handle.c:189
handle_irq_event+0xa2/0x12d kernel/irq/handle.c:206
handle_edge_irq+0x24b/0x8c0 kernel/irq/chip.c:797
generic_handle_irq_desc include/linux/irqdesc.h:155 [inline]
handle_irq+0x35/0x50 arch/x86/kernel/irq_64.c:87
do_IRQ+0x93/0x1c0 arch/x86/kernel/irq.c:246
ret_from_intr+0x0/0x1e
native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60
arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
default_idle+0x49/0x320 arch/x86/kernel/process.c:565
cpuidle_idle_call kernel/sched/idle.c:153 [inline]
do_idle+0x2ee/0x4b0 kernel/sched/idle.c:263
cpu_startup_entry+0xc6/0xd0 kernel/sched/idle.c:369
start_secondary+0x421/0x590 arch/x86/kernel/smpboot.c:271
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243
-> #1 (&port_lock_key){-.-.}:
serial8250_console_write+0x7c8/0x9c0 drivers/tty/serial/8250/8250_port.c:3251
call_console_drivers kernel/printk/printk.c:1736 [inline]
console_unlock+0xaea/0xff0 kernel/printk/printk.c:2429
vprintk_emit+0x484/0x6e0 kernel/printk/printk.c:1937
vprintk_func+0x79/0x17e kernel/printk/printk_safe.c:398
printk+0xba/0xed kernel/printk/printk.c:2012
register_console+0x875/0xc70 kernel/printk/printk.c:2745
univ8250_console_init+0x3a/0x46 drivers/tty/serial/8250/8250_core.c:684
console_init+0x4cb/0x718 kernel/printk/printk.c:2831
start_kernel+0x68c/0x917 init/main.c:660
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243
-> #0 (console_owner){-.-.}:
console_lock_spinning_enable kernel/printk/printk.c:1599 [inline]
console_unlock+0x3e8/0xff0 kernel/printk/printk.c:2426
vprintk_emit+0x484/0x6e0 kernel/printk/printk.c:1937
vprintk_func+0x79/0x17e kernel/printk/printk_safe.c:398
printk+0xba/0xed kernel/printk/printk.c:2012
show_pwq kernel/workqueue.c:4490 [inline]
show_workqueue_state kernel/workqueue.c:4586 [inline]
show_workqueue_state.cold+0x3e5/0x1038 kernel/workqueue.c:4557
wq_watchdog_timer_fn+0x4d8/0x550 kernel/workqueue.c:5598
call_timer_fn+0x177/0x700 kernel/time/timer.c:1326
expire_timers+0x24f/0x4f0 kernel/time/timer.c:1363
__run_timers kernel/time/timer.c:1684 [inline]
run_timer_softirq+0x45d/0x660 kernel/time/timer.c:1699
__do_softirq+0x26c/0x93d kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x17b/0x1c0 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:544 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60
arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
default_idle+0x49/0x320 arch/x86/kernel/process.c:565
cpuidle_idle_call kernel/sched/idle.c:153 [inline]
do_idle+0x2ee/0x4b0 kernel/sched/idle.c:263
cpu_startup_entry+0xc6/0xd0 kernel/sched/idle.c:369
start_kernel+0x8dc/0x917 init/main.c:737
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243
other info that might help us debug this:
Chain exists of:
console_owner --> &pool->lock/1 --> &(&pool->lock)->rlock
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&(&pool->lock)->rlock);
lock(&pool->lock/1);
lock(&(&pool->lock)->rlock);
lock(console_owner);
*** DEADLOCK ***
4 locks held by swapper/0/0:
#0: 0000000053a5622a ((&wq_watchdog_timer)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline]
#0: 0000000053a5622a ((&wq_watchdog_timer)){+.-.}, at: call_timer_fn+0xc9/0x700 kernel/time/timer.c:1316
#1: 00000000441ac58a (rcu_read_lock_sched){....}, at: show_workqueue_state+0x0/0x120 kernel/workqueue.c:4455
#2: 000000009fab6684 (&(&pool->lock)->rlock){-.-.}, at: show_workqueue_state kernel/workqueue.c:4584 [inline]
#2: 000000009fab6684 (&(&pool->lock)->rlock){-.-.}, at: show_workqueue_state.cold+0x294/0x1038 kernel/workqueue.c:4557
#3: 00000000f99b5f8b (console_lock){+.+.}, at: console_trylock_spinning kernel/printk/printk.c:1661 [inline]
#3: 00000000f99b5f8b (console_lock){+.+.}, at: vprintk_emit+0x266/0x6e0 kernel/printk/printk.c:1936
stack backtrace:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.124-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+0x1fc/0x2fe lib/dump_stack.c:118
print_circular_bug.isra.0.cold+0x2dc/0x425 kernel/locking/lockdep.c:1221
check_prev_add kernel/locking/lockdep.c:1865 [inline]
check_prevs_add kernel/locking/lockdep.c:1978 [inline]
validate_chain kernel/locking/lockdep.c:2419 [inline]
__lock_acquire+0x3145/0x4380 kernel/locking/lockdep.c:3415
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
console_lock_spinning_enable kernel/printk/printk.c:1599 [inline]
console_unlock+0x3e8/0xff0 kernel/printk/printk.c:2426
vprintk_emit+0x484/0x6e0 kernel/printk/printk.c:1937
vprintk_func+0x79/0x17e kernel/printk/printk_safe.c:398
printk+0xba/0xed kernel/printk/printk.c:2012
show_pwq kernel/workqueue.c:4490 [inline]
show_workqueue_state kernel/workqueue.c:4586 [inline]
show_workqueue_state.cold+0x3e5/0x1038 kernel/workqueue.c:4557
wq_watchdog_timer_fn+0x4d8/0x550 kernel/workqueue.c:5598
call_timer_fn+0x177/0x700 kernel/time/timer.c:1326
expire_timers+0x24f/0x4f0 kernel/time/timer.c:1363
__run_timers kernel/time/timer.c:1684 [inline]
run_timer_softirq+0x45d/0x660 kernel/time/timer.c:1699
__do_softirq+0x26c/0x93d kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x17b/0x1c0 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:544 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 48 8b 04 24 e9 bb fe ff ff 48 89 df e8 8b 28 7f fa eb 82 90 90 90 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d c4 d5 49 00 fb f4 90 e9 07 00 00 00 0f 00 2d b4 d5 49 00 f4 c3 90 90 41 56 41 55
RSP: 0018:ffffffff88a07d40 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff1164acc RBX: dffffc0000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffffffff88a7a744
RBP: 0000000000000000 R08: ffffffff88a79ec0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff88b25650
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff88a79ec0
arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
default_idle+0x49/0x320 arch/x86/kernel/process.c:565
cpuidle_idle_call kernel/sched/idle.c:153 [inline]
do_idle+0x2ee/0x4b0 kernel/sched/idle.c:263
cpu_startup_entry+0xc6/0xd0 kernel/sched/idle.c:369
start_kernel+0x8dc/0x917 init/main.c:737
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243
pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=2/256 refcnt=3
in-flight: 2743:switchdev_deferred_process_work switchdev_deferred_process_work
workqueue events_highpri: flags=0x10
pwq 3: cpus=1 node=0 flags=0x0 nice=-20 active=1/256 refcnt=3
pending: flush_backlog BAR(47)
workqueue events_power_efficient: flags=0x80
pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
pending: gc_worker
workqueue mm_percpu_wq: flags=0x8
pwq 2: cpus=1 node=0 flags=0x0 nice=0 active=3/256 refcnt=6
pending: vmstat_update, lru_add_drain_per_cpu BAR(28077), drain_local_pages_wq BAR(1086)
workqueue netns: flags=0xe000a
pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/1 refcnt=4
in-flight: 47:cleanup_net
workqueue ipv6_addrconf: flags=0x40008
pwq 0: cpus=0 node=0 flags=0x0 nice=0 active=1/1 refcnt=2
in-flight: 14:addrconf_verify_work
workqueue bat_events: flags=0xe000a
pwq 4: cpus=0-1 flags=0x4 nice=0 active=1/1 refcnt=6
pending: batadv_purge_orig
delayed: batadv_iv_send_outstanding_bat_ogm_packet, batadv_purge_orig
pool 0: cpus=0 node=0 flags=0x0 nice=0 hung=1s workers=4 idle: 28137 5
pool 4: cpus=0-1 flags=0x4 nice=0 hung=1s workers=6 idle: 23 8096 2356 173 7
INFO: task syz-executor.1:28077 blocked for more than 140 seconds.
Not tainted 4.19.124-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1 D27784 28077 6567 0x00000004
Call Trace:
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 1079 Comm: khungtaskd Not tainted 4.19.124-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+0x1fc/0x2fe lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1eb lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x962/0xe40 kernel/hung_task.c:287
kthread+0x30b/0x410 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: 27813 Comm: syz-executor.2 Not tainted 4.19.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1be/0x4380 kernel/locking/lockdep.c:3274
Code: 24 88 00 00 00 48 85 c0 0f 85 b5 00 00 00 45 31 ff 48 b8 00 00 00 00 00 fc ff df 48 03 84 24 90 00 00 00 48 c7 00 00 00 00 00 <48> c7 40 08 00 00 00 00 c7 40 18 00 00 00 00 44 89 f8 48 8b b4 24
RSP: 0000:ffff88804cfd78b0 EFLAGS: 00000082
RAX: ffffed10099faf2a RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000004 RSI: 0000000000000000 RDI: ffff888047205a08
RBP: ffff88804cfd7a78 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff88803a734a0b R12: 0000000000000001
R13: 0000000000000000 R14: ffff8880890b82c0 R15: 0000000000000000
FS: 00007f6c32f3a700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000084ff8000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
__might_fault mm/memory.c:4638 [inline]
__might_fault+0x152/0x1d0 mm/memory.c:4623
__clear_user+0x1e/0x70 arch/x86/lib/usercopy_64.c:19
copy_xregs_to_user arch/x86/include/asm/fpu/internal.h:375 [inline]
copy_fpregs_to_sigframe arch/x86/kernel/fpu/signal.c:126 [inline]
copy_fpstate_to_sigframe+0x1a1/0x6b0 arch/x86/kernel/fpu/signal.c:177
get_sigframe.isra.0.constprop.0+0x4a5/0x6a0 arch/x86/kernel/signal.c:284
__setup_rt_frame arch/x86/kernel/signal.c:466 [inline]
setup_rt_frame arch/x86/kernel/signal.c:711 [inline]
handle_signal arch/x86/kernel/signal.c:755 [inline]
do_signal+0xaaf/0x1620 arch/x86/kernel/signal.c:823
exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
prepare_exit_to_usermode+0x27b/0x2e0 arch/x86/entry/common.c:198
retint_user+0x8/0x18
RIP: 0033: (null)
Code: Bad RIP value.
RSP: 002b:00007f6c32f397b0 EFLAGS: 00010287
RAX: 0000000000000001 RBX: 0000000000509200 RCX: 000000000045c9f7
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007f6c32f3a608
RBP: 000000000078bf00 R08: 00007f6c32f397b0 R09: 000000000078bf00
R10: 00007f6c32f39a70 R11: 0000000000000213 R12: 00000000ffffffff
R13: 0000000000000c0f R14: 00000000004ce59d R15: 00007f6c32f3a6d4