BUG: sleeping function called from invalid context at mm/slab.h:419 in_atomic(): 1, irqs_disabled(): 1, pid: 12357, name: syz-executor.3 audit: type=1804 audit(1639989516.135:173): pid=12284 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir807199318/syzkaller.TJRmBI/119/bus" dev="sda1" ino=14294 res=1 3 locks held by syz-executor.3/12357: #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: 262 hardirqs last enabled at (261): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (261): [] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:192 audit: type=1800 audit(1639989516.135:174): pid=12284 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.2" name="bus" dev="sda1" ino=14294 res=0 hardirqs last disabled at (262): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (262): [] _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: 12357 Comm: syz-executor.3 Not tainted 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:0x7ffbd8fc0e99 RSP: 002b:00007ffbd7936168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9 RAX: ffffffffffffffda RBX: 00007ffbd90d3f60 RCX: 00007ffbd8fc0e99 RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007ffbd901aff1 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff09860abf R14: 00007ffbd7936300 R15: 0000000000022000 audit: type=1800 audit(1639989518.105:175): pid=12305 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.1" name="bus" dev="sda1" ino=13921 res=0 audit: type=1800 audit(1639989518.115:176): pid=12304 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13905 res=0 audit: type=1804 audit(1639989518.115:177): pid=12297 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir249555901/syzkaller.VP9sRD/113/bus" dev="sda1" ino=13921 res=1 audit: type=1800 audit(1639989518.115:178): pid=12297 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.1" name="bus" dev="sda1" ino=13921 res=0 audit: type=1804 audit(1639989518.125:179): pid=12295 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir827516920/syzkaller.VRlFAr/97/bus" dev="sda1" ino=13905 res=1 batman_adv: batadv0: Interface deactivated: batadv_slave_0 audit: type=1800 audit(1639989518.125:180): pid=12295 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=13905 res=0 audit: type=1800 audit(1639989518.335:181): pid=12306 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="bus" dev="sda1" ino=13937 res=0 batman_adv: batadv0: Removing interface: batadv_slave_0 batman_adv: batadv0: Interface deactivated: batadv_slave_0 batman_adv: batadv0: Removing interface: batadv_slave_0 syz-executor.0 uses obsolete (PF_INET,SOCK_PACKET) syz-executor.2 uses old SIOCAX25GETINFO syz-executor.1 (12653) used greatest stack depth: 24544 bytes left EXT4-fs (loop2): Test dummy encryption mount option ignored kauditd_printk_skb: 22 callbacks suppressed audit: type=1800 audit(1639989525.805:204): pid=12721 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.1" name="SYSV00000000" dev="hugetlbfs" ino=0 res=0 audit: type=1800 audit(1639989525.865:205): pid=12734 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=65538 res=0 EXT4-fs (loop2): mounted filesystem without journal. Opts: test_dummy_encryption,,errors=continue audit: type=1800 audit(1639989526.266:206): pid=12752 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=98307 res=0 print_req_error: I/O error, dev loop2, sector 0 audit: type=1800 audit(1639989526.276:207): pid=12750 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.1" name="SYSV00000000" dev="hugetlbfs" ino=32769 res=0 audit: type=1800 audit(1639989526.346:208): pid=12756 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.4" name="SYSV00000000" dev="hugetlbfs" ino=0 res=0 audit: type=1800 audit(1639989526.396:209): pid=12762 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=131076 res=0 audit: type=1800 audit(1639989526.496:210): pid=12761 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.1" name="SYSV00000000" dev="hugetlbfs" ino=65538 res=0 EXT4-fs (loop2): Test dummy encryption mount option ignored audit: type=1800 audit(1639989526.716:211): pid=12771 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.4" name="SYSV00000000" dev="hugetlbfs" ino=32769 res=0 EXT4-fs (loop2): mounted filesystem without journal. Opts: test_dummy_encryption,,errors=continue audit: type=1800 audit(1639989526.806:212): pid=12783 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.1" name="SYSV00000000" dev="hugetlbfs" ino=98307 res=0 audit: type=1800 audit(1639989526.826:213): pid=12784 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=163845 res=0 EXT4-fs (loop2): Test dummy encryption mount option ignored EXT4-fs (loop2): mounted filesystem without journal. Opts: test_dummy_encryption,,errors=continue EXT4-fs (loop2): Test dummy encryption mount option ignored EXT4-fs: failed to create workqueue EXT4-fs (loop2): mount failed print_req_error: I/O error, dev loop2, sector 0