Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.729303] ================================================================== [ 17.729368] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 17.729421] Read of size 1 at addr fff00000c67b7000 by task kunit_try_catch/140 [ 17.729467] [ 17.729501] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 17.730680] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.730733] Hardware name: linux,dummy-virt (DT) [ 17.730778] Call trace: [ 17.730801] show_stack+0x20/0x38 (C) [ 17.731107] dump_stack_lvl+0x8c/0xd0 [ 17.731238] print_report+0x118/0x608 [ 17.731288] kasan_report+0xdc/0x128 [ 17.731333] __asan_report_load1_noabort+0x20/0x30 [ 17.731382] kmalloc_node_oob_right+0x2f4/0x330 [ 17.731428] kunit_try_run_case+0x170/0x3f0 [ 17.731474] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.731524] kthread+0x328/0x630 [ 17.731569] ret_from_fork+0x10/0x20 [ 17.731615] [ 17.731634] Allocated by task 140: [ 17.731786] kasan_save_stack+0x3c/0x68 [ 17.731890] kasan_save_track+0x20/0x40 [ 17.731955] kasan_save_alloc_info+0x40/0x58 [ 17.732269] __kasan_kmalloc+0xd4/0xd8 [ 17.732309] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 17.732356] kmalloc_node_oob_right+0xbc/0x330 [ 17.732392] kunit_try_run_case+0x170/0x3f0 [ 17.732805] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.733310] kthread+0x328/0x630 [ 17.733375] ret_from_fork+0x10/0x20 [ 17.733419] [ 17.734021] The buggy address belongs to the object at fff00000c67b6000 [ 17.734021] which belongs to the cache kmalloc-4k of size 4096 [ 17.734650] The buggy address is located 0 bytes to the right of [ 17.734650] allocated 4096-byte region [fff00000c67b6000, fff00000c67b7000) [ 17.735112] [ 17.735134] The buggy address belongs to the physical page: [ 17.735354] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1067b0 [ 17.736335] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.736512] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.736946] page_type: f5(slab) [ 17.737145] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.737339] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.737615] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.737666] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.738088] head: 0bfffe0000000003 ffffc1ffc319ec01 00000000ffffffff 00000000ffffffff [ 17.738524] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.738580] page dumped because: kasan: bad access detected [ 17.738621] [ 17.738639] Memory state around the buggy address: [ 17.738934] fff00000c67b6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.739677] fff00000c67b6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.739769] >fff00000c67b7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.740084] ^ [ 17.740191] fff00000c67b7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.740234] fff00000c67b7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.740272] ==================================================================
[ 13.305365] ================================================================== [ 13.306203] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 13.306666] Read of size 1 at addr ffff8881029bd000 by task kunit_try_catch/158 [ 13.307215] [ 13.307448] CPU: 0 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 13.307549] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.307575] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.307615] Call Trace: [ 13.307643] <TASK> [ 13.307682] dump_stack_lvl+0x73/0xb0 [ 13.307748] print_report+0xd1/0x650 [ 13.307787] ? __virt_addr_valid+0x1db/0x2d0 [ 13.307827] ? kmalloc_node_oob_right+0x369/0x3c0 [ 13.308057] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.308100] ? kmalloc_node_oob_right+0x369/0x3c0 [ 13.308147] kasan_report+0x141/0x180 [ 13.308438] ? kmalloc_node_oob_right+0x369/0x3c0 [ 13.308552] __asan_report_load1_noabort+0x18/0x20 [ 13.308591] kmalloc_node_oob_right+0x369/0x3c0 [ 13.308636] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 13.308662] ? __schedule+0x10cc/0x2b60 [ 13.308687] ? __pfx_read_tsc+0x10/0x10 [ 13.308710] ? ktime_get_ts64+0x86/0x230 [ 13.308736] kunit_try_run_case+0x1a5/0x480 [ 13.308764] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.308786] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.308809] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.308831] ? __kthread_parkme+0x82/0x180 [ 13.308853] ? preempt_count_sub+0x50/0x80 [ 13.308878] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.308901] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.308923] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.308945] kthread+0x337/0x6f0 [ 13.308965] ? trace_preempt_on+0x20/0xc0 [ 13.308989] ? __pfx_kthread+0x10/0x10 [ 13.309009] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.309029] ? calculate_sigpending+0x7b/0xa0 [ 13.309055] ? __pfx_kthread+0x10/0x10 [ 13.309076] ret_from_fork+0x116/0x1d0 [ 13.309094] ? __pfx_kthread+0x10/0x10 [ 13.309115] ret_from_fork_asm+0x1a/0x30 [ 13.309148] </TASK> [ 13.309161] [ 13.321505] Allocated by task 158: [ 13.322013] kasan_save_stack+0x45/0x70 [ 13.322641] kasan_save_track+0x18/0x40 [ 13.322940] kasan_save_alloc_info+0x3b/0x50 [ 13.323106] __kasan_kmalloc+0xb7/0xc0 [ 13.323420] __kmalloc_cache_node_noprof+0x188/0x420 [ 13.324018] kmalloc_node_oob_right+0xab/0x3c0 [ 13.324414] kunit_try_run_case+0x1a5/0x480 [ 13.324881] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.325118] kthread+0x337/0x6f0 [ 13.325424] ret_from_fork+0x116/0x1d0 [ 13.325872] ret_from_fork_asm+0x1a/0x30 [ 13.326275] [ 13.326431] The buggy address belongs to the object at ffff8881029bc000 [ 13.326431] which belongs to the cache kmalloc-4k of size 4096 [ 13.327406] The buggy address is located 0 bytes to the right of [ 13.327406] allocated 4096-byte region [ffff8881029bc000, ffff8881029bd000) [ 13.328248] [ 13.328653] The buggy address belongs to the physical page: [ 13.329123] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029b8 [ 13.330121] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.330504] flags: 0x200000000000040(head|node=0|zone=2) [ 13.330918] page_type: f5(slab) [ 13.331724] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 13.331966] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 13.332206] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 13.333027] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 13.333351] head: 0200000000000003 ffffea00040a6e01 00000000ffffffff 00000000ffffffff [ 13.334019] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 13.334365] page dumped because: kasan: bad access detected [ 13.334645] [ 13.335202] Memory state around the buggy address: [ 13.335463] ffff8881029bcf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.336032] ffff8881029bcf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.336248] >ffff8881029bd000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.337245] ^ [ 13.337440] ffff8881029bd080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.338129] ffff8881029bd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.338700] ==================================================================