Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.867241] ================================================================== [ 30.867592] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 30.867834] Read of size 1 at addr fff00000c999f000 by task kunit_try_catch/171 [ 30.867886] [ 30.867919] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 30.868403] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.868518] Hardware name: linux,dummy-virt (DT) [ 30.868711] Call trace: [ 30.868736] show_stack+0x20/0x38 (C) [ 30.868787] dump_stack_lvl+0x8c/0xd0 [ 30.868833] print_report+0x118/0x5d0 [ 30.868903] kasan_report+0xdc/0x128 [ 30.868950] __asan_report_load1_noabort+0x20/0x30 [ 30.869023] kmalloc_node_oob_right+0x2f4/0x330 [ 30.869172] kunit_try_run_case+0x170/0x3f0 [ 30.869238] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.869291] kthread+0x328/0x630 [ 30.869332] ret_from_fork+0x10/0x20 [ 30.869379] [ 30.869397] Allocated by task 171: [ 30.869425] kasan_save_stack+0x3c/0x68 [ 30.869465] kasan_save_track+0x20/0x40 [ 30.869504] kasan_save_alloc_info+0x40/0x58 [ 30.869998] __kasan_kmalloc+0xd4/0xd8 [ 30.870123] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 30.870166] kmalloc_node_oob_right+0xbc/0x330 [ 30.870474] kunit_try_run_case+0x170/0x3f0 [ 30.870600] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.870706] kthread+0x328/0x630 [ 30.870765] ret_from_fork+0x10/0x20 [ 30.870827] [ 30.871283] The buggy address belongs to the object at fff00000c999e000 [ 30.871283] which belongs to the cache kmalloc-4k of size 4096 [ 30.871450] The buggy address is located 0 bytes to the right of [ 30.871450] allocated 4096-byte region [fff00000c999e000, fff00000c999f000) [ 30.871547] [ 30.871567] The buggy address belongs to the physical page: [ 30.871675] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109998 [ 30.872196] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.872267] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.872334] page_type: f5(slab) [ 30.872372] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 30.872421] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 30.872475] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 30.872522] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 30.872659] head: 0bfffe0000000003 ffffc1ffc3266601 00000000ffffffff 00000000ffffffff [ 30.872708] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 30.872769] page dumped because: kasan: bad access detected [ 30.872801] [ 30.872819] Memory state around the buggy address: [ 30.872850] fff00000c999ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.872891] fff00000c999ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.872931] >fff00000c999f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.873387] ^ [ 30.873617] fff00000c999f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.873983] fff00000c999f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.874058] ==================================================================
[ 22.756349] ================================================================== [ 22.756727] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 22.756989] Read of size 1 at addr ffff888106213000 by task kunit_try_catch/188 [ 22.757209] [ 22.757317] CPU: 0 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 22.757370] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.757382] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.757405] Call Trace: [ 22.757419] <TASK> [ 22.757438] dump_stack_lvl+0x73/0xb0 [ 22.757468] print_report+0xd1/0x610 [ 22.757490] ? __virt_addr_valid+0x1db/0x2d0 [ 22.757514] ? kmalloc_node_oob_right+0x369/0x3c0 [ 22.757538] ? kasan_complete_mode_report_info+0x2a/0x200 [ 22.757565] ? kmalloc_node_oob_right+0x369/0x3c0 [ 22.757590] kasan_report+0x141/0x180 [ 22.757612] ? kmalloc_node_oob_right+0x369/0x3c0 [ 22.757641] __asan_report_load1_noabort+0x18/0x20 [ 22.757667] kmalloc_node_oob_right+0x369/0x3c0 [ 22.757692] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 22.757716] ? __schedule+0x10cc/0x2b60 [ 22.757745] ? __pfx_read_tsc+0x10/0x10 [ 22.757769] ? ktime_get_ts64+0x86/0x230 [ 22.757794] kunit_try_run_case+0x1a5/0x480 [ 22.757817] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.757836] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.757856] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.757884] ? __kthread_parkme+0x82/0x180 [ 22.757904] ? preempt_count_sub+0x50/0x80 [ 22.757928] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.757949] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.757975] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.758001] kthread+0x337/0x6f0 [ 22.758021] ? trace_preempt_on+0x20/0xc0 [ 22.758045] ? __pfx_kthread+0x10/0x10 [ 22.758067] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.758092] ? calculate_sigpending+0x7b/0xa0 [ 22.758118] ? __pfx_kthread+0x10/0x10 [ 22.758141] ret_from_fork+0x116/0x1d0 [ 22.758160] ? __pfx_kthread+0x10/0x10 [ 22.758181] ret_from_fork_asm+0x1a/0x30 [ 22.758214] </TASK> [ 22.758226] [ 22.766421] Allocated by task 188: [ 22.766642] kasan_save_stack+0x45/0x70 [ 22.766945] kasan_save_track+0x18/0x40 [ 22.767190] kasan_save_alloc_info+0x3b/0x50 [ 22.767396] __kasan_kmalloc+0xb7/0xc0 [ 22.767599] __kmalloc_cache_node_noprof+0x188/0x420 [ 22.767933] kmalloc_node_oob_right+0xab/0x3c0 [ 22.768146] kunit_try_run_case+0x1a5/0x480 [ 22.768353] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.768650] kthread+0x337/0x6f0 [ 22.768907] ret_from_fork+0x116/0x1d0 [ 22.769135] ret_from_fork_asm+0x1a/0x30 [ 22.769395] [ 22.769513] The buggy address belongs to the object at ffff888106212000 [ 22.769513] which belongs to the cache kmalloc-4k of size 4096 [ 22.770173] The buggy address is located 0 bytes to the right of [ 22.770173] allocated 4096-byte region [ffff888106212000, ffff888106213000) [ 22.770720] [ 22.770902] The buggy address belongs to the physical page: [ 22.771218] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106210 [ 22.771647] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.772141] flags: 0x200000000000040(head|node=0|zone=2) [ 22.772511] page_type: f5(slab) [ 22.772679] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 22.773106] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 22.773469] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 22.773955] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 22.774427] head: 0200000000000003 ffffea0004188401 00000000ffffffff 00000000ffffffff [ 22.774806] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 22.775199] page dumped because: kasan: bad access detected [ 22.775499] [ 22.775590] Memory state around the buggy address: [ 22.775926] ffff888106212f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.776193] ffff888106212f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.776491] >ffff888106213000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.776799] ^ [ 22.776954] ffff888106213080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.777248] ffff888106213100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.777453] ==================================================================