general p[ 107.277660][ T5378] general protection fault, probably for non-canonical address 0xdffffcc020008009: 0000 [#1] PREEMPT SMP KASAN ================================================================== BUG: KASAN: out-of-bounds in user_mode arch/x86/include/asm/ptrace.h:136 [inline] BUG: KASAN: out-of-bounds in page_fault_oops+0xa25/0xad0 arch/x86/mm/fault.c:642 Read of size 8 at addr ffffc9000366f590 by task udevd/5378 CPU: 0 PID: 5378 Comm: udevd Not tainted 6.6.0-rc3-syzkaller-00044-g633b47cb009d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 user_mode arch/x86/include/asm/ptrace.h:136 [inline] page_fault_oops+0xa25/0xad0 arch/x86/mm/fault.c:642 do_user_addr_fault+0x53d/0x1000 arch/x86/mm/fault.c:1263 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:0x60100040048 Code: Unable to access opcode bytes at 0x6010004001e. RSP: 0018:ffffc9000366f5b8 EFLAGS: 00010082 RAX: 0000000080000002 RBX: 0000060100040048 RCX: 0000000000000001 RDX: 0000000000000004 RSI: ffffffff8ae90f20 RDI: 0000000000000001 RBP: 0000000200000001 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000000026b4 R11: 205d383733355420 R12: 0000060100040048 R13: 0000000200000001 R14: fffffbfff24ac066 R15: dffffc0000000000 The buggy address belongs to stack of task udevd/5378 and is located at offset 536 in frame: page_fault_oops+0x0/0xad0 arch/x86/include/asm/pgtable_types.h:376 This frame has 5 objects: [32, 34) 'ldtr' [48, 52) 'level' [64, 74) 'idt' [96, 106) 'gdt' [128, 160) 'info' The buggy address belongs to the virtual mapping at [ffffc90003668000, ffffc90003671000) created by: kernel_clone+0xfd/0x920 kernel/fork.c:2909 The buggy address belongs to the physical page: page:ffffea00019a7780 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x669de flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 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 4486, tgid 4486 (udevd), ts 99773070417, free_ts 99713782497 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2cf/0x340 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xee0/0x2f20 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4426 alloc_pages+0x1a9/0x270 mm/mempolicy.c:2298 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0xa6e/0x1540 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1118 [inline] copy_process+0x13e3/0x73f0 kernel/fork.c:2327 kernel_clone+0xfd/0x920 kernel/fork.c:2909 __do_sys_clone+0xba/0x100 kernel/fork.c:3052 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 slab_destroy mm/slab.c:1608 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1628 cache_flusharray mm/slab.c:3341 [inline] ___cache_free+0x2b7/0x420 mm/slab.c:3404 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x4c/0x1b0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slab.c:3237 [inline] kmem_cache_alloc_node+0x173/0x540 mm/slab.c:3509 __alloc_skb+0x287/0x330 net/core/skbuff.c:640 alloc_skb include/linux/skbuff.h:1286 [inline] alloc_skb_with_frags+0xe4/0x710 net/core/skbuff.c:6313 sock_alloc_send_pskb+0x7e4/0x970 net/core/sock.c:2795 unix_dgram_sendmsg+0x455/0x1c30 net/unix/af_unix.c:1953 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:753 sock_write_iter+0x29b/0x3d0 net/socket.c:1141 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x650/0xe40 fs/read_write.c:584 ksys_write+0x1f0/0x250 fs/read_write.c:637 Memory state around the buggy address: ffffc9000366f480: 48 00 04 00 01 06 00 00 01 00 00 00 02 00 00 00 ffffc9000366f500: 48 00 04 00 01 06 00 00 01 00 00 00 02 00 00 00 >ffffc9000366f580: 48 00 04 00 01 06 00 00 01 00 00 00 02 00 00 00 ^ ffffc9000366f600: 48 00 04 00 01 06 00 00 01 00 00 00 02 00 00 00 ffffc9000366f680: 48 00 04 00 01 06 00 00 01 00 00 00 02 00 00 00 ==================================================================