BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1375 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 10191, name: syz-executor.1 1 lock held by syz-executor.1/10191: #0: ffffffff84e190c0 (rcu_read_lock){....}-{1:2}, at: kernel_migrate_pages+0x6d/0x3d0 mm/mempolicy.c:1527 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 10191 Comm: syz-executor.1 Not tainted 5.11.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x77/0x97 lib/dump_stack.c:120 ___might_sleep.cold.120+0xf2/0x106 kernel/sched/core.c:7901 down_read_killable+0x18/0x170 kernel/locking/rwsem.c:1375 mm_access+0x1d/0x90 kernel/fork.c:1228 kernel_migrate_pages+0xf9/0x3d0 mm/mempolicy.c:1546 __do_sys_migrate_pages mm/mempolicy.c:1599 [inline] __se_sys_migrate_pages mm/mempolicy.c:1595 [inline] __x64_sys_migrate_pages+0x15/0x20 mm/mempolicy.c:1595 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fecc710fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000100 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffe50697aaf R14: 00007fecc71109c0 R15: 000000000119bf8c ============================= [ BUG: Invalid wait context ] 5.11.0-rc2-syzkaller #0 Tainted: G W ----------------------------- syz-executor.1/10191 is trying to lock: ffff88811e72c5d8 (&sig->exec_update_lock){++++}-{3:3}, at: mm_access+0x1d/0x90 kernel/fork.c:1228 other info that might help us debug this: context-{4:4} 1 lock held by syz-executor.1/10191: #0: ffffffff84e190c0 (rcu_read_lock){....}-{1:2}, at: kernel_migrate_pages+0x6d/0x3d0 mm/mempolicy.c:1527 stack backtrace: CPU: 1 PID: 10191 Comm: syz-executor.1 Tainted: G W 5.11.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x77/0x97 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4484 [inline] check_wait_context kernel/locking/lockdep.c:4545 [inline] __lock_acquire.cold.74+0x1e1/0x2be kernel/locking/lockdep.c:4782 lock_acquire+0xd0/0x3e0 kernel/locking/lockdep.c:5437 down_read_killable+0x3a/0x170 kernel/locking/rwsem.c:1376 mm_access+0x1d/0x90 kernel/fork.c:1228 kernel_migrate_pages+0xf9/0x3d0 mm/mempolicy.c:1546 __do_sys_migrate_pages mm/mempolicy.c:1599 [inline] __se_sys_migrate_pages mm/mempolicy.c:1595 [inline] __x64_sys_migrate_pages+0x15/0x20 mm/mempolicy.c:1595 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e219 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fecc710fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000100 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffe50697aaf R14: 00007fecc71109c0 R15: 000000000119bf8c