syzbot


BUG: sleeping function called from invalid context in ep_ptable_queue_proc

Status: upstream: reported C repro on 2021/12/14 15:59
Reported-by: syzbot+bef6240acec16c72790c@syzkaller.appspotmail.com
First crash: 856d, last: 828d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: sleeping function called from invalid context in ep_ptable_queue_proc C error 49 586d 856d 0/1 upstream: reported C repro on 2021/12/14 16:48

Sample crash report:
BUG: sleeping function called from invalid context at mm/slab.h:422
in_atomic(): 1, irqs_disabled(): 1, pid: 8094, name: syz-executor545
3 locks held by syz-executor545/8094:
 #0: 00000000737f5a1a (&ep->mtx){+.+.}, at: __do_sys_epoll_ctl fs/eventpoll.c:2075 [inline]
 #0: 00000000737f5a1a (&ep->mtx){+.+.}, at: __se_sys_epoll_ctl+0x5d2/0x2b90 fs/eventpoll.c:1997
 #1: 0000000094a9d112 (&dev->dev_mutex){+.+.}, at: v4l2_m2m_fop_poll+0x91/0x110 drivers/media/v4l2-core/v4l2-mem2mem.c:1056
 #2: 0000000021926e83 (&(&q->done_lock)->rlock){....}, at: v4l2_m2m_poll+0x140/0x720 drivers/media/v4l2-core/v4l2-mem2mem.c:623
irq event stamp: 6628
hardirqs last  enabled at (6627): [<ffffffff881950e9>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last  enabled at (6627): [<ffffffff881950e9>] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:184
hardirqs last disabled at (6628): [<ffffffff88194d76>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (6628): [<ffffffff88194d76>] _raw_spin_lock_irqsave+0x66/0xc0 kernel/locking/spinlock.c:152
softirqs last  enabled at (5520): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (5503): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (5503): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
Preemption disabled at:
[<0000000000000000>]           (null)
CPU: 0 PID: 8094 Comm: syz-executor545 Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118
 ___might_sleep.cold+0x235/0x250 kernel/sched/core.c:6192
 slab_pre_alloc_hook mm/slab.h:422 [inline]
 slab_alloc mm/slab.c:3383 [inline]
 kmem_cache_alloc+0x26d/0x370 mm/slab.c:3557
 ep_ptable_queue_proc+0xaf/0x390 fs/eventpoll.c:1242
 poll_wait include/linux/poll.h:51 [inline]
 v4l2_m2m_poll+0x633/0x720 drivers/media/v4l2-core/v4l2-mem2mem.c:625
 v4l2_m2m_fop_poll+0xa4/0x110 drivers/media/v4l2-core/v4l2-mem2mem.c:1058
 v4l2_poll+0x146/0x1f0 drivers/media/v4l2-core/v4l2-dev.c:350
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll+0x14a/0x3e0 fs/eventpoll.c:890
 ep_insert fs/eventpoll.c:1479 [inline]
 __do_sys_epoll_ctl fs/eventpoll.c:2112 [inline]
 __se_sys_epoll_ctl+0x1b04/0x2b90 fs/eventpoll.c:1997
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f9e48cdc1e9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd92e964a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9

Crashes (68):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/15 07:56 linux-4.19.y 3f8a27f9e27b f752fb53 .config console log report syz C ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/14 16:15 linux-4.19.y 3f8a27f9e27b d018dd31 .config console log report syz C ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/11 10:55 linux-4.19.y 3f8a27f9e27b 1884f55a .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/11 05:19 linux-4.19.y 3f8a27f9e27b ddb0ab8c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/11 00:33 linux-4.19.y 3f8a27f9e27b ddb0ab8c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/10 18:54 linux-4.19.y 3f8a27f9e27b ddb0ab8c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/10 10:18 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/07 15:20 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/07 03:48 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/07 01:42 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/06 16:10 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/05 17:05 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/04 22:53 linux-4.19.y 3f8a27f9e27b 0a2584dd .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/04 20:36 linux-4.19.y 3f8a27f9e27b 0a2584dd .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/04 10:59 linux-4.19.y 3f8a27f9e27b 7f723fbe .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/04 04:43 linux-4.19.y 3f8a27f9e27b 7f723fbe .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/03 15:27 linux-4.19.y 3f8a27f9e27b 4a3f34f2 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/03 12:30 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/03 06:42 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/01 05:01 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2022/01/01 03:56 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/30 22:42 linux-4.19.y 3f8a27f9e27b 36bd2e48 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/30 16:52 linux-4.19.y 3f8a27f9e27b 2e49f10d .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/30 11:53 linux-4.19.y 3f8a27f9e27b 2e49f10d .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/30 10:07 linux-4.19.y 3f8a27f9e27b 2e49f10d .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/29 14:30 linux-4.19.y 3f8a27f9e27b 6cc879d4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/29 13:20 linux-4.19.y 3f8a27f9e27b 6cc879d4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/29 05:01 linux-4.19.y 3f8a27f9e27b 76c8cf06 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/28 19:07 linux-4.19.y 3f8a27f9e27b 76c8cf06 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/28 18:01 linux-4.19.y 3f8a27f9e27b 76c8cf06 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/28 04:42 linux-4.19.y 3f8a27f9e27b 6b3c5e64 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/28 03:10 linux-4.19.y 3f8a27f9e27b 6b3c5e64 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/28 01:33 linux-4.19.y 3f8a27f9e27b 6b3c5e64 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/27 15:26 linux-4.19.y 3f8a27f9e27b 5140bd58 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/27 14:04 linux-4.19.y 3f8a27f9e27b 5140bd58 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/26 22:25 linux-4.19.y 3f8a27f9e27b e4f103c4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/26 11:55 linux-4.19.y 3f8a27f9e27b e4f103c4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/25 23:13 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/25 07:25 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/24 18:54 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/24 16:36 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/24 06:53 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/24 00:24 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/23 19:38 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/23 12:22 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/23 11:06 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/22 04:19 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/21 21:40 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/21 09:41 linux-4.19.y 3f8a27f9e27b a938f0b8 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/21 08:49 linux-4.19.y 3f8a27f9e27b a938f0b8 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/20 22:10 linux-4.19.y 3f8a27f9e27b 62bd192b .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/20 20:45 linux-4.19.y 3f8a27f9e27b 62bd192b .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/20 08:32 linux-4.19.y 3f8a27f9e27b 021b36cb .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/20 01:53 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/19 08:23 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/17 03:22 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/16 15:20 linux-4.19.y 3f8a27f9e27b 8dd6a5e3 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/16 12:00 linux-4.19.y 3f8a27f9e27b 572bcb40 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/15 18:42 linux-4.19.y 3f8a27f9e27b 572bcb40 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/15 02:08 linux-4.19.y 3f8a27f9e27b f752fb53 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/15 00:32 linux-4.19.y 3f8a27f9e27b f752fb53 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
2021/12/14 15:59 linux-4.19.y 3f8a27f9e27b d018dd31 .config console log report info ci2-linux-4-19 BUG: sleeping function called from invalid context in ep_ptable_queue_proc
* Struck through repros no longer work on HEAD.