BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 4586, name: syz-executor2 4 locks held by syz-executor2/4586: #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: do_unlinkat+0x3c4/0xa10 fs/namei.c:4019 #2: (ptrval) (&sb->s_type->i_mutex_key#10){+.+.}, at: inode_lock include/linux/fs.h:713 [inline] #2: (ptrval) (&sb->s_type->i_mutex_key#10){+.+.}, at: vfs_unlink+0xd1/0x510 fs/namei.c:3961 #3: (ptrval) (jbd2_handle){++++}, at: start_this_handle+0x581/0x1250 fs/jbd2/transaction.c:385 irq event stamp: 723752 hardirqs last enabled at (723751): [] slab_alloc mm/slab.c:3385 [inline] hardirqs last enabled at (723751): [] kmem_cache_alloc+0x26f/0x760 mm/slab.c:3552 hardirqs last disabled at (723752): [] interrupt_entry+0xb5/0xf0 arch/x86/entry/entry_64.S:625 softirqs last enabled at (723376): [] __do_softirq+0x778/0xaf5 kernel/softirq.c:311 softirqs last disabled at (723343): [] invoke_softirq kernel/softirq.c:365 [inline] softirqs last disabled at (723343): [] irq_exit+0x1d1/0x200 kernel/softirq.c:405 CPU: 1 PID: 4586 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:__ext4_journal_get_write_access+0x0/0xa0 fs/ext4/ext4_jbd2.c:122 RSP: 0018:ffff8801a21ef980 EFLAGS: 00000293 ORIG_RAX: ffffffffffffffd9 RAX: ffff8801a21de040 RBX: ffff88019c1cc270 RCX: ffff8801b2d15a80 RDX: ffff8801c9894840 RSI: 0000000000000934 RDI: ffffffff87d8bd20 RBP: ffff8801a21efa30 R08: ffff8801a21de040 R09: ffffed003b5e46c2 R10: ffffed003b5e46c2 R11: ffff8801daf23613 R12: 1ffff1003443df35 R13: ffff8801b2d15a80 R14: ffff8801cc514540 R15: ffff88019c1cc298 ext4_unlink+0x620/0x11e0 fs/ext4/namei.c:3033 vfs_unlink+0x2db/0x510 fs/namei.c:3970 do_unlinkat+0x6b8/0xa10 fs/namei.c:4033 __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:00007fff1380e488 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004556c7 RDX: 0000000000f899b3 RSI: 00007fff1380e520 RDI: 00007fff1380e520 RBP: 00007fff13810230 R08: 0000000000000000 R09: 000000000000000c R10: 0000000000000006 R11: 0000000000000206 R12: 0000000000f89940 R13: 0000000000000000 R14: 0000000000000194 R15: 000000000001a823 random: crng init done devpts: called with bogus options devpts: called with bogus options FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 1 PID: 10112 Comm: syz-executor5 Tainted: G W 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node+0x272/0x780 mm/slab.c:3642 __alloc_skb+0x111/0x780 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:989 [inline] alloc_skb_with_frags+0x137/0x760 net/core/skbuff.c:5265 sock_alloc_send_pskb+0x87a/0xae0 net/core/sock.c:2095 sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2112 __ip6_append_data.isra.47+0x1fae/0x3860 net/ipv6/ip6_output.c:1440 ip6_make_skb+0x397/0x600 net/ipv6/ip6_output.c:1795 udpv6_sendmsg+0x2a2d/0x32a0 net/ipv6/udp.c:1350 inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 ___sys_sendmsg+0x805/0x940 net/socket.c:2117 __sys_sendmsg+0x115/0x270 net/socket.c:2155 __do_sys_sendmsg net/socket.c:2164 [inline] __se_sys_sendmsg net/socket.c:2162 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2162 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455979 RSP: 002b:00007fc87346ac68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc87346b6d4 RCX: 0000000000455979 RDX: 0000000000000000 RSI: 0000000020000680 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014 R13: 0000000000000537 R14: 00000000006fbdc8 R15: 0000000000000000 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 10166 Comm: syz-executor5 Tainted: G W 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x1a lib/fault-inject.c:149 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1522 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x26f/0x770 mm/slab.c:3661 __do_kmalloc_node mm/slab.c:3681 [inline] __kmalloc_node_track_caller+0x33/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.38+0x3a/0xe0 net/core/skbuff.c:137 __alloc_skb+0x14d/0x780 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:989 [inline] alloc_skb_with_frags+0x137/0x760 net/core/skbuff.c:5265 sock_alloc_send_pskb+0x87a/0xae0 net/core/sock.c:2095 sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2112 __ip6_append_data.isra.47+0x1fae/0x3860 net/ipv6/ip6_output.c:1440 ip6_make_skb+0x397/0x600 net/ipv6/ip6_output.c:1795 udpv6_sendmsg+0x2a2d/0x32a0 net/ipv6/udp.c:1350 inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:639 ___sys_sendmsg+0x805/0x940 net/socket.c:2117 __sys_sendmsg+0x115/0x270 net/socket.c:2155 __do_sys_sendmsg net/socket.c:2164 [inline] __se_sys_sendmsg net/socket.c:2162 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2162 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455979 RSP: 002b:00007fc87346ac68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc87346b6d4 RCX: 0000000000455979 RDX: 0000000000000000 RSI: 0000000020000680 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014 R13: 0000000000000537 R14: 00000000006fbdc8 R15: 0000000000000001 autofs4:pid:10366:autofs4_fill_super: called with bogus options autofs4:pid:10368:autofs4_fill_super: called with bogus options