================================================================== BUG: unable to handle page fault for address: ffffdd401fffffe0 BUG: KASAN: stack-out-of-bounds in record_print_text kernel/printk/printk.c:1391 [inline] BUG: KASAN: stack-out-of-bounds in printk_get_next_message+0x6b7/0xbe0 kernel/printk/printk.c:2910 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page Write of size 48 at addr ffffc90003fd7220 by task syz.2.25/5404 PGD 15828067 P4D 15828067 PUD 0 Oops: Oops: 0000 [#2] PREEMPT SMP KASAN PTI CPU: 1 UID: 0 PID: 5404 Comm: syz.2.25 6.11.0-rc4-next-20240820-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: CPU: 0 UID: 0 PID: 5404 Comm: syz.2.25 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 5900:0xffffc90083fd63cd Code: Unable to access opcode bytes at 0xffffc90083fd63a9. RSP: ac14:ffffc90003fd6188 EFLAGS: ffffc90003fd63d2 ORIG_RAX: ffffc90003fd6180 RAX: 0000000000000000 RBX: 0000000045e0360e RCX: 0000000000000000 RDX: ffffffff8bb497b6 RSI: ffffffff8c0d4a0a RDI: 0000000000000029 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 RBP: 000000000000000f R08: 0000000000353530 R09: ffff1040ffffff00 R10: 1ffff920007fac10 R11: ffffc90003fd63d8 R12: 0000000000000000 R13: 0000000000000010 R14: 0000000000000530 R15: 00000000ffff1060 FS: 0000555589ffc500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 5900 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90083fd63a9 CR3: 000000002caac000 CR4: 00000000003506f0 kasan_report+0x143/0x180 mm/kasan/report.c:601 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memset+0x23/0x50 mm/kasan/shadow.c:84 record_print_text kernel/printk/printk.c:1391 [inline] printk_get_next_message+0x6b7/0xbe0 kernel/printk/printk.c:2910 console_emit_next_record kernel/printk/printk.c:2950 [inline] console_flush_all+0x410/0xfd0 kernel/printk/printk.c:3049 console_unlock+0x13b/0x4d0 kernel/printk/printk.c:3118 vprintk_emit+0x5dc/0x7c0 kernel/printk/printk.c:2348 _printk+0xd5/0x120 kernel/printk/printk.c:2373 print_unlock_imbalance_bug+0xf6/0x2c0 kernel/locking/lockdep.c:5187 __lock_release kernel/locking/lockdep.c:5439 [inline] lock_release+0x5cb/0xa30 kernel/locking/lockdep.c:5783 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x16/0x50 kernel/locking/spinlock.c:186 fast_dput+0x1e1/0x420 dput+0xe8/0x2b0 fs/dcache.c:846 __fput+0x5de/0x890 fs/file_table.c:432 task_work_run+0x24f/0x310 kernel/task_work.c:228 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0b58579e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc4dc81518 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f0b58717a80 RCX: 00007f0b58579e79 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f0b58717a80 R08: 0000000000000006 R09: 00007ffc4dc817ff R10: 00000000003ffbe4 R11: 0000000000000246 R12: 000000000001150e R13: 00007ffc4dc81610 R14: 00007ffc4dc81630 R15: ffffffffffffffff The buggy address belongs to stack of task syz.2.25/5404 and is located at offset 32 in frame: printk_get_next_message+0x0/0xbe0 This frame has 4 objects: [32, 80) 'prefix.i' [112, 132) 'caller.i' [176, 264) 'info' [304, 328) 'r' The buggy address belongs to the virtual mapping at [ffffc90003fd0000, ffffc90003fd9000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2206 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802b586c00 pfn:0x2b586 memcg:ffff88802dcde882 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88802b586c00 0000000000000000 00000001ffffffff ffff88802dcde882 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5318, tgid 5318 (syz.4.5), ts 61143580345, free_ts 60524158610 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3004/0x30c0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3600 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0xa40/0x1400 mm/vmalloc.c:3850 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2206 kernel_clone+0x226/0x8f0 kernel/fork.c:2787 __do_sys_clone3 kernel/fork.c:3091 [inline] __se_sys_clone3+0x2cb/0x350 kernel/fork.c:3070 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 4685 tgid 4685 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page+0xc07/0xd90 mm/page_alloc.c:2651 discard_slab mm/slub.c:2630 [inline] __put_partials+0xeb/0x130 mm/slub.c:3098 put_cpu_partial+0x17c/0x250 mm/slub.c:3173 __slab_free+0x2ea/0x3d0 mm/slub.c:4391 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4085 [inline] kmem_cache_alloc_node_noprof+0x16b/0x320 mm/slub.c:4128 __alloc_skb+0x1c3/0x440 net/core/skbuff.c:667 netlink_sendmsg+0x638/0xcb0 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x298/0x390 net/socket.c:2680 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 Memory state around the buggy address: ffffc90003fd7100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003fd7180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003fd7200: f1 f1 f1 f1 f1 f1 f1 f1 00 00 f2 f2 f2 f2 00 00 ^ ffffc90003fd7280: 04 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 ffffc90003fd7300: 00 f2 f2 f2 f2 f2 00 00 00 f3 f3 f3 f3 f3 f3 f3 ==================================================================