Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.776433] ================================================================== [ 29.776627] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 29.776786] Read of size 1 at addr fff00000c76c1000 by task kunit_try_catch/151 [ 29.778394] [ 29.778596] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 29.779039] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.779189] Hardware name: linux,dummy-virt (DT) [ 29.779266] Call trace: [ 29.779809] show_stack+0x20/0x38 (C) [ 29.780061] dump_stack_lvl+0x8c/0xd0 [ 29.780634] print_report+0x118/0x608 [ 29.780760] kasan_report+0xdc/0x128 [ 29.780889] __asan_report_load1_noabort+0x20/0x30 [ 29.781023] kmalloc_node_oob_right+0x2f4/0x330 [ 29.782079] kunit_try_run_case+0x170/0x3f0 [ 29.782360] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.782577] kthread+0x328/0x630 [ 29.782691] ret_from_fork+0x10/0x20 [ 29.782920] [ 29.782995] Allocated by task 151: [ 29.783325] kasan_save_stack+0x3c/0x68 [ 29.783616] kasan_save_track+0x20/0x40 [ 29.783837] kasan_save_alloc_info+0x40/0x58 [ 29.784033] __kasan_kmalloc+0xd4/0xd8 [ 29.784205] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 29.784311] kmalloc_node_oob_right+0xbc/0x330 [ 29.784397] kunit_try_run_case+0x170/0x3f0 [ 29.784954] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.785093] kthread+0x328/0x630 [ 29.785247] ret_from_fork+0x10/0x20 [ 29.785355] [ 29.785412] The buggy address belongs to the object at fff00000c76c0000 [ 29.785412] which belongs to the cache kmalloc-4k of size 4096 [ 29.785980] The buggy address is located 0 bytes to the right of [ 29.785980] allocated 4096-byte region [fff00000c76c0000, fff00000c76c1000) [ 29.786274] [ 29.786332] The buggy address belongs to the physical page: [ 29.786645] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076c0 [ 29.787633] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.788080] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.788481] page_type: f5(slab) [ 29.788585] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 29.788712] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 29.788849] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 29.788987] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 29.790141] head: 0bfffe0000000003 ffffc1ffc31db001 00000000ffffffff 00000000ffffffff [ 29.790456] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 29.790571] page dumped because: kasan: bad access detected [ 29.790662] [ 29.790711] Memory state around the buggy address: [ 29.791788] fff00000c76c0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.792404] fff00000c76c0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.793286] >fff00000c76c1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.793424] ^ [ 29.793830] fff00000c76c1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.794134] fff00000c76c1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.794693] ==================================================================
[ 25.929800] ================================================================== [ 25.930556] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 25.931307] Read of size 1 at addr ffff8881038cd000 by task kunit_try_catch/169 [ 25.931891] [ 25.932303] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 25.932431] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.932460] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.932511] Call Trace: [ 25.932539] <TASK> [ 25.932578] dump_stack_lvl+0x73/0xb0 [ 25.932654] print_report+0xd1/0x650 [ 25.932731] ? __virt_addr_valid+0x1db/0x2d0 [ 25.932783] ? kmalloc_node_oob_right+0x369/0x3c0 [ 25.932826] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.932878] ? kmalloc_node_oob_right+0x369/0x3c0 [ 25.932966] kasan_report+0x141/0x180 [ 25.933037] ? kmalloc_node_oob_right+0x369/0x3c0 [ 25.933118] __asan_report_load1_noabort+0x18/0x20 [ 25.933172] kmalloc_node_oob_right+0x369/0x3c0 [ 25.933219] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 25.933262] ? __schedule+0x10cc/0x2b60 [ 25.933292] ? __pfx_read_tsc+0x10/0x10 [ 25.933318] ? ktime_get_ts64+0x86/0x230 [ 25.933346] kunit_try_run_case+0x1a5/0x480 [ 25.933376] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.933400] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.933425] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.933449] ? __kthread_parkme+0x82/0x180 [ 25.933473] ? preempt_count_sub+0x50/0x80 [ 25.933499] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.933524] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.933549] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.933574] kthread+0x337/0x6f0 [ 25.933595] ? trace_preempt_on+0x20/0xc0 [ 25.933621] ? __pfx_kthread+0x10/0x10 [ 25.933643] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.933666] ? calculate_sigpending+0x7b/0xa0 [ 25.933693] ? __pfx_kthread+0x10/0x10 [ 25.933716] ret_from_fork+0x116/0x1d0 [ 25.933737] ? __pfx_kthread+0x10/0x10 [ 25.933759] ret_from_fork_asm+0x1a/0x30 [ 25.933793] </TASK> [ 25.933807] [ 25.946876] Allocated by task 169: [ 25.947267] kasan_save_stack+0x45/0x70 [ 25.947722] kasan_save_track+0x18/0x40 [ 25.948144] kasan_save_alloc_info+0x3b/0x50 [ 25.948888] __kasan_kmalloc+0xb7/0xc0 [ 25.949488] __kmalloc_cache_node_noprof+0x188/0x420 [ 25.950273] kmalloc_node_oob_right+0xab/0x3c0 [ 25.950624] kunit_try_run_case+0x1a5/0x480 [ 25.950917] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.951523] kthread+0x337/0x6f0 [ 25.952477] ret_from_fork+0x116/0x1d0 [ 25.952747] ret_from_fork_asm+0x1a/0x30 [ 25.954378] [ 25.954708] The buggy address belongs to the object at ffff8881038cc000 [ 25.954708] which belongs to the cache kmalloc-4k of size 4096 [ 25.955933] The buggy address is located 0 bytes to the right of [ 25.955933] allocated 4096-byte region [ffff8881038cc000, ffff8881038cd000) [ 25.956886] [ 25.957018] The buggy address belongs to the physical page: [ 25.957435] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038c8 [ 25.957966] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 25.959847] flags: 0x200000000000040(head|node=0|zone=2) [ 25.960749] page_type: f5(slab) [ 25.961271] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 25.961621] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 25.962661] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 25.963288] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 25.963586] head: 0200000000000003 ffffea00040e3201 00000000ffffffff 00000000ffffffff [ 25.964534] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 25.965451] page dumped because: kasan: bad access detected [ 25.965885] [ 25.966724] Memory state around the buggy address: [ 25.967059] ffff8881038ccf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.967640] ffff8881038ccf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.968148] >ffff8881038cd000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.968643] ^ [ 25.968889] ffff8881038cd080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.969963] ffff8881038cd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.970683] ==================================================================