BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1375 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 563, name: syz-executor.1 1 lock held by syz-executor.1/563: #0: ffffffff8b374160 (rcu_read_lock){....}-{1:2}, at: kernel_migrate_pages+0xed/0x6d0 mm/mempolicy.c:1527 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 563 Comm: syz-executor.1 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] __ia32_sys_migrate_pages+0x90/0xf0 mm/mempolicy.c:1595 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] do_int80_syscall_32+0x38/0x50 arch/x86/entry/common.c:94 entry_INT80_compat+0x71/0x76 arch/x86/entry/entry_64_compat.S:411 RIP: 0033:0x20000045 Code: cc 14 53 8d 1e fb 1f fe 03 28 4f 6d 33 26 5b e9 c6 04 b2 93 f2 0e 96 be eb 2a a4 c4 57 ac 37 a3 a3 f1 ce 86 82 50 0f ce cd 80 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 002b:00007f80e2fa9c60 EFLAGS: 00000246 ORIG_RAX: 0000000000000126 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ============================= [ BUG: Invalid wait context ] 5.11.0-rc3-next-20210114-syzkaller #0 Tainted: G W ----------------------------- syz-executor.1/563 is trying to lock: ffff888014d82cd8 (&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.1/563: #0: ffffffff8b374160 (rcu_read_lock){....}-{1:2}, at: kernel_migrate_pages+0xed/0x6d0 mm/mempolicy.c:1527 stack backtrace: CPU: 1 PID: 563 Comm: syz-executor.1 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] __ia32_sys_migrate_pages+0x90/0xf0 mm/mempolicy.c:1595 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] do_int80_syscall_32+0x38/0x50 arch/x86/entry/common.c:94 entry_INT80_compat+0x71/0x76 arch/x86/entry/entry_64_compat.S:411 RIP: 0033:0x20000045 Code: cc 14 53 8d 1e fb 1f fe 03 28 4f 6d 33 26 5b e9 c6 04 b2 93 f2 0e 96 be eb 2a a4 c4 57 ac 37 a3 a3 f1 ce 86 82 50 0f ce cd 80 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RSP: 002b:00007f80e2fa9c60 EFLAGS: 00000246 ORIG_RAX: 0000000000000126 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000