Date
June 3, 2025, 7:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
x86 |
[ 18.082069] ================================================================== [ 18.084446] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 18.084538] Read of size 1 at addr fff00000c668b000 by task kunit_try_catch/140 [ 18.084590] [ 18.084627] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT [ 18.084713] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.084738] Hardware name: linux,dummy-virt (DT) [ 18.084770] Call trace: [ 18.084793] show_stack+0x20/0x38 (C) [ 18.084851] dump_stack_lvl+0x8c/0xd0 [ 18.084900] print_report+0x118/0x608 [ 18.084947] kasan_report+0xdc/0x128 [ 18.084992] __asan_report_load1_noabort+0x20/0x30 [ 18.085038] kmalloc_node_oob_right+0x2f4/0x330 [ 18.085086] kunit_try_run_case+0x170/0x3f0 [ 18.085134] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.085186] kthread+0x328/0x630 [ 18.085229] ret_from_fork+0x10/0x20 [ 18.085277] [ 18.085295] Allocated by task 140: [ 18.085323] kasan_save_stack+0x3c/0x68 [ 18.085363] kasan_save_track+0x20/0x40 [ 18.085399] kasan_save_alloc_info+0x40/0x58 [ 18.085446] __kasan_kmalloc+0xd4/0xd8 [ 18.085481] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 18.085522] kmalloc_node_oob_right+0xbc/0x330 [ 18.085559] kunit_try_run_case+0x170/0x3f0 [ 18.085595] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.085637] kthread+0x328/0x630 [ 18.085667] ret_from_fork+0x10/0x20 [ 18.085702] [ 18.085721] The buggy address belongs to the object at fff00000c668a000 [ 18.085721] which belongs to the cache kmalloc-4k of size 4096 [ 18.085776] The buggy address is located 0 bytes to the right of [ 18.085776] allocated 4096-byte region [fff00000c668a000, fff00000c668b000) [ 18.085838] [ 18.085858] The buggy address belongs to the physical page: [ 18.085932] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106688 [ 18.086090] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.086136] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.086202] page_type: f5(slab) [ 18.086242] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.086291] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.086345] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.086393] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.086452] head: 0bfffe0000000003 ffffc1ffc319a201 00000000ffffffff 00000000ffffffff [ 18.086500] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.086543] page dumped because: kasan: bad access detected [ 18.086572] [ 18.086590] Memory state around the buggy address: [ 18.086622] fff00000c668af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.086663] fff00000c668af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.086703] >fff00000c668b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.086739] ^ [ 18.086766] fff00000c668b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.086805] fff00000c668b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.086842] ==================================================================
[ 13.526273] ================================================================== [ 13.526887] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 13.527125] Read of size 1 at addr ffff8881038d1000 by task kunit_try_catch/157 [ 13.527635] [ 13.528316] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 13.528403] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.528422] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.528450] Call Trace: [ 13.528480] <TASK> [ 13.528509] dump_stack_lvl+0x73/0xb0 [ 13.528553] print_report+0xd1/0x650 [ 13.528580] ? __virt_addr_valid+0x1db/0x2d0 [ 13.528609] ? kmalloc_node_oob_right+0x369/0x3c0 [ 13.528635] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.528660] ? kmalloc_node_oob_right+0x369/0x3c0 [ 13.528686] kasan_report+0x141/0x180 [ 13.528710] ? kmalloc_node_oob_right+0x369/0x3c0 [ 13.528741] __asan_report_load1_noabort+0x18/0x20 [ 13.529147] kmalloc_node_oob_right+0x369/0x3c0 [ 13.529178] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 13.529207] ? __schedule+0x10cc/0x2b60 [ 13.529422] ? __pfx_read_tsc+0x10/0x10 [ 13.529520] ? ktime_get_ts64+0x86/0x230 [ 13.529553] kunit_try_run_case+0x1a5/0x480 [ 13.529583] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.529604] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.529632] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.529660] ? __kthread_parkme+0x82/0x180 [ 13.529687] ? preempt_count_sub+0x50/0x80 [ 13.529877] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.529905] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.529934] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.529962] kthread+0x337/0x6f0 [ 13.529985] ? trace_preempt_on+0x20/0xc0 [ 13.530012] ? __pfx_kthread+0x10/0x10 [ 13.530035] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.530061] ? calculate_sigpending+0x7b/0xa0 [ 13.530089] ? __pfx_kthread+0x10/0x10 [ 13.530113] ret_from_fork+0x116/0x1d0 [ 13.530135] ? __pfx_kthread+0x10/0x10 [ 13.530158] ret_from_fork_asm+0x1a/0x30 [ 13.530195] </TASK> [ 13.530218] [ 13.545598] Allocated by task 157: [ 13.546151] kasan_save_stack+0x45/0x70 [ 13.546626] kasan_save_track+0x18/0x40 [ 13.547091] kasan_save_alloc_info+0x3b/0x50 [ 13.547398] __kasan_kmalloc+0xb7/0xc0 [ 13.548115] __kmalloc_cache_node_noprof+0x188/0x420 [ 13.548638] kmalloc_node_oob_right+0xab/0x3c0 [ 13.549139] kunit_try_run_case+0x1a5/0x480 [ 13.549992] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.550375] kthread+0x337/0x6f0 [ 13.550836] ret_from_fork+0x116/0x1d0 [ 13.551125] ret_from_fork_asm+0x1a/0x30 [ 13.551596] [ 13.551842] The buggy address belongs to the object at ffff8881038d0000 [ 13.551842] which belongs to the cache kmalloc-4k of size 4096 [ 13.552926] The buggy address is located 0 bytes to the right of [ 13.552926] allocated 4096-byte region [ffff8881038d0000, ffff8881038d1000) [ 13.553821] [ 13.554188] The buggy address belongs to the physical page: [ 13.555068] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038d0 [ 13.555865] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 13.556525] flags: 0x200000000000040(head|node=0|zone=2) [ 13.557133] page_type: f5(slab) [ 13.557321] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 13.557886] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 13.558620] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 13.559143] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 13.560118] head: 0200000000000003 ffffea00040e3401 00000000ffffffff 00000000ffffffff [ 13.560614] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 13.561376] page dumped because: kasan: bad access detected [ 13.561917] [ 13.562051] Memory state around the buggy address: [ 13.562513] ffff8881038d0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.562979] ffff8881038d0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.563385] >ffff8881038d1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.563935] ^ [ 13.564207] ffff8881038d1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.564745] ffff8881038d1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.565345] ==================================================================
[ 18.132769] ================================================================== [ 18.143656] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 18.151058] Read of size 1 at addr ffff888105873000 by task kunit_try_catch/180 [ 18.158410] [ 18.159933] CPU: 1 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G S B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 18.159943] Tainted: [S]=CPU_OUT_OF_SPEC, [B]=BAD_PAGE, [N]=TEST [ 18.159945] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.7 12/07/2021 [ 18.159949] Call Trace: [ 18.159950] <TASK> [ 18.159952] dump_stack_lvl+0x73/0xb0 [ 18.159956] print_report+0xd1/0x650 [ 18.159960] ? __virt_addr_valid+0x1db/0x2d0 [ 18.159964] ? kmalloc_node_oob_right+0x369/0x3c0 [ 18.159969] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.159973] ? kmalloc_node_oob_right+0x369/0x3c0 [ 18.159977] kasan_report+0x141/0x180 [ 18.159981] ? kmalloc_node_oob_right+0x369/0x3c0 [ 18.159987] __asan_report_load1_noabort+0x18/0x20 [ 18.159990] kmalloc_node_oob_right+0x369/0x3c0 [ 18.159995] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 18.160000] ? __schedule+0x10cc/0x2b60 [ 18.160004] ? ktime_get_ts64+0x83/0x230 [ 18.160008] kunit_try_run_case+0x1a2/0x480 [ 18.160012] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.160015] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.160020] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.160025] ? __kthread_parkme+0x82/0x180 [ 18.160028] ? preempt_count_sub+0x50/0x80 [ 18.160032] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.160036] kunit_generic_run_threadfn_adapter+0x82/0xf0 [ 18.160040] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.160045] kthread+0x334/0x6f0 [ 18.160048] ? trace_preempt_on+0x20/0xc0 [ 18.160052] ? __pfx_kthread+0x10/0x10 [ 18.160056] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.160060] ? calculate_sigpending+0x7b/0xa0 [ 18.160065] ? __pfx_kthread+0x10/0x10 [ 18.160068] ret_from_fork+0x113/0x1d0 [ 18.160072] ? __pfx_kthread+0x10/0x10 [ 18.160075] ret_from_fork_asm+0x1a/0x30 [ 18.160081] </TASK> [ 18.160082] [ 18.327975] Allocated by task 180: [ 18.331388] kasan_save_stack+0x45/0x70 [ 18.335249] kasan_save_track+0x18/0x40 [ 18.339086] kasan_save_alloc_info+0x3b/0x50 [ 18.343399] __kasan_kmalloc+0xb7/0xc0 [ 18.347182] __kmalloc_cache_node_noprof+0x188/0x420 [ 18.352156] kmalloc_node_oob_right+0xab/0x3c0 [ 18.356601] kunit_try_run_case+0x1a2/0x480 [ 18.360786] kunit_generic_run_threadfn_adapter+0x82/0xf0 [ 18.366188] kthread+0x334/0x6f0 [ 18.369421] ret_from_fork+0x113/0x1d0 [ 18.373171] ret_from_fork_asm+0x1a/0x30 [ 18.377098] [ 18.378597] The buggy address belongs to the object at ffff888105872000 [ 18.378597] which belongs to the cache kmalloc-4k of size 4096 [ 18.391112] The buggy address is located 0 bytes to the right of [ 18.391112] allocated 4096-byte region [ffff888105872000, ffff888105873000) [ 18.404148] [ 18.405646] The buggy address belongs to the physical page: [ 18.411220] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105870 [ 18.419225] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.426878] flags: 0x200000000000040(head|node=0|zone=2) [ 18.432192] page_type: f5(slab) [ 18.435339] raw: 0200000000000040 ffff888100043040 dead000000000122 0000000000000000 [ 18.443111] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.450852] head: 0200000000000040 ffff888100043040 dead000000000122 0000000000000000 [ 18.458686] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.466521] head: 0200000000000003 ffffea0004161c01 00000000ffffffff 00000000ffffffff [ 18.474370] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.482231] page dumped because: kasan: bad access detected [ 18.487804] [ 18.489302] Memory state around the buggy address: [ 18.494097] ffff888105872f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.501315] ffff888105872f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.508533] >ffff888105873000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.515754] ^ [ 18.518985] ffff888105873080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.526207] ffff888105873100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.533437] ==================================================================