Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 14.882616] ================================================================== [ 14.882675] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 14.882725] Read of size 1 at addr fff00000c6263000 by task kunit_try_catch/141 [ 14.882792] [ 14.882835] CPU: 1 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 14.882914] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.882940] Hardware name: linux,dummy-virt (DT) [ 14.882979] Call trace: [ 14.883001] show_stack+0x20/0x38 (C) [ 14.883058] dump_stack_lvl+0x8c/0xd0 [ 14.883106] print_report+0x118/0x5d0 [ 14.883160] kasan_report+0xdc/0x128 [ 14.883218] __asan_report_load1_noabort+0x20/0x30 [ 14.883269] kmalloc_node_oob_right+0x2f4/0x330 [ 14.883316] kunit_try_run_case+0x170/0x3f0 [ 14.883362] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 14.883422] kthread+0x328/0x630 [ 14.883464] ret_from_fork+0x10/0x20 [ 14.883510] [ 14.883528] Allocated by task 141: [ 14.883555] kasan_save_stack+0x3c/0x68 [ 14.883593] kasan_save_track+0x20/0x40 [ 14.883629] kasan_save_alloc_info+0x40/0x58 [ 14.883673] __kasan_kmalloc+0xd4/0xd8 [ 14.883708] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 14.883756] kmalloc_node_oob_right+0xbc/0x330 [ 14.883794] kunit_try_run_case+0x170/0x3f0 [ 14.883830] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 14.883871] kthread+0x328/0x630 [ 14.883907] ret_from_fork+0x10/0x20 [ 14.883949] [ 14.883968] The buggy address belongs to the object at fff00000c6262000 [ 14.883968] which belongs to the cache kmalloc-4k of size 4096 [ 14.884023] The buggy address is located 0 bytes to the right of [ 14.884023] allocated 4096-byte region [fff00000c6262000, fff00000c6263000) [ 14.884091] [ 14.884111] The buggy address belongs to the physical page: [ 14.884174] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106260 [ 14.884335] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 14.884381] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 14.884440] page_type: f5(slab) [ 14.884477] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 14.884525] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 14.884578] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 14.885027] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 14.885157] head: 0bfffe0000000003 ffffc1ffc3189801 00000000ffffffff 00000000ffffffff [ 14.885259] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 14.885331] page dumped because: kasan: bad access detected [ 14.885429] [ 14.885458] Memory state around the buggy address: [ 14.885503] fff00000c6262f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.885546] fff00000c6262f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.885587] >fff00000c6263000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.885622] ^ [ 14.885649] fff00000c6263080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.885689] fff00000c6263100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.885725] ==================================================================
[ 12.312598] ================================================================== [ 12.313154] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 12.313404] Read of size 1 at addr ffff8881025c5000 by task kunit_try_catch/158 [ 12.313641] [ 12.313741] CPU: 0 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.313788] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.313799] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.313821] Call Trace: [ 12.313832] <TASK> [ 12.313847] dump_stack_lvl+0x73/0xb0 [ 12.313875] print_report+0xd1/0x610 [ 12.313896] ? __virt_addr_valid+0x1db/0x2d0 [ 12.313918] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.313939] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.313960] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.313983] kasan_report+0x141/0x180 [ 12.314003] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.314030] __asan_report_load1_noabort+0x18/0x20 [ 12.314052] kmalloc_node_oob_right+0x369/0x3c0 [ 12.314075] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 12.314098] ? __schedule+0x10c6/0x2b60 [ 12.314126] ? __pfx_read_tsc+0x10/0x10 [ 12.314146] ? ktime_get_ts64+0x86/0x230 [ 12.314170] kunit_try_run_case+0x1a5/0x480 [ 12.314193] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.314214] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.314236] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.314258] ? __kthread_parkme+0x82/0x180 [ 12.314277] ? preempt_count_sub+0x50/0x80 [ 12.314299] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.314321] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.314343] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.314365] kthread+0x337/0x6f0 [ 12.314384] ? trace_preempt_on+0x20/0xc0 [ 12.314405] ? __pfx_kthread+0x10/0x10 [ 12.314425] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.314445] ? calculate_sigpending+0x7b/0xa0 [ 12.314467] ? __pfx_kthread+0x10/0x10 [ 12.314924] ret_from_fork+0x116/0x1d0 [ 12.314945] ? __pfx_kthread+0x10/0x10 [ 12.314981] ret_from_fork_asm+0x1a/0x30 [ 12.315231] </TASK> [ 12.315250] [ 12.328651] Allocated by task 158: [ 12.328903] kasan_save_stack+0x45/0x70 [ 12.329123] kasan_save_track+0x18/0x40 [ 12.329690] kasan_save_alloc_info+0x3b/0x50 [ 12.329970] __kasan_kmalloc+0xb7/0xc0 [ 12.330317] __kmalloc_cache_node_noprof+0x188/0x420 [ 12.330576] kmalloc_node_oob_right+0xab/0x3c0 [ 12.331085] kunit_try_run_case+0x1a5/0x480 [ 12.331285] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.331688] kthread+0x337/0x6f0 [ 12.331901] ret_from_fork+0x116/0x1d0 [ 12.332425] ret_from_fork_asm+0x1a/0x30 [ 12.332842] [ 12.333000] The buggy address belongs to the object at ffff8881025c4000 [ 12.333000] which belongs to the cache kmalloc-4k of size 4096 [ 12.333971] The buggy address is located 0 bytes to the right of [ 12.333971] allocated 4096-byte region [ffff8881025c4000, ffff8881025c5000) [ 12.334958] [ 12.335293] The buggy address belongs to the physical page: [ 12.335600] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025c0 [ 12.336483] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.336796] flags: 0x200000000000040(head|node=0|zone=2) [ 12.337448] page_type: f5(slab) [ 12.337617] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.338273] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.338607] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.339362] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.339697] head: 0200000000000003 ffffea0004097001 00000000ffffffff 00000000ffffffff [ 12.340274] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.340696] page dumped because: kasan: bad access detected [ 12.341045] [ 12.341356] Memory state around the buggy address: [ 12.341601] ffff8881025c4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.342139] ffff8881025c4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.342584] >ffff8881025c5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.342942] ^ [ 12.343433] ffff8881025c5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.343810] ffff8881025c5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.344382] ==================================================================