BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1375 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 21431, name: syz-executor.0 1 lock held by syz-executor.0/21431: #0: ffffffff8b374160 (rcu_read_lock){....}-{1:2}, at: kernel_migrate_pages+0xed/0x6d0 mm/mempolicy.c:1527 Preemption disabled at: [] irq_enter_rcu+0xb/0xe0 kernel/softirq.c:380 CPU: 0 PID: 21431 Comm: syz-executor.0 Not tainted 5.11.0-rc3-next-20210114-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+0x107/0x163 lib/dump_stack.c:120 ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:7964 down_read_killable+0x77/0x480 kernel/locking/rwsem.c:1375 mm_access+0x48/0x150 kernel/fork.c:1227 kernel_migrate_pages+0x1f8/0x6d0 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+0x93/0xf0 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:00007f0bed115c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000100 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 0000000020000240 RSI: 0000000000000a28 RDI: 0000000000000000 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200012c0 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffcb433586f R14: 00007f0bed1169c0 R15: 000000000119bf8c ============================= [ BUG: Invalid wait context ] 5.11.0-rc3-next-20210114-syzkaller #0 Tainted: G W ----------------------------- syz-executor.0/21431 is trying to lock: ffff888020316dd8 (&sig->exec_update_lock){++++}-{3:3}, at: mm_access+0x48/0x150 kernel/fork.c:1227 other info that might help us debug this: context-{4:4} 1 lock held by syz-executor.0/21431: #0: ffffffff8b374160 (rcu_read_lock){....}-{1:2}, at: kernel_migrate_pages+0xed/0x6d0 mm/mempolicy.c:1527 stack backtrace: CPU: 0 PID: 21431 Comm: syz-executor.0 Tainted: G W 5.11.0-rc3-next-20210114-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+0x107/0x163 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+0x304/0x39e kernel/locking/lockdep.c:4782 lock_acquire kernel/locking/lockdep.c:5442 [inline] lock_acquire+0x1a8/0x720 kernel/locking/lockdep.c:5407 down_read_killable+0x98/0x480 kernel/locking/rwsem.c:1376 mm_access+0x48/0x150 kernel/fork.c:1227 kernel_migrate_pages+0x1f8/0x6d0 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+0x93/0xf0 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:00007f0bed115c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000100 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219 RDX: 0000000020000240 RSI: 0000000000000a28 RDI: 0000000000000000 RBP: 000000000119bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000200012c0 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffcb433586f R14: 00007f0bed1169c0 R15: 000000000119bf8c