BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 4601, name: syz-executor6 4 locks held by syz-executor6/4601: #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) (&type->i_mutex_dir_key/1){+.+.}, at: inode_lock_nested include/linux/fs.h:748 [inline] #1: (ptrval) (&type->i_mutex_dir_key/1){+.+.}, at: filename_create+0x1aa/0x5a0 fs/namei.c:3606 #2: (ptrval) (jbd2_handle){++++}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385 #3: (ptrval) (&(&ei->i_raw_lock)->rlock){+.+.}, at: spin_lock include/linux/spinlock.h:310 [inline] #3: (ptrval) (&(&ei->i_raw_lock)->rlock){+.+.}, at: ext4_do_update_inode fs/ext4/inode.c:5120 [inline] #3: (ptrval) (&(&ei->i_raw_lock)->rlock){+.+.}, at: ext4_mark_iloc_dirty+0x295/0x2e90 fs/ext4/inode.c:5741 irq event stamp: 1254336 hardirqs last enabled at (1254335): [] lookup_bh_lru fs/buffer.c:1271 [inline] hardirqs last enabled at (1254335): [] __find_get_block+0x2b8/0xe50 fs/buffer.c:1283 hardirqs last disabled at (1254336): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (1254256): [] tcp_close+0xaa4/0x12b0 net/ipv4/tcp.c:2452 softirqs last disabled at (1254248): [] sock_orphan include/net/sock.h:1717 [inline] softirqs last disabled at (1254248): [] tcp_close+0x6ed/0x12b0 net/ipv4/tcp.c:2387 CPU: 1 PID: 4601 Comm: syz-executor6 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:ext4_do_update_inode fs/ext4/inode.c:5166 [inline] RIP: 0010:ext4_mark_iloc_dirty+0xebb/0x2e90 fs/ext4/inode.c:5741 RSP: 0018:ffff88019d107300 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd5 RAX: ffff8801a8e4b140 RBX: ffff8801a8e4b330 RCX: ffffffff8206e30c RDX: 0000000000000000 RSI: ffffffff8206e480 RDI: ffff8801a8e4b190 RBP: ffff88019d1074c8 R08: ffff88019d0fe440 R09: ffff8801b8e99800 R10: ffffed00371d331f R11: ffff8801b8e998ff R12: ffff8801b8e99800 R13: 0000000000000000 R14: ffff8801a8e4b720 R15: 0000000000000000 ext4_mark_inode_dirty+0x23b/0xb20 fs/ext4/inode.c:5920 ext4_ext_tree_init+0x105/0x140 fs/ext4/extents.c:856 __ext4_new_inode+0x4e80/0x6030 fs/ext4/ialloc.c:1160 ext4_mkdir+0x2d9/0xe50 fs/ext4/namei.c:2625 vfs_mkdir+0x42e/0x6b0 fs/namei.c:3787 do_mkdirat+0x266/0x2f0 fs/namei.c:3810 __do_sys_mkdir fs/namei.c:3826 [inline] __se_sys_mkdir fs/namei.c:3824 [inline] __x64_sys_mkdir+0x5c/0x80 fs/namei.c:3824 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x454db7 RSP: 002b:00007ffd40a1bc48 EFLAGS: 00000206 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 000000000000008b RCX: 0000000000454db7 RDX: 00007ffd40a1c925 RSI: 00000000000001ff RDI: 00007ffd40a1c920 RBP: 00007ffd40a1bc70 R08: 0000000000000000 R09: 0000000000000005 R10: 0000000000000064 R11: 0000000000000206 R12: 0000000000000013 R13: 0000000000000000 R14: 00000000007000c0 R15: 0000000000001380 random: crng init done overlayfs: missing 'lowerdir' overlayfs: missing 'lowerdir' gfs2: gfs2 mount does not exist “‘hMþ=ôå=²¨: renamed from lo gfs2: gfs2 mount does not exist IPVS: ftp: loaded support on port[0] = 21 ********************************************************** ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** ** ** ** trace_printk() being used. Allocating extra memory. ** ** ** ** This means that this is a DEBUG kernel and it is ** ** unsafe for production use. ** ** ** ** If you see this message and you are not debugging ** ** the kernel, report this immediately to your vendor! ** ** ** ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** **********************************************************