BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 4599, name: syz-executor2 3 locks held by syz-executor2/4599: #0: (ptrval) (sb_writers#4){.+.+}, at: sb_start_write include/linux/fs.h:1550 [inline] #0: (ptrval) (sb_writers#4){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:386 #1: (ptrval) (sb_internal){.+.+}, at: sb_start_intwrite include/linux/fs.h:1597 [inline] #1: (ptrval) (sb_internal){.+.+}, at: ext4_evict_inode+0x720/0x1aa0 fs/ext4/inode.c:250 #2: (ptrval) (jbd2_handle){.+.+}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385 irq event stamp: 832410 hardirqs last enabled at (832409): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (832409): [] _raw_spin_unlock_irqrestore+0x74/0xc0 kernel/locking/spinlock.c:184 hardirqs last disabled at (832410): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (831548): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (831533): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (831533): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 0 PID: 4599 Comm: syz-executor2 Not tainted 4.17.0-rc2+ #24 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:783 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xa1/0xc0 kernel/locking/spinlock.c:184 RSP: 0018:ffff8801a0c3f370 EFLAGS: 00000286 ORIG_RAX: ffffffffffffffd9 RAX: dffffc0000000000 RBX: 0000000000000286 RCX: 1ffff10034186565 RDX: 1ffffffff11a315d RSI: ffff8801a0c32b08 RDI: 0000000000000286 RBP: ffff8801a0c3f380 R08: ffff8801a0c32ab8 R09: 0000000000000006 R10: ffff8801a0c32280 R11: 0000000000000000 R12: ffff8801cc4aa458 R13: 0000000000000001 R14: ffff8801a0c3f470 R15: 0000000000000286 spin_unlock_irqrestore include/linux/spinlock.h:365 [inline] __wake_up_common_lock+0x1c2/0x300 kernel/sched/wait.c:120 __wake_up+0xe/0x10 kernel/sched/wait.c:143 jbd2_journal_stop+0xb61/0x15a0 fs/jbd2/transaction.c:1763 __ext4_journal_stop+0xde/0x1f0 fs/ext4/ext4_jbd2.c:103 ext4_evict_inode+0xc3a/0x1aa0 fs/ext4/inode.c:334 evict+0x4a6/0x960 fs/inode.c:557 iput_final fs/inode.c:1519 [inline] iput+0x62d/0xa80 fs/inode.c:1545 do_unlinkat+0x71f/0xa10 fs/namei.c:4039 __do_sys_unlink fs/namei.c:4080 [inline] __se_sys_unlink fs/namei.c:4078 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4078 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4556c7 RSP: 002b:00007ffd3ebaad48 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004556c7 RDX: 0000000000e979b3 RSI: 00007ffd3ebaade0 RDI: 00007ffd3ebaade0 RBP: 00007ffd3ebacaf0 R08: 0000000000000000 R09: 000000000000000c R10: 0000000000000006 R11: 0000000000000206 R12: 0000000000e97940 R13: 0000000000000000 R14: 000000000000018c R15: 000000000001ee79 random: crng init done can: request_module (can-proto-0) failed. can: request_module (can-proto-0) failed. IPVS: ftp: loaded support on port[0] = 21 tmpfs: No value for mount option './file0' tmpfs: No value for mount option './file0' xprt_adjust_timeout: rq_timeout = 0! xprt_adjust_timeout: rq_timeout = 0! gfs2: gfs2 mount does not exist gfs2: gfs2 mount does not exist