Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.976317] ================================================================== [ 18.976418] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 18.976785] Read of size 1 at addr fff00000c5be5000 by task kunit_try_catch/140 [ 18.976915] [ 18.976979] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.977296] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.977365] Hardware name: linux,dummy-virt (DT) [ 18.977406] Call trace: [ 18.977459] show_stack+0x20/0x38 (C) [ 18.977512] dump_stack_lvl+0x8c/0xd0 [ 18.977556] print_report+0x118/0x608 [ 18.977600] kasan_report+0xdc/0x128 [ 18.977885] __asan_report_load1_noabort+0x20/0x30 [ 18.978226] kmalloc_node_oob_right+0x2f4/0x330 [ 18.978318] kunit_try_run_case+0x170/0x3f0 [ 18.978429] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.978533] kthread+0x328/0x630 [ 18.978623] ret_from_fork+0x10/0x20 [ 18.978700] [ 18.978836] Allocated by task 140: [ 18.978901] kasan_save_stack+0x3c/0x68 [ 18.979079] kasan_save_track+0x20/0x40 [ 18.979137] kasan_save_alloc_info+0x40/0x58 [ 18.979435] __kasan_kmalloc+0xd4/0xd8 [ 18.979627] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 18.979769] kmalloc_node_oob_right+0xbc/0x330 [ 18.979853] kunit_try_run_case+0x170/0x3f0 [ 18.979889] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.979958] kthread+0x328/0x630 [ 18.980105] ret_from_fork+0x10/0x20 [ 18.980149] [ 18.980168] The buggy address belongs to the object at fff00000c5be4000 [ 18.980168] which belongs to the cache kmalloc-4k of size 4096 [ 18.980401] The buggy address is located 0 bytes to the right of [ 18.980401] allocated 4096-byte region [fff00000c5be4000, fff00000c5be5000) [ 18.980514] [ 18.980536] The buggy address belongs to the physical page: [ 18.980624] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105be0 [ 18.980838] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.980900] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.980972] page_type: f5(slab) [ 18.981010] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.981070] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.981148] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.981202] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.981250] head: 0bfffe0000000003 ffffc1ffc316f801 00000000ffffffff 00000000ffffffff [ 18.981308] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.981351] page dumped because: kasan: bad access detected [ 18.981389] [ 18.981411] Memory state around the buggy address: [ 18.981455] fff00000c5be4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.981496] fff00000c5be4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.981538] >fff00000c5be5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.981574] ^ [ 18.981600] fff00000c5be5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.981656] fff00000c5be5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.981717] ==================================================================
[ 12.158010] ================================================================== [ 12.158910] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 12.159392] Read of size 1 at addr ffff8881039e9000 by task kunit_try_catch/157 [ 12.160003] [ 12.160357] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.160409] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.160421] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.160443] Call Trace: [ 12.160456] <TASK> [ 12.160474] dump_stack_lvl+0x73/0xb0 [ 12.160503] print_report+0xd1/0x650 [ 12.160525] ? __virt_addr_valid+0x1db/0x2d0 [ 12.160547] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.160569] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.160594] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.160616] kasan_report+0x141/0x180 [ 12.160638] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.160666] __asan_report_load1_noabort+0x18/0x20 [ 12.160688] kmalloc_node_oob_right+0x369/0x3c0 [ 12.160711] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 12.160734] ? __schedule+0x10cc/0x2b60 [ 12.160756] ? __pfx_read_tsc+0x10/0x10 [ 12.160777] ? ktime_get_ts64+0x86/0x230 [ 12.160801] kunit_try_run_case+0x1a5/0x480 [ 12.160825] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.160846] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.160868] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.160890] ? __kthread_parkme+0x82/0x180 [ 12.160909] ? preempt_count_sub+0x50/0x80 [ 12.160932] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.160954] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.160976] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.160997] kthread+0x337/0x6f0 [ 12.161016] ? trace_preempt_on+0x20/0xc0 [ 12.161038] ? __pfx_kthread+0x10/0x10 [ 12.161071] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.161091] ? calculate_sigpending+0x7b/0xa0 [ 12.161113] ? __pfx_kthread+0x10/0x10 [ 12.161133] ret_from_fork+0x116/0x1d0 [ 12.161151] ? __pfx_kthread+0x10/0x10 [ 12.161170] ret_from_fork_asm+0x1a/0x30 [ 12.161201] </TASK> [ 12.161213] [ 12.172964] Allocated by task 157: [ 12.173214] kasan_save_stack+0x45/0x70 [ 12.173739] kasan_save_track+0x18/0x40 [ 12.173906] kasan_save_alloc_info+0x3b/0x50 [ 12.174445] __kasan_kmalloc+0xb7/0xc0 [ 12.174831] __kmalloc_cache_node_noprof+0x188/0x420 [ 12.175083] kmalloc_node_oob_right+0xab/0x3c0 [ 12.175375] kunit_try_run_case+0x1a5/0x480 [ 12.175570] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.176126] kthread+0x337/0x6f0 [ 12.176404] ret_from_fork+0x116/0x1d0 [ 12.176733] ret_from_fork_asm+0x1a/0x30 [ 12.176909] [ 12.177218] The buggy address belongs to the object at ffff8881039e8000 [ 12.177218] which belongs to the cache kmalloc-4k of size 4096 [ 12.177981] The buggy address is located 0 bytes to the right of [ 12.177981] allocated 4096-byte region [ffff8881039e8000, ffff8881039e9000) [ 12.178914] [ 12.179029] The buggy address belongs to the physical page: [ 12.179356] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e8 [ 12.180434] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.180781] flags: 0x200000000000040(head|node=0|zone=2) [ 12.181381] page_type: f5(slab) [ 12.181679] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.182167] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.182681] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.183202] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.183597] head: 0200000000000003 ffffea00040e7a01 00000000ffffffff 00000000ffffffff [ 12.183925] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.184489] page dumped because: kasan: bad access detected [ 12.184892] [ 12.184995] Memory state around the buggy address: [ 12.185597] ffff8881039e8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.186031] ffff8881039e8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.186360] >ffff8881039e9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.186876] ^ [ 12.187198] ffff8881039e9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.187712] ffff8881039e9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.188161] ==================================================================