BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 8189, name: kworker/u4:9 5 locks held by kworker/u4:9/8189: #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x87e/0x1750 kernel/workqueue.c:2124 #1: 000000005765a5cd (net_cleanup_work){+.+.}, at: process_one_work+0x8b4/0x1750 kernel/workqueue.c:2128 #2: 000000008f0a4f65 (pernet_ops_rwsem){++++}, at: cleanup_net+0xae/0x960 net/core/net_namespace.c:520 #3: 0000000091594c13 (rcu_read_lock){....}, at: __read_once_size include/linux/compiler.h:193 [inline] #3: 0000000091594c13 (rcu_read_lock){....}, at: inet_twsk_purge+0xe7/0x7f7 net/ipv4/inet_timewait_sock.c:269 #4: 00000000efb64152 ((&sp->resync_t)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] #4: 00000000efb64152 ((&sp->resync_t)){+.-.}, at: call_timer_fn+0xda/0x720 kernel/time/timer.c:1316 Preemption disabled at: [] __do_softirq+0xf3/0x921 kernel/softirq.c:269 CPU: 1 PID: 8189 Comm: kworker/u4:9 Not tainted 4.19.89-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0xc8/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x1b6/0x320 drivers/net/hamradio/6pack.c:522 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:__rcu_read_unlock+0x2c/0x170 kernel/rcu/tree_plugin.h:421 Code: 00 00 00 00 00 fc ff df 55 48 89 e5 41 54 53 65 48 8b 1c 25 40 ee 01 00 4c 8d a3 70 03 00 00 4c 89 e2 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e e9 00 00 00 8b 83 70 03 00 00 83 f8 01 74 RSP: 0018:ffff88804989faf8 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff88804988e6c0 RCX: ffffffff86226950 RDX: 1ffff11009311d46 RSI: ffffffff8622678f RDI: 0000000000000001 RBP: ffff88804989fb08 R08: ffff88804988e6c0 R09: ffffed1015d24733 R10: ffffed1015d24732 R11: ffff8880ae923993 R12: ffff88804988ea30 R13: 000000000000b824 R14: dffffc0000000000 R15: 0000000000000002 rcu_read_unlock include/linux/rcupdate.h:680 [inline] inet_twsk_purge+0x564/0x7f7 net/ipv4/inet_timewait_sock.c:298 dccp_v4_exit_batch+0x1a/0x20 net/dccp/ipv4.c:1030 ops_exit_list.isra.0+0xfc/0x150 net/core/net_namespace.c:156 cleanup_net+0x404/0x960 net/core/net_namespace.c:553 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 ================================ WARNING: inconsistent lock state 4.19.89-syzkaller #0 Tainted: G W -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u4:9/8189 [HC0[0]:SC1[1]:HE1:SE0] takes: 000000008bc3a8c5 (&tpk_port.port_write_mutex){+.?.}, at: tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf7/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_close+0x50/0x95 drivers/char/ttyprintk.c:104 tty_release+0x3ba/0xe90 drivers/tty/tty_io.c:1678 __fput+0x2dd/0x8b0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 85438026 hardirqs last enabled at (85438026): [] trace_hardirqs_on_thunk+0x1a/0x1c hardirqs last disabled at (85438025): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (85437858): [] __do_softirq+0x633/0x921 kernel/softirq.c:318 softirqs last disabled at (85437869): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (85437869): [] irq_exit+0x180/0x1d0 kernel/softirq.c:412 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&tpk_port.port_write_mutex); lock(&tpk_port.port_write_mutex); *** DEADLOCK *** 5 locks held by kworker/u4:9/8189: #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: __write_once_size include/linux/compiler.h:220 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:59 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: 000000004c850450 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x87e/0x1750 kernel/workqueue.c:2124 #1: 000000005765a5cd (net_cleanup_work){+.+.}, at: process_one_work+0x8b4/0x1750 kernel/workqueue.c:2128 #2: 000000008f0a4f65 (pernet_ops_rwsem){++++}, at: cleanup_net+0xae/0x960 net/core/net_namespace.c:520 #3: 0000000091594c13 (rcu_read_lock){....}, at: __read_once_size include/linux/compiler.h:193 [inline] #3: 0000000091594c13 (rcu_read_lock){....}, at: inet_twsk_purge+0xe7/0x7f7 net/ipv4/inet_timewait_sock.c:269 #4: 00000000efb64152 ((&sp->resync_t)){+.-.}, at: lockdep_copy_map include/linux/lockdep.h:168 [inline] #4: 00000000efb64152 ((&sp->resync_t)){+.-.}, at: call_timer_fn+0xda/0x720 kernel/time/timer.c:1316 stack backtrace: CPU: 1 PID: 8189 Comm: kworker/u4:9 Tainted: G W 4.19.89-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_usage_bug.cold+0x330/0x42a kernel/locking/lockdep.c:2540 valid_state kernel/locking/lockdep.c:2553 [inline] mark_lock_irq kernel/locking/lockdep.c:2747 [inline] mark_lock+0xd1b/0x1370 kernel/locking/lockdep.c:3127 mark_irqflags kernel/locking/lockdep.c:3005 [inline] __lock_acquire+0xc62/0x49c0 kernel/locking/lockdep.c:3368 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3903 __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf7/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x1b6/0x320 drivers/net/hamradio/6pack.c:522 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:__rcu_read_unlock+0x2c/0x170 kernel/rcu/tree_plugin.h:421 Code: 00 00 00 00 00 fc ff df 55 48 89 e5 41 54 53 65 48 8b 1c 25 40 ee 01 00 4c 8d a3 70 03 00 00 4c 89 e2 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e e9 00 00 00 8b 83 70 03 00 00 83 f8 01 74 RSP: 0018:ffff88804989faf8 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff88804988e6c0 RCX: ffffffff86226950 RDX: 1ffff11009311d46 RSI: ffffffff8622678f RDI: 0000000000000001 RBP: ffff88804989fb08 R08: ffff88804988e6c0 R09: ffffed1015d24733 R10: ffffed1015d24732 R11: ffff8880ae923993 R12: ffff88804988ea30 R13: 000000000000b824 R14: dffffc0000000000 R15: 0000000000000002 rcu_read_unlock include/linux/rcupdate.h:680 [inline] inet_twsk_purge+0x564/0x7f7 net/ipv4/inet_timewait_sock.c:298 dccp_v4_exit_batch+0x1a/0x20 net/dccp/ipv4.c:1030 ops_exit_list.isra.0+0xfc/0x150 net/core/net_namespace.c:156 cleanup_net+0x404/0x960 net/core/net_namespace.c:553 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 kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'nullb0' (0000000022c60ec5): kobject_uevent_env kobject: 'nullb0' (0000000022c60ec5): fill_kobj_path: path = '/devices/virtual/block/nullb0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' tty_warn_deprecated_flags: 'syz-executor.1' is using deprecated serial flags (with no effect): 00008700 kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env BUG: sleeping function called from invalid context at kernel/locking/mutex.c:908 in_atomic(): 1, irqs_disabled(): 0, pid: 3669, name: udevd INFO: lockdep is turned off. Preemption disabled at: [] vprintk_emit+0x262/0x6d0 kernel/printk/printk.c:1930 CPU: 1 PID: 3669 Comm: udevd Tainted: G W 4.19.89-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+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6192 __might_sleep+0x95/0x190 kernel/sched/core.c:6145 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0xc8/0x1300 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 tpk_write+0x5d/0x340 drivers/char/ttyprintk.c:123 resync_tnc+0x1b6/0x320 drivers/net/hamradio/6pack.c:522 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:console_unlock+0xc26/0x10d0 kernel/printk/printk.c:2437 Code: fc ff df 48 c1 e8 03 80 3c 08 00 0f 85 56 04 00 00 48 83 3d 73 01 9d 07 00 0f 84 b6 02 00 00 e8 00 e9 15 00 48 8b 7d 98 57 9d <0f> 1f 44 00 00 e9 64 ff ff ff e8 eb e8 15 00 48 8b 7d 08 c7 05 9d RSP: 0018:ffff888095ebf830 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff888095eb0400 RBX: 0000000000000200 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffffff81555a60 RDI: 0000000000000293 RBP: ffff888095ebf8b8 R08: ffff888095eb0400 R09: fffffbfff11f19b5 R10: fffffbfff11f19b4 R11: ffffffff88f8cda3 R12: 0000000000000000 R13: ffffffff84626a90 R14: 0000000000000047 R15: ffffffff89655f30 vprintk_emit+0x280/0x6d0 kernel/printk/printk.c:1937 vprintk_default+0x28/0x30 kernel/printk/printk.c:1979 vprintk_func+0x7e/0x189 kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:2012 kobject_uevent_env+0xe2/0x101f lib/kobject_uevent.c:474 kobject_synth_uevent.cold+0xa0/0xfe lib/kobject_uevent.c:208 uevent_store+0x26/0x80 drivers/base/core.c:1073 dev_attr_store+0x59/0x80 drivers/base/core.c:782 sysfs_kf_write+0x116/0x170 fs/sysfs/file.c:139 kernfs_fop_write+0x2b8/0x480 fs/kernfs/file.c:316 __vfs_write+0x114/0x810 fs/read_write.c:485 vfs_write+0x20c/0x560 fs/read_write.c:549 ksys_write+0x14f/0x2d0 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:608 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb3490c2370 Code: 73 01 c3 48 8b 0d c8 4a 2b 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 83 3d 85 a2 2b 00 00 75 10 b8 01 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 0e 8a 01 00 48 89 04 24 RSP: 002b:00007ffc4d1280a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000082cec0 RCX: 00007fb3490c2370 RDX: 0000000000000006 RSI: 000000000041f4f9 RDI: 000000000000000b RBP: 0000000000872540 R08: 000000000041f4f1 R09: 00007fb3491187d0 R10: 7269762f73656369 R11: 0000000000000246 R12: 000000000000000b R13: 0000000000000030 R14: 000000000082ce90 R15: 0000000000822030 kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000005fd058cb): kobject_uevent_env kobject: 'loop4' (000000005fd058cb): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000826d6b2a): kobject_uevent_env kobject: 'loop3' (00000000826d6b2a): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop0' (00000000a55974d6): kobject_uevent_env kobject: 'loop0' (00000000a55974d6): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000005f2a05f4): kobject_uevent_env kobject: 'loop5' (000000005f2a05f4): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ab23cf7e): kobject_uevent_env kobject: 'loop2' (00000000ab23cf7e): fill_kobj_path: path = '/devices/virtual/block/loop2'