================================================ WARNING: lock held when returning to user space! syzkaller #0 Not tainted ------------------------------------------------ dhcpcd-run-hook/5672 is leaving the kernel with locks still held! 1 lock held by dhcpcd-run-hook/5672: #0: ffffffff8e7e54e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline] #0: ffffffff8e7e54e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #0: ffffffff8e7e54e0 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x2f/0x310 mm/pgtable-generic.c:290 BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:323 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5672, name: dhcpcd-run-hook preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 3 UID: 0 PID: 5672 Comm: dhcpcd-run-hook Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1ec/0x232 kernel/sched/core.c:9162 might_alloc include/linux/sched/mm.h:323 [inline] prepare_alloc_pages+0x44a/0x5f0 mm/page_alloc.c:4995 __alloc_frozen_pages_noprof+0x19a/0x2bc0 mm/page_alloc.c:5215 alloc_pages_mpol+0x1fb/0x540 mm/mempolicy.c:2490 folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2509 vma_alloc_folio_noprof+0xed/0x1d0 mm/mempolicy.c:2544 folio_prealloc mm/memory.c:1193 [inline] wp_page_copy mm/memory.c:3859 [inline] do_wp_page+0x1ee1/0x4350 mm/memory.c:4320 handle_pte_fault mm/memory.c:6427 [inline] __handle_mm_fault+0x1ab6/0x2a00 mm/memory.c:6549 handle_mm_fault+0x36d/0xa20 mm/memory.c:6718 do_user_addr_fault+0x5a3/0x12f0 arch/x86/mm/fault.c:1334 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6f/0xd0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x7f1c5c6f72cd Code: 00 e8 57 b3 ff ff 89 c3 85 c0 0f 85 d5 01 00 00 48 83 05 8d 15 10 00 04 48 8b 1d c6 ac 0f 00 48 8b 83 38 0b 00 00 66 0f ef c0 <48> c7 83 28 0a 00 00 00 00 00 00 0f 11 83 18 0a 00 00 0f 11 83 68 RSP: 002b:00007fffee5266e0 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 00007f1c5c902000 RCX: 00007f1c5c660f07 RDX: 0000000000000000 RSI: 00007fffee5266b8 RDI: 0000000000000002 RBP: 000055fdd159b810 R08: 00007f1c5c7f3b60 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 000055fdd159f9f0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000