Date
June 5, 2025, 7:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.574184] ================================================================== [ 24.574313] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 24.574445] Read of size 1 at addr fff00000c6447000 by task kunit_try_catch/140 [ 24.574560] [ 24.574624] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT [ 24.574817] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.574900] Hardware name: linux,dummy-virt (DT) [ 24.574993] Call trace: [ 24.575209] show_stack+0x20/0x38 (C) [ 24.575402] dump_stack_lvl+0x8c/0xd0 [ 24.575545] print_report+0x118/0x608 [ 24.575872] kasan_report+0xdc/0x128 [ 24.576073] __asan_report_load1_noabort+0x20/0x30 [ 24.576236] kmalloc_node_oob_right+0x2f4/0x330 [ 24.576384] kunit_try_run_case+0x170/0x3f0 [ 24.576513] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.576680] kthread+0x328/0x630 [ 24.577180] ret_from_fork+0x10/0x20 [ 24.577517] [ 24.577618] Allocated by task 140: [ 24.577705] kasan_save_stack+0x3c/0x68 [ 24.577806] kasan_save_track+0x20/0x40 [ 24.577904] kasan_save_alloc_info+0x40/0x58 [ 24.578006] __kasan_kmalloc+0xd4/0xd8 [ 24.578094] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 24.578205] kmalloc_node_oob_right+0xbc/0x330 [ 24.578321] kunit_try_run_case+0x170/0x3f0 [ 24.578787] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.578968] kthread+0x328/0x630 [ 24.579133] ret_from_fork+0x10/0x20 [ 24.579878] [ 24.579941] The buggy address belongs to the object at fff00000c6446000 [ 24.579941] which belongs to the cache kmalloc-4k of size 4096 [ 24.580051] The buggy address is located 0 bytes to the right of [ 24.580051] allocated 4096-byte region [fff00000c6446000, fff00000c6447000) [ 24.580134] [ 24.580174] The buggy address belongs to the physical page: [ 24.580419] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106440 [ 24.580800] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.581148] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 24.581371] page_type: f5(slab) [ 24.581480] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 24.581627] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 24.581867] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 24.582083] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 24.582368] head: 0bfffe0000000003 ffffc1ffc3191001 00000000ffffffff 00000000ffffffff [ 24.582494] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.582677] page dumped because: kasan: bad access detected [ 24.582813] [ 24.582944] Memory state around the buggy address: [ 24.583104] fff00000c6446f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.583255] fff00000c6446f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.584033] >fff00000c6447000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.584577] ^ [ 24.584858] fff00000c6447080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.584978] fff00000c6447100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.585402] ==================================================================
[ 10.738192] ================================================================== [ 10.738652] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.738992] Read of size 1 at addr ffff888102c05000 by task kunit_try_catch/157 [ 10.739310] [ 10.739421] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT(voluntary) [ 10.739466] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.739478] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.739498] Call Trace: [ 10.739512] <TASK> [ 10.739527] dump_stack_lvl+0x73/0xb0 [ 10.739552] print_report+0xd1/0x650 [ 10.739573] ? __virt_addr_valid+0x1db/0x2d0 [ 10.739596] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.739618] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.739639] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.739662] kasan_report+0x141/0x180 [ 10.739683] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.739710] __asan_report_load1_noabort+0x18/0x20 [ 10.740201] kmalloc_node_oob_right+0x369/0x3c0 [ 10.740236] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.740260] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 10.740289] ? trace_hardirqs_on+0x37/0xe0 [ 10.740314] ? __pfx_read_tsc+0x10/0x10 [ 10.740335] ? ktime_get_ts64+0x86/0x230 [ 10.740358] kunit_try_run_case+0x1a5/0x480 [ 10.740379] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.740400] ? queued_spin_lock_slowpath+0x116/0xb40 [ 10.740425] ? __kthread_parkme+0x82/0x180 [ 10.740445] ? preempt_count_sub+0x50/0x80 [ 10.740468] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.740488] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.740511] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.740535] kthread+0x337/0x6f0 [ 10.740553] ? trace_preempt_on+0x20/0xc0 [ 10.740574] ? __pfx_kthread+0x10/0x10 [ 10.740593] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.740636] ? calculate_sigpending+0x7b/0xa0 [ 10.740660] ? __pfx_kthread+0x10/0x10 [ 10.740680] ret_from_fork+0x116/0x1d0 [ 10.740698] ? __pfx_kthread+0x10/0x10 [ 10.740718] ret_from_fork_asm+0x1a/0x30 [ 10.740747] </TASK> [ 10.740758] [ 10.752061] Allocated by task 157: [ 10.752478] kasan_save_stack+0x45/0x70 [ 10.752670] kasan_save_track+0x18/0x40 [ 10.752860] kasan_save_alloc_info+0x3b/0x50 [ 10.753292] __kasan_kmalloc+0xb7/0xc0 [ 10.753606] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.754090] kmalloc_node_oob_right+0xab/0x3c0 [ 10.754279] kunit_try_run_case+0x1a5/0x480 [ 10.754598] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.754837] kthread+0x337/0x6f0 [ 10.755350] ret_from_fork+0x116/0x1d0 [ 10.755547] ret_from_fork_asm+0x1a/0x30 [ 10.756054] [ 10.756316] The buggy address belongs to the object at ffff888102c04000 [ 10.756316] which belongs to the cache kmalloc-4k of size 4096 [ 10.757090] The buggy address is located 0 bytes to the right of [ 10.757090] allocated 4096-byte region [ffff888102c04000, ffff888102c05000) [ 10.758044] [ 10.758145] The buggy address belongs to the physical page: [ 10.758435] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c00 [ 10.759230] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.759534] flags: 0x200000000000040(head|node=0|zone=2) [ 10.759857] page_type: f5(slab) [ 10.760176] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.760658] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.760963] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.761587] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.762020] head: 0200000000000003 ffffea00040b0001 00000000ffffffff 00000000ffffffff [ 10.762502] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.762931] page dumped because: kasan: bad access detected [ 10.763170] [ 10.763451] Memory state around the buggy address: [ 10.763621] ffff888102c04f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.764071] ffff888102c04f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.764493] >ffff888102c05000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.764787] ^ [ 10.765087] ffff888102c05080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.765347] ffff888102c05100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.765600] ==================================================================