BUG: sleeping function called from invalid context at mm/page_alloc.c:4695 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27606, name: syz-executor.3 3 locks held by syz-executor.3/27606: #0: ffff888217e54b60 (&vcap->lock){+.+.}, at: __video_do_ioctl+0x4d9/0xd40 drivers/media/v4l2-core/v4l2-ioctl.c:2893 #1: ffffffff89a40820 (vmap_purge_lock){+.+.}, at: try_purge_vmap_area_lazy mm/vmalloc.c:1331 [inline] #1: ffffffff89a40820 (vmap_purge_lock){+.+.}, at: free_vmap_area_noflush+0x2a6/0x390 mm/vmalloc.c:1368 #2: ffffffff89a409b8 (free_vmap_area_lock){+.+.}, at: spin_lock include/linux/spinlock.h:338 [inline] #2: ffffffff89a409b8 (free_vmap_area_lock){+.+.}, at: __purge_vmap_area_lazy+0x194/0x1ef0 mm/vmalloc.c:1298 Preemption disabled at: [] spin_lock include/linux/spinlock.h:338 [inline] [] __purge_vmap_area_lazy+0x194/0x1ef0 mm/vmalloc.c:1298 CPU: 1 PID: 27606 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 ___might_sleep.cold+0x1fb/0x23e kernel/sched/core.c:6800 __might_sleep+0x95/0x190 kernel/sched/core.c:6753 prepare_alloc_pages mm/page_alloc.c:4695 [inline] __alloc_pages_nodemask+0x523/0x910 mm/page_alloc.c:4744 alloc_pages_current+0x107/0x210 mm/mempolicy.c:2207 alloc_pages include/linux/gfp.h:532 [inline] __get_free_pages+0xc/0x40 mm/page_alloc.c:4800 __pte_alloc_one_kernel include/asm-generic/pgalloc.h:21 [inline] pte_alloc_one_kernel include/asm-generic/pgalloc.h:33 [inline] __pte_alloc_kernel+0x1d/0x210 mm/memory.c:459 apply_to_pte_range mm/memory.c:2031 [inline] apply_to_pmd_range mm/memory.c:2068 [inline] apply_to_pud_range mm/memory.c:2088 [inline] apply_to_p4d_range mm/memory.c:2108 [inline] apply_to_page_range+0x621/0x700 mm/memory.c:2133 kasan_release_vmalloc+0xa9/0xc0 mm/kasan/common.c:973 __purge_vmap_area_lazy+0xca5/0x1ef0 mm/vmalloc.c:1313 try_purge_vmap_area_lazy mm/vmalloc.c:1332 [inline] free_vmap_area_noflush+0x2c8/0x390 mm/vmalloc.c:1368 free_unmap_vmap_area mm/vmalloc.c:1381 [inline] remove_vm_area+0x1cf/0x230 mm/vmalloc.c:2209 vm_remove_mappings mm/vmalloc.c:2236 [inline] __vunmap+0x217/0x9b0 mm/vmalloc.c:2299 __vfree+0x41/0xd0 mm/vmalloc.c:2356 __vmalloc_area_node mm/vmalloc.c:2507 [inline] __vmalloc_node_range+0x5d8/0x810 mm/vmalloc.c:2547 vmalloc_user+0x6b/0x90 mm/vmalloc.c:2682 vb2_vmalloc_alloc+0xca/0x280 drivers/media/common/videobuf2/videobuf2-vmalloc.c:48 __vb2_buf_mem_alloc drivers/media/common/videobuf2/videobuf2-core.c:215 [inline] __vb2_queue_alloc+0x57d/0xf50 drivers/media/common/videobuf2/videobuf2-core.c:370 vb2_core_create_bufs+0x2b9/0x830 drivers/media/common/videobuf2/videobuf2-core.c:849 vb2_create_bufs+0x389/0x690 drivers/media/common/videobuf2/videobuf2-v4l2.c:750 vb2_ioctl_create_bufs+0x267/0x3e0 drivers/media/common/videobuf2/videobuf2-v4l2.c:955 v4l_create_bufs drivers/media/v4l2-core/v4l2-ioctl.c:2022 [inline] v4l_create_bufs+0xbb/0x170 drivers/media/v4l2-core/v4l2-ioctl.c:2009 __video_do_ioctl+0xb4b/0xd40 drivers/media/v4l2-core/v4l2-ioctl.c:2925 video_usercopy+0x4c2/0x1130 drivers/media/v4l2-core/v4l2-ioctl.c:3107 video_ioctl2+0x2d/0x35 drivers/media/v4l2-core/v4l2-ioctl.c:3151 v4l2_ioctl+0x1ac/0x230 drivers/media/v4l2-core/v4l2-dev.c:360 vfs_ioctl fs/ioctl.c:47 [inline] file_ioctl fs/ioctl.c:545 [inline] do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749 __do_sys_ioctl fs/ioctl.c:756 [inline] __se_sys_ioctl fs/ioctl.c:754 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a909 Code: Bad RIP value. RSP: 002b:00007ff8cb267c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a909 RDX: 0000000020000180 RSI: 00000000c100565c RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff8cb2686d4 R13: 00000000004c6796 R14: 00000000004dcc68 R15: 00000000ffffffff