BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 0, pid: 22328, name: blkid INFO: lockdep is turned off. Preemption disabled at: [] __do_softirq+0x189/0xb03 kernel/softirq.c:269 CPU: 1 PID: 22328 Comm: blkid Not tainted 4.19.0-rc6-next-20181005+ #88 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+0x1d3/0x2c4 lib/dump_stack.c:113 ___might_sleep.cold.89+0x1ba/0x1f3 kernel/sched/core.c:6149 __might_sleep+0x95/0x190 kernel/sched/core.c:6102 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc_trace+0x2cd/0x750 mm/slab.c:3618 kmalloc include/linux/slab.h:546 [inline] kzalloc include/linux/slab.h:741 [inline] kobject_uevent_env+0x2f3/0x101e lib/kobject_uevent.c:514 kobject_uevent+0x1f/0x24 lib/kobject_uevent.c:636 kobject_cleanup lib/kobject.c:649 [inline] kobject_release lib/kobject.c:691 [inline] kref_put include/linux/kref.h:70 [inline] kobject_put.cold.9+0x170/0x2e4 lib/kobject.c:708 put_device+0x20/0x30 drivers/base/core.c:2024 delete_partition_rcu_cb+0x147/0x1b0 block/partition-generic.c:259 __rcu_reclaim kernel/rcu/rcu.h:240 [inline] rcu_do_batch kernel/rcu/tree.c:2437 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2716 [inline] rcu_process_callbacks+0xff9/0x1ad0 kernel/rcu/tree.c:2697 __do_softirq+0x30b/0xb03 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x750 arch/x86/kernel/apic/apic.c:1061 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:804 RIP: 0010:update_stack_state+0x3f0/0x690 arch/x86/kernel/unwind_frame.c:208 Code: 00 49 89 5e 40 b8 01 00 00 00 eb 02 31 c0 4c 8b a5 18 ff ff ff 48 ba 00 00 00 00 00 fc ff df 49 01 d4 49 c7 04 24 00 00 00 00 <49> c7 44 24 08 00 00 00 00 48 8b 5d d0 65 48 33 1c 25 28 00 00 00 RSP: 0018:ffff88018e41ed88 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000001 RBX: ffff88018e41fb20 RCX: 1ffff10031c83d00 RDX: dffffc0000000000 RSI: ffff88018e41fb30 RDI: ffff88018e41f000 RBP: ffff88018e41ee90 R08: ffff88018e41eff0 R09: ffff8801c1d88100 R10: ffffed0031c83e01 R11: ffff88018e41f00f R12: ffffed0031c83db9 R13: ffff88018e41efa8 R14: ffff88018e41efb8 R15: ffff88018e41eff8 unwind_next_frame.part.7+0x1ae/0x9e0 arch/x86/kernel/unwind_frame.c:329 unwind_next_frame+0x3e/0x50 arch/x86/kernel/unwind_frame.c:287 __save_stack_trace+0x7d/0xf0 arch/x86/kernel/stacktrace.c:44 save_stack_trace+0x1a/0x20 arch/x86/kernel/stacktrace.c:60 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:444 [inline] slab_alloc mm/slab.c:3392 [inline] kmem_cache_alloc+0x11b/0x730 mm/slab.c:3552 vm_area_alloc+0x7a/0x1d0 kernel/fork.c:331 mmap_region+0x9d7/0x1cd0 mm/mmap.c:1753 do_mmap+0xa10/0x1220 mm/mmap.c:1556 do_mmap_pgoff include/linux/mm.h:2302 [inline] vm_mmap_pgoff+0x213/0x2c0 mm/util.c:357 vm_mmap+0x90/0xc0 mm/util.c:376 elf_map+0x10b/0x2b0 fs/binfmt_elf.c:378 load_elf_interp fs/binfmt_elf.c:587 [inline] load_elf_binary+0x1ef4/0x5620 fs/binfmt_elf.c:1087 search_binary_handler+0x17d/0x570 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.33+0x1661/0x25d0 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve fs/exec.c:1883 [inline] __do_sys_execve fs/exec.c:1964 [inline] __se_sys_execve fs/exec.c:1959 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1959 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7eff8696c207 Code: Bad RIP value. RSP: 002b:00007ffe6b3f46b8 EFLAGS: 00000206 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007eff8696c207 RDX: 000000000185da30 RSI: 00007ffe6b3f47b0 RDI: 00007ffe6b3f57c0 RBP: 0000000000625500 R08: 0000000000002bdd R09: 0000000000002bdd R10: 0000000000000000 R11: 0000000000000206 R12: 000000000185da30 R13: 0000000000000007 R14: 0000000001859250 R15: 0000000000000005 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 22336 Comm: syz-executor1 Tainted: G W 4.19.0-rc6-next-20181005+ #88 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+0x1d3/0x2c4 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x17 lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:3069 [inline] prepare_alloc_pages mm/page_alloc.c:4332 [inline] __alloc_pages_nodemask+0x34b/0xdd0 mm/page_alloc.c:4370 __alloc_pages include/linux/gfp.h:473 [inline] __alloc_pages_node include/linux/gfp.h:486 [inline] kmem_getpages mm/slab.c:1409 [inline] cache_grow_begin+0x91/0x8c0 mm/slab.c:2677 cache_alloc_refill mm/slab.c:3044 [inline] ____cache_alloc mm/slab.c:3127 [inline] __do_cache_alloc mm/slab.c:3349 [inline] slab_alloc mm/slab.c:3384 [inline] kmem_cache_alloc_trace+0x67e/0x750 mm/slab.c:3618 kmalloc include/linux/slab.h:546 [inline] kzalloc include/linux/slab.h:741 [inline] kobject_uevent_env+0x2f3/0x101e lib/kobject_uevent.c:514 kobject_uevent+0x1f/0x24 lib/kobject_uevent.c:636 device_del+0x6c9/0xb70 drivers/base/core.c:2091 delete_partition+0x233/0x2c0 block/partition-generic.c:288 blkpg_ioctl+0x3c5/0xc10 block/ioctl.c:93 blkdev_ioctl+0x1864/0x2010 block/ioctl.c:573 block_ioctl+0xee/0x130 fs/block_dev.c:1883 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457579 Code: 1d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9054d66c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9054d66c90 RCX: 0000000000457579 RDX: 00000000200006c0 RSI: 0000000000001269 RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9054d676d4 R13: 00000000004be93a R14: 00000000004ce5f0 R15: 0000000000000004