IPVS: stopping master sync thread 9545 ... IPVS: stopping master sync thread 9543 ... IPVS: stopping master sync thread 9504 ... ================================ WARNING: inconsistent lock state IPVS: stopping master sync thread 9503 ... 4.17.0-rc2+ #22 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. udevd/2387 [HC1[1]:SC0[0]:HE0:SE1] takes: (ptrval) (fs_reclaim){?.+.}, at: fs_reclaim_acquire.part.82+0x0/0x30 mm/page_alloc.c:463 {HARDIRQ-ON-W} state was registered at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x39/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:550 [inline] kzalloc_node include/linux/slab.h:712 [inline] alloc_worker+0xbd/0x2e0 kernel/workqueue.c:1704 init_rescuer.part.25+0x1f/0x190 kernel/workqueue.c:4000 init_rescuer kernel/workqueue.c:3997 [inline] workqueue_init+0x51f/0x7d0 kernel/workqueue.c:5732 kernel_init_freeable+0x2ad/0x58e init/main.c:1115 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 irq event stamp: 929132 hardirqs last enabled at (929131): [] slab_alloc mm/slab.c:3385 [inline] hardirqs last enabled at (929131): [] __do_kmalloc mm/slab.c:3716 [inline] hardirqs last enabled at (929131): [] __kmalloc+0x288/0x760 mm/slab.c:3727 hardirqs last disabled at (929132): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (928942): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (928885): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (928885): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(fs_reclaim); lock(fs_reclaim); *** DEADLOCK *** 3 locks held by udevd/2387: #0: (ptrval) (sb_writers#8){.+.+}, at: file_start_write include/linux/fs.h:2718 [inline] #0: (ptrval) (sb_writers#8){.+.+}, at: vfs_write+0x452/0x560 fs/read_write.c:548 #1: (ptrval) (&of->mutex){+.+.}, at: kernfs_fop_write+0x204/0x480 fs/kernfs/file.c:307 #2: (ptrval) (kn->count#7){++++}, at: kernfs_fop_write+0x227/0x480 fs/kernfs/file.c:308 stack backtrace: CPU: 0 PID: 2387 Comm: udevd Not tainted 4.17.0-rc2+ #22 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+0x1b9/0x294 lib/dump_stack.c:113 print_usage_bug.cold.59+0x320/0x41a kernel/locking/lockdep.c:2542 valid_state kernel/locking/lockdep.c:2555 [inline] mark_lock_irq kernel/locking/lockdep.c:2749 [inline] mark_lock+0x1034/0x19e0 kernel/locking/lockdep.c:3147 mark_irqflags kernel/locking/lockdep.c:3022 [inline] __lock_acquire+0x1595/0x5140 kernel/locking/lockdep.c:3388 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x45/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_interrupt_randomness+0x494/0x860 drivers/char/random.c:1254 handle_irq_event_percpu+0xf9/0x1c0 kernel/irq/handle.c:191 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:__sanitizer_cov_trace_switch+0x0/0x90 kernel/kcov.c:197 RSP: 0018:ffff8801caf375e0 EFLAGS: 00000202 ORIG_RAX: ffffffffffffffd9 RAX: 0000000000000003 RBX: ffffffff886444e9 RCX: ffffffff876c0962 RDX: 0000000000000001 RSI: ffffffff88646e60 RDI: 0000000000000073 RBP: ffff8801caf37690 R08: ffff8801caf2c040 R09: ffffed00374a3885 R10: ffffed00374a3886 R11: ffff8801ba51c431 R12: ffff8801caf37708 R13: ffff8801caf37668 R14: 0000000000000073 R15: ffffffff886444e8 vsnprintf+0x17d/0x1b40 lib/vsprintf.c:2244 add_uevent_var+0x137/0x2e0 lib/kobject_uevent.c:591 kobject_uevent_env+0x2ec/0xea0 lib/kobject_uevent.c:461 kobject_synth_uevent+0xa4f/0xc0b lib/kobject_uevent.c:207 uevent_store+0x26/0x70 drivers/base/core.c:993 dev_attr_store+0x5e/0x90 drivers/base/core.c:713 sysfs_kf_write+0x118/0x170 fs/sysfs/file.c:139 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x10b/0x960 fs/read_write.c:485 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5b48838370 RSP: 002b:00007fff352e5c08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001bedde0 RCX: 00007f5b48838370 RDX: 0000000000000006 RSI: 000000000041f4f9 RDI: 000000000000000b RBP: 0000000001bed770 R08: 000000000041f4f1 R09: 00007f5b4888e7d0 R10: 7269762f73656369 R11: 0000000000000246 R12: 000000000000000b R13: 0000000000000000 R14: 0000000001bedde0 R15: 0000000001be3250 BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 2387, name: udevd INFO: lockdep is turned off. irq event stamp: 929132 hardirqs last enabled at (929131): [] slab_alloc mm/slab.c:3385 [inline] hardirqs last enabled at (929131): [] __do_kmalloc mm/slab.c:3716 [inline] hardirqs last enabled at (929131): [] __kmalloc+0x288/0x760 mm/slab.c:3727 hardirqs last disabled at (929132): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (928942): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (928885): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (928885): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 0 PID: 2387 Comm: udevd Not tainted 4.17.0-rc2+ #22 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+0x1b9/0x294 lib/dump_stack.c:113 ___might_sleep.cold.87+0x11f/0x13a kernel/sched/core.c:6188 __might_sleep+0x95/0x190 kernel/sched/core.c:6141 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2b9/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_interrupt_randomness+0x494/0x860 drivers/char/random.c:1254 handle_irq_event_percpu+0xf9/0x1c0 kernel/irq/handle.c:191 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:__sanitizer_cov_trace_switch+0x0/0x90 kernel/kcov.c:197 RSP: 0018:ffff8801caf375e0 EFLAGS: 00000202 ORIG_RAX: ffffffffffffffd9 RAX: 0000000000000003 RBX: ffffffff886444e9 RCX: ffffffff876c0962 RDX: 0000000000000001 RSI: ffffffff88646e60 RDI: 0000000000000073 RBP: ffff8801caf37690 R08: ffff8801caf2c040 R09: ffffed00374a3885 R10: ffffed00374a3886 R11: ffff8801ba51c431 R12: ffff8801caf37708 R13: ffff8801caf37668 R14: 0000000000000073 R15: ffffffff886444e8 vsnprintf+0x17d/0x1b40 lib/vsprintf.c:2244 add_uevent_var+0x137/0x2e0 lib/kobject_uevent.c:591 kobject_uevent_env+0x2ec/0xea0 lib/kobject_uevent.c:461 kobject_synth_uevent+0xa4f/0xc0b lib/kobject_uevent.c:207 uevent_store+0x26/0x70 drivers/base/core.c:993 dev_attr_store+0x5e/0x90 drivers/base/core.c:713 sysfs_kf_write+0x118/0x170 fs/sysfs/file.c:139 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x10b/0x960 fs/read_write.c:485 vfs_write+0x1f8/0x560 fs/read_write.c:549 ksys_write+0xf9/0x250 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5b48838370 RSP: 002b:00007fff352e5c08 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001bedde0 RCX: 00007f5b48838370 RDX: 0000000000000006 RSI: 000000000041f4f9 RDI: 000000000000000b RBP: 0000000001bed770 R08: 000000000041f4f1 R09: 00007f5b4888e7d0 R10: 7269762f73656369 R11: 0000000000000246 R12: 000000000000000b R13: 0000000000000000 R14: 0000000001bedde0 R15: 0000000001be3250 random: crng init done ieee80211 phy3: Selected rate control algorithm 'minstrel_ht' ieee80211 phy4: Selected rate control algorithm 'minstrel_ht' IPVS: stopping master sync thread 9615 ... ieee80211 phy5: Selected rate control algorithm 'minstrel_ht' netlink: 132 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 132 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 132 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 132 bytes leftover after parsing attributes in process `syz-executor2'. netlink: 220 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 220 bytes leftover after parsing attributes in process `syz-executor4'. netlink: 'syz-executor2': attribute type 1 has an invalid length. netlink: 220 bytes leftover after parsing attributes in process `syz-executor4'.