BUG: sleeping function called from invalid context at mm/slab.h:419 in_atomic(): 1, irqs_disabled(): 1, pid: 12595, name: syz-executor.0 3 locks held by syz-executor.0/12595: #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: 312 hardirqs last enabled at (311): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (311): [] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192 hardirqs last disabled at (312): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (312): [] _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: 12595 Comm: syz-executor.0 Not tainted 4.14.258-syzkaller #0 ptrace attach of "/root/syz-executor.4 exec"[12603] was attempted by "/root/syz-executor.4 exec"[12604] 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:0x7f87b0b93e99 RSP: 002b:00007f87af509168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: ffffffffffffffda RBX: 00007f87b0ca6f60 RCX: 00007f87b0b93e99 RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007f87b0bedff1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe4fec9b5f R14: 00007f87af509300 R15: 0000000000022000 BUG: sleeping function called from invalid context at mm/slab.h:419 in_atomic(): 1, irqs_disabled(): 1, pid: 12696, name: syz-executor.4 3 locks held by syz-executor.4/12696: #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: 232 hardirqs last enabled at (231): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (231): [] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192 hardirqs last disabled at (232): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (232): [] _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: 12696 Comm: syz-executor.4 Tainted: G W 4.14.258-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:0x7f3cc71d7e99 RSP: 002b:00007f3cc5b4d168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: ffffffffffffffda RBX: 00007f3cc72eaf60 RCX: 00007f3cc71d7e99 RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007f3cc7231ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9dd487bf R14: 00007f3cc5b4d300 R15: 0000000000022000 audit: type=1804 audit(1640116460.494:86): pid=12725 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir856528350/syzkaller.mIAkR4/107/bus" dev="sda1" ino=14381 res=1 BUG: sleeping function called from invalid context at mm/slab.h:419 in_atomic(): 1, irqs_disabled(): 1, pid: 12696, name: syz-executor.4 3 locks held by syz-executor.4/12696: #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+0x16f/0x670 drivers/media/v4l2-core/v4l2-mem2mem.c:541 irq event stamp: 556 hardirqs last enabled at (555): [] __free_pages_ok+0x539/0xeb0 mm/page_alloc.c:1269 hardirqs last disabled at (556): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (556): [] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:160 softirqs last enabled at (534): [] __do_softirq+0x68b/0x9ff kernel/softirq.c:314 softirqs last disabled at (237): [] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (237): [] irq_exit+0x193/0x240 kernel/softirq.c:409 Preemption disabled at: [< (null)>] (null) CPU: 1 PID: 12696 Comm: syz-executor.4 Tainted: G W 4.14.258-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+0x4d2/0x670 drivers/media/v4l2-core/v4l2-mem2mem.c:552 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:0x7f3cc71d7e99 RSP: 002b:00007f3cc5b4d168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: ffffffffffffffda RBX: 00007f3cc72eaf60 RCX: 00007f3cc71d7e99 RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007f3cc7231ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9dd487bf R14: 00007f3cc5b4d300 R15: 0000000000022000 audit: type=1804 audit(1640116461.325:87): pid=12730 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir856528350/syzkaller.mIAkR4/108/bus" dev="sda1" ino=14384 res=1 audit: type=1804 audit(1640116461.615:88): pid=12744 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir246078656/syzkaller.W3uZpf/126/bus" dev="sda1" ino=14380 res=1 audit: type=1804 audit(1640116461.745:89): pid=12748 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir856232223/syzkaller.Idnf1m/117/bus" dev="sda1" ino=14385 res=1 audit: type=1804 audit(1640116462.175:90): pid=12754 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir856528350/syzkaller.mIAkR4/109/bus" dev="sda1" ino=14383 res=1 audit: type=1804 audit(1640116462.535:91): pid=12759 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir246078656/syzkaller.W3uZpf/127/bus" dev="sda1" ino=13953 res=1 audit: type=1804 audit(1640116462.595:92): pid=12764 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir090295500/syzkaller.mbg6oW/107/bus" dev="sda1" ino=14360 res=1 audit: type=1804 audit(1640116462.635:93): pid=12765 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir306281381/syzkaller.u1E3Y7/103/bus" dev="sda1" ino=14377 res=1 audit: type=1804 audit(1640116462.815:94): pid=12770 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir856232223/syzkaller.Idnf1m/118/bus" dev="sda1" ino=14384 res=1 audit: type=1804 audit(1640116463.155:95): pid=12777 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir856528350/syzkaller.mIAkR4/110/bus" dev="sda1" ino=14390 res=1 unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop5): invalid crc value EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue F2FS-fs (loop5): SIT is corrupted node# 0 vs 7 F2FS-fs (loop5): Failed to initialize F2FS segment manager F2FS-fs (loop5): Magic Mismatch, valid(0xf2f52010) - read(0x0) F2FS-fs (loop5): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop5): invalid crc value F2FS-fs (loop5): SIT is corrupted node# 0 vs 7 F2FS-fs (loop5): Failed to initialize F2FS segment manager EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue block nbd1: Attempted send on invalid socket print_req_error: I/O error, dev nbd1, sector 0 XFS (nbd1): SB validate failed with error -5. device tunl0 entered promiscuous mode device vlan2 entered promiscuous mode block nbd1: Attempted send on invalid socket print_req_error: I/O error, dev nbd1, sector 0 XFS (nbd1): SB validate failed with error -5.