BUG: sleeping function called from invalid context at mm/slab.h:419 in_atomic(): 1, irqs_disabled(): 1, pid: 10320, name: syz-executor.0 3 locks held by syz-executor.0/10320: #0: (&ep->mtx){+.+.}, at: [] SYSC_epoll_ctl fs/eventpoll.c:2080 [inline] #0: (&ep->mtx){+.+.}, at: [] SyS_epoll_ctl+0x516/0x2780 fs/eventpoll.c:2002 #1: (&dev->dev_mutex){+.+.}, at: [] v4l2_m2m_fop_poll+0x91/0x110 drivers/media/v4l2-core/v4l2-mem2mem.c:802 #2: (&(&q->done_lock)->rlock){....}, at: [] v4l2_m2m_poll+0x116/0x670 drivers/media/v4l2-core/v4l2-mem2mem.c:536 irq event stamp: 270 hardirqs last enabled at (269): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (269): [] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192 hardirqs last disabled at (270): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (270): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (0): [] copy_process.part.0+0x12d0/0x71c0 kernel/fork.c:1734 softirqs last disabled at (0): [< (null)>] (null) Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 10320 Comm: syz-executor.0 Not tainted 4.14.262-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6041 slab_pre_alloc_hook mm/slab.h:419 [inline] slab_alloc mm/slab.c:3376 [inline] kmem_cache_alloc+0x284/0x3c0 mm/slab.c:3550 ep_ptable_queue_proc+0x9e/0x370 fs/eventpoll.c:1255 poll_wait include/linux/poll.h:50 [inline] v4l2_m2m_poll+0x583/0x670 drivers/media/v4l2-core/v4l2-mem2mem.c:538 v4l2_m2m_fop_poll+0xa4/0x110 drivers/media/v4l2-core/v4l2-mem2mem.c:804 v4l2_poll+0x133/0x1d0 drivers/media/v4l2-core/v4l2-dev.c:342 ep_item_poll fs/eventpoll.c:885 [inline] ep_insert fs/eventpoll.c:1490 [inline] SYSC_epoll_ctl fs/eventpoll.c:2117 [inline] SyS_epoll_ctl+0x14af/0x2780 fs/eventpoll.c:2002 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7efee20b1e99 RSP: 002b:00007efee0a27168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: ffffffffffffffda RBX: 00007efee21c4f60 RCX: 00007efee20b1e99 RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007efee210bff1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffed431c2df R14: 00007efee0a27300 R15: 0000000000022000 loop0: [POWERTEC] p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 loop0: p1 start 2153331620 is beyond EOD, truncated overlayfs: missing 'lowerdir' loop0: p2 start 3890316301 is beyond EOD, truncated loop0: p3 start 1453753329 is beyond EOD, truncated loop0: p4 start 1902801014 is beyond EOD, truncated loop0: p5 start 635307234 is beyond EOD, truncated loop0: p6 start 375739068 is beyond EOD, truncated loop0: p7 start 1917782046 is beyond EOD, truncated loop0: p8 start 377421461 is beyond EOD, truncated loop0: p9 start 2242641355 is beyond EOD, truncated loop0: p10 start 2870383788 is beyond EOD, truncated loop0: p11 start 4023822388 is beyond EOD, truncated loop0: p12 start 3238613213 is beyond EOD, truncated loop0: [POWERTEC] p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 loop0: p1 start 2153331620 is beyond EOD, truncated loop0: p2 start 3890316301 is beyond EOD, truncated loop0: p3 start 1453753329 is beyond EOD, truncated audit: type=1800 audit(1641924733.869:33): pid=10346 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14085 res=0 loop0: p4 start 1902801014 is beyond EOD, truncated loop0: p5 start 635307234 is beyond EOD, truncated loop0: p6 start 375739068 is beyond EOD, truncated loop0: p7 start 1917782046 is beyond EOD, truncated loop0: p8 start 377421461 is beyond EOD, truncated loop0: p9 start 2242641355 is beyond EOD, truncated overlayfs: missing 'lowerdir' loop0: p10 start 2870383788 is beyond EOD, truncated loop0: p11 start 4023822388 is beyond EOD, truncated loop0: p12 start 3238613213 is beyond EOD, truncated overlayfs: missing 'lowerdir' netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'. overlay: failed to look up (file0) for ino (-116) overlay: failed to look up (file0) for ino (-116) overlay: failed to look up (file0) for ino (-116) overlay: failed to look up (file0) for ino (-116) hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected x_tables: ip6_tables: SYNPROXY target: used from hooks PREROUTING, but only usable from INPUT/FORWARD x_tables: ip6_tables: SYNPROXY target: used from hooks PREROUTING, but only usable from INPUT/FORWARD x_tables: ip6_tables: SYNPROXY target: used from hooks PREROUTING, but only usable from INPUT/FORWARD syz-executor.4 (10703): drop_caches: 1 syz-executor.4 (10703): drop_caches: 1 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue x_tables: ip6_tables: SYNPROXY target: used from hooks PREROUTING, but only usable from INPUT/FORWARD overlayfs: fs on '.' does not support file handles, falling back to index=off. IPVS: ftp: loaded support on port[0] = 21