Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.144448] ================================================================== [ 15.144671] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 15.145119] Read of size 1 at addr fff00000c7821000 by task kunit_try_catch/141 [ 15.145555] [ 15.145659] CPU: 1 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.145913] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.146251] Hardware name: linux,dummy-virt (DT) [ 15.146536] Call trace: [ 15.146559] show_stack+0x20/0x38 (C) [ 15.146997] dump_stack_lvl+0x8c/0xd0 [ 15.147062] print_report+0x118/0x5d0 [ 15.147107] kasan_report+0xdc/0x128 [ 15.147491] __asan_report_load1_noabort+0x20/0x30 [ 15.147797] kmalloc_node_oob_right+0x2f4/0x330 [ 15.148009] kunit_try_run_case+0x170/0x3f0 [ 15.148388] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.148728] kthread+0x328/0x630 [ 15.148800] ret_from_fork+0x10/0x20 [ 15.149199] [ 15.149222] Allocated by task 141: [ 15.149494] kasan_save_stack+0x3c/0x68 [ 15.149579] kasan_save_track+0x20/0x40 [ 15.149664] kasan_save_alloc_info+0x40/0x58 [ 15.149702] __kasan_kmalloc+0xd4/0xd8 [ 15.149737] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 15.149777] kmalloc_node_oob_right+0xbc/0x330 [ 15.149865] kunit_try_run_case+0x170/0x3f0 [ 15.149905] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.149948] kthread+0x328/0x630 [ 15.150169] ret_from_fork+0x10/0x20 [ 15.150478] [ 15.150512] The buggy address belongs to the object at fff00000c7820000 [ 15.150512] which belongs to the cache kmalloc-4k of size 4096 [ 15.150591] The buggy address is located 0 bytes to the right of [ 15.150591] allocated 4096-byte region [fff00000c7820000, fff00000c7821000) [ 15.150872] [ 15.151518] The buggy address belongs to the physical page: [ 15.152080] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107820 [ 15.152990] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.153169] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.153503] page_type: f5(slab) [ 15.153547] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 15.153598] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.154378] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 15.154552] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.154693] head: 0bfffe0000000003 ffffc1ffc31e0801 00000000ffffffff 00000000ffffffff [ 15.154846] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.155189] page dumped because: kasan: bad access detected [ 15.155228] [ 15.155259] Memory state around the buggy address: [ 15.155535] fff00000c7820f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.155600] fff00000c7820f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.155643] >fff00000c7821000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.155680] ^ [ 15.155707] fff00000c7821080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.155748] fff00000c7821100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.155784] ==================================================================
[ 11.971499] ================================================================== [ 11.971972] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.972279] Read of size 1 at addr ffff888102857000 by task kunit_try_catch/157 [ 11.972638] [ 11.972766] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.972809] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.972820] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.972840] Call Trace: [ 11.972851] <TASK> [ 11.972864] dump_stack_lvl+0x73/0xb0 [ 11.972892] print_report+0xd1/0x610 [ 11.972914] ? __virt_addr_valid+0x1db/0x2d0 [ 11.972936] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.972959] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.972983] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.973007] kasan_report+0x141/0x180 [ 11.973028] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.973057] __asan_report_load1_noabort+0x18/0x20 [ 11.973082] kmalloc_node_oob_right+0x369/0x3c0 [ 11.973106] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.973132] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 11.973158] ? trace_hardirqs_on+0x37/0xe0 [ 11.973182] ? __pfx_read_tsc+0x10/0x10 [ 11.973203] ? ktime_get_ts64+0x86/0x230 [ 11.973227] kunit_try_run_case+0x1a5/0x480 [ 11.973251] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.973276] ? queued_spin_lock_slowpath+0x116/0xb40 [ 11.973300] ? __kthread_parkme+0x82/0x180 [ 11.973320] ? preempt_count_sub+0x50/0x80 [ 11.973344] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.973368] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.973393] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.973418] kthread+0x337/0x6f0 [ 11.973437] ? trace_preempt_on+0x20/0xc0 [ 11.973590] ? __pfx_kthread+0x10/0x10 [ 11.973615] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.973637] ? calculate_sigpending+0x7b/0xa0 [ 11.973661] ? __pfx_kthread+0x10/0x10 [ 11.973683] ret_from_fork+0x116/0x1d0 [ 11.973702] ? __pfx_kthread+0x10/0x10 [ 11.973722] ret_from_fork_asm+0x1a/0x30 [ 11.973767] </TASK> [ 11.973778] [ 11.981095] Allocated by task 157: [ 11.981284] kasan_save_stack+0x45/0x70 [ 11.981575] kasan_save_track+0x18/0x40 [ 11.981742] kasan_save_alloc_info+0x3b/0x50 [ 11.981908] __kasan_kmalloc+0xb7/0xc0 [ 11.982079] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.982310] kmalloc_node_oob_right+0xab/0x3c0 [ 11.982532] kunit_try_run_case+0x1a5/0x480 [ 11.982805] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.982980] kthread+0x337/0x6f0 [ 11.983101] ret_from_fork+0x116/0x1d0 [ 11.983450] ret_from_fork_asm+0x1a/0x30 [ 11.983662] [ 11.983766] The buggy address belongs to the object at ffff888102856000 [ 11.983766] which belongs to the cache kmalloc-4k of size 4096 [ 11.984274] The buggy address is located 0 bytes to the right of [ 11.984274] allocated 4096-byte region [ffff888102856000, ffff888102857000) [ 11.984642] [ 11.984802] The buggy address belongs to the physical page: [ 11.985535] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102850 [ 11.986078] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.986518] flags: 0x200000000000040(head|node=0|zone=2) [ 11.986804] page_type: f5(slab) [ 11.986935] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.987280] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.987801] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.988040] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.988384] head: 0200000000000003 ffffea00040a1401 00000000ffffffff 00000000ffffffff [ 11.988742] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.989122] page dumped because: kasan: bad access detected [ 11.989563] [ 11.989677] Memory state around the buggy address: [ 11.989850] ffff888102856f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.990118] ffff888102856f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.990542] >ffff888102857000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.990914] ^ [ 11.991037] ffff888102857080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.991325] ffff888102857100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.991752] ==================================================================