================================================================== BUG: KASAN: use-after-free in notifier_call_chain+0x88/0x3f0 kernel/notifier.c:75 Read of size 8 at addr ffff88805dd318d0 by task init/891 CPU: 0 UID: 0 PID: 891 Comm: init Not tainted 6.13.0-rc6-syzkaller-00182-gf8c6263347e1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 notifier_call_chain+0x88/0x3f0 kernel/notifier.c:75 blocking_notifier_call_chain+0x69/0x90 kernel/notifier.c:380 kernel_shutdown_prepare kernel/reboot.c:299 [inline] kernel_power_off+0x1c/0xb0 kernel/reboot.c:702 __do_sys_reboot kernel/reboot.c:777 [inline] __se_sys_reboot+0x509/0x590 kernel/reboot.c:722 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efc53fbc8b4 Code: f0 ff ff 73 01 c3 48 8b 0d 71 55 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 89 fa be 69 19 12 28 bf ad de e1 fe b8 a9 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 45 55 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffebe299068 EFLAGS: 00000246 ORIG_RAX: 00000000000000a9 RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007efc53fbc8b4 RDX: 000000004321fedc RSI: 0000000028121969 RDI: 00000000fee1dead RBP: 000000004321fedc R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffebe299040 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffebe2990c8 R14: 000055a0b9ec0169 R15: 00007efc5419aa80 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8 pfn:0x5dd31 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 29654, tgid 29654 (syz-executor), ts 657011788400, free_ts 934169389671 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x3651/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2269 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x9c9/0x1380 mm/vmalloc.c:3846 vmalloc_user_noprof+0x74/0x80 mm/vmalloc.c:4000 kcov_ioctl+0x56/0x640 kernel/kcov.c:716 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 29657 tgid 29657 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd2c/0x1000 mm/page_alloc.c:2659 vfree+0x1c3/0x360 mm/vmalloc.c:3383 kcov_put kernel/kcov.c:439 [inline] kcov_close+0x28/0x50 kernel/kcov.c:535 __fput+0x23c/0xa50 fs/file_table.c:450 task_work_run+0x24f/0x310 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xa2a/0x28e0 kernel/exit.c:938 do_group_exit+0x207/0x2c0 kernel/exit.c:1087 get_signal+0x16b2/0x1750 kernel/signal.c:3017 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805dd31780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805dd31800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805dd31880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805dd31900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805dd31980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================