BUG: sleeping function called from invalid context at mm/slab.h:419 in_atomic(): 1, irqs_disabled(): 1, pid: 14601, name: syz-executor.4 3 locks held by syz-executor.4/14601: #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: 1564 hardirqs last enabled at (1563): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (1563): [] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192 hardirqs last disabled at (1564): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1564): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (240): [] sock_orphan include/net/sock.h:1717 [inline] softirqs last enabled at (240): [] sk_common_release+0x12a/0x2c0 net/core/sock.c:3059 softirqs last disabled at (238): [] sock_orphan include/net/sock.h:1713 [inline] softirqs last disabled at (238): [] sk_common_release+0xc2/0x2c0 net/core/sock.c:3059 Preemption disabled at: [< (null)>] (null) CPU: 0 PID: 14601 Comm: syz-executor.4 Not tainted 4.14.259-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:0x7f2f633fae99 RSP: 002b:00007f2f61d70168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: ffffffffffffffda RBX: 00007f2f6350df60 RCX: 00007f2f633fae99 RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000013 RBP: 00007f2f63454ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdb2c73adf R14: 00007f2f61d70300 R15: 0000000000022000 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. kauditd_printk_skb: 25 callbacks suppressed audit: type=1800 audit(1640302780.835:53): pid=14905 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14480 res=0 audit: type=1804 audit(1640302780.835:54): pid=14905 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir506677556/syzkaller.Sbfjbh/118/file0" dev="sda1" ino=14480 res=1 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. audit: type=1800 audit(1640302781.185:55): pid=14978 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14492 res=0 audit: type=1804 audit(1640302781.205:56): pid=14978 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir506677556/syzkaller.Sbfjbh/119/file0" dev="sda1" ino=14492 res=1 audit: type=1800 audit(1640302782.005:57): pid=15038 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14492 res=0 audit: type=1800 audit(1640302782.125:58): pid=15124 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.4" name="file0" dev="sda1" ino=14481 res=0 audit: type=1804 audit(1640302782.185:59): pid=15124 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir506677556/syzkaller.Sbfjbh/121/file0" dev="sda1" ino=14481 res=1 EXT4-fs (loop4): Unrecognized mount option "" or missing value EXT4-fs (loop4): Unrecognized mount option "" or missing value EXT4-fs (loop4): Unrecognized mount option "" or missing value print_req_error: I/O error, dev loop4, sector 0 Buffer I/O error on dev loop4, logical block 0, async page read print_req_error: I/O error, dev loop4, sector 4 Buffer I/O error on dev loop4, logical block 2, async page read print_req_error: I/O error, dev loop4, sector 6 Buffer I/O error on dev loop4, logical block 3, async page read EXT4-fs (loop4): Unrecognized mount option "" or missing value EXT4-fs (loop4): Unrecognized mount option "" or missing value sctp: [Deprecated]: syz-executor.3 (pid 15621) Use of struct sctp_assoc_value in delayed_ack socket option. Use struct sctp_sack_info instead