Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 14.972312] ================================================================== [ 14.972375] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 14.972428] Read of size 1 at addr fff00000c60bf000 by task kunit_try_catch/141 [ 14.972653] [ 14.973109] CPU: 1 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 14.973246] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.973273] Hardware name: linux,dummy-virt (DT) [ 14.973304] Call trace: [ 14.973346] show_stack+0x20/0x38 (C) [ 14.973399] dump_stack_lvl+0x8c/0xd0 [ 14.973667] print_report+0x118/0x5d0 [ 14.973820] kasan_report+0xdc/0x128 [ 14.974209] __asan_report_load1_noabort+0x20/0x30 [ 14.974449] kmalloc_node_oob_right+0x2f4/0x330 [ 14.974524] kunit_try_run_case+0x170/0x3f0 [ 14.974584] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 14.974766] kthread+0x328/0x630 [ 14.974934] ret_from_fork+0x10/0x20 [ 14.975182] [ 14.975252] Allocated by task 141: [ 14.975292] kasan_save_stack+0x3c/0x68 [ 14.975650] kasan_save_track+0x20/0x40 [ 14.975712] kasan_save_alloc_info+0x40/0x58 [ 14.975950] __kasan_kmalloc+0xd4/0xd8 [ 14.976189] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 14.976260] kmalloc_node_oob_right+0xbc/0x330 [ 14.976602] kunit_try_run_case+0x170/0x3f0 [ 14.976657] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 14.976736] kthread+0x328/0x630 [ 14.976789] ret_from_fork+0x10/0x20 [ 14.976840] [ 14.976871] The buggy address belongs to the object at fff00000c60be000 [ 14.976871] which belongs to the cache kmalloc-4k of size 4096 [ 14.976929] The buggy address is located 0 bytes to the right of [ 14.976929] allocated 4096-byte region [fff00000c60be000, fff00000c60bf000) [ 14.976991] [ 14.977017] The buggy address belongs to the physical page: [ 14.977111] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060b8 [ 14.977315] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.977371] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 14.977475] page_type: f5(slab) [ 14.977541] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 14.977611] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 14.977684] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 14.978950] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 14.979185] head: 0bfffe0000000003 ffffc1ffc3182e01 00000000ffffffff 00000000ffffffff [ 14.979247] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 14.979371] page dumped because: kasan: bad access detected [ 14.979418] [ 14.979511] Memory state around the buggy address: [ 14.979851] fff00000c60bef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.979911] fff00000c60bef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.980027] >fff00000c60bf000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.980193] ^ [ 14.980283] fff00000c60bf080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.980416] fff00000c60bf100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.980513] ==================================================================
[ 11.457391] ================================================================== [ 11.457856] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.458468] Read of size 1 at addr ffff888102a63000 by task kunit_try_catch/158 [ 11.458871] [ 11.459012] CPU: 0 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.459091] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.459102] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.459124] Call Trace: [ 11.459136] <TASK> [ 11.459154] dump_stack_lvl+0x73/0xb0 [ 11.459195] print_report+0xd1/0x610 [ 11.459217] ? __virt_addr_valid+0x1db/0x2d0 [ 11.459239] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.459262] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.459284] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.459307] kasan_report+0x141/0x180 [ 11.459343] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.459370] __asan_report_load1_noabort+0x18/0x20 [ 11.459394] kmalloc_node_oob_right+0x369/0x3c0 [ 11.459431] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.459454] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 11.459479] ? trace_hardirqs_on+0x37/0xe0 [ 11.459520] ? __pfx_read_tsc+0x10/0x10 [ 11.459540] ? ktime_get_ts64+0x86/0x230 [ 11.459564] kunit_try_run_case+0x1a5/0x480 [ 11.459600] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.459624] ? queued_spin_lock_slowpath+0x116/0xb40 [ 11.459661] ? __kthread_parkme+0x82/0x180 [ 11.459681] ? preempt_count_sub+0x50/0x80 [ 11.459705] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.459738] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.459761] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.459784] kthread+0x337/0x6f0 [ 11.459803] ? trace_preempt_on+0x20/0xc0 [ 11.459847] ? __pfx_kthread+0x10/0x10 [ 11.459866] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.459898] ? calculate_sigpending+0x7b/0xa0 [ 11.459922] ? __pfx_kthread+0x10/0x10 [ 11.459942] ret_from_fork+0x116/0x1d0 [ 11.459960] ? __pfx_kthread+0x10/0x10 [ 11.459979] ret_from_fork_asm+0x1a/0x30 [ 11.460009] </TASK> [ 11.460019] [ 11.467504] Allocated by task 158: [ 11.467632] kasan_save_stack+0x45/0x70 [ 11.467834] kasan_save_track+0x18/0x40 [ 11.468082] kasan_save_alloc_info+0x3b/0x50 [ 11.468312] __kasan_kmalloc+0xb7/0xc0 [ 11.468671] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.468907] kmalloc_node_oob_right+0xab/0x3c0 [ 11.469148] kunit_try_run_case+0x1a5/0x480 [ 11.469342] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.469634] kthread+0x337/0x6f0 [ 11.469759] ret_from_fork+0x116/0x1d0 [ 11.469937] ret_from_fork_asm+0x1a/0x30 [ 11.470188] [ 11.470384] The buggy address belongs to the object at ffff888102a62000 [ 11.470384] which belongs to the cache kmalloc-4k of size 4096 [ 11.470988] The buggy address is located 0 bytes to the right of [ 11.470988] allocated 4096-byte region [ffff888102a62000, ffff888102a63000) [ 11.471858] [ 11.471968] The buggy address belongs to the physical page: [ 11.472215] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a60 [ 11.472691] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.473061] flags: 0x200000000000040(head|node=0|zone=2) [ 11.473420] page_type: f5(slab) [ 11.473621] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.473928] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.474180] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.474548] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.474868] head: 0200000000000003 ffffea00040a9801 00000000ffffffff 00000000ffffffff [ 11.475256] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.475603] page dumped because: kasan: bad access detected [ 11.475817] [ 11.475946] Memory state around the buggy address: [ 11.476270] ffff888102a62f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.476549] ffff888102a62f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.476768] >ffff888102a63000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.477045] ^ [ 11.477245] ffff888102a63080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.477632] ffff888102a63100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.477958] ==================================================================