Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.842347] ================================================================== [ 16.842419] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.842473] Read of size 1 at addr fff00000c40fd000 by task kunit_try_catch/142 [ 16.842876] [ 16.843037] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 16.843259] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.844022] Hardware name: linux,dummy-virt (DT) [ 16.844096] Call trace: [ 16.844151] show_stack+0x20/0x38 (C) [ 16.844242] dump_stack_lvl+0x8c/0xd0 [ 16.844326] print_report+0x118/0x5d0 [ 16.844409] kasan_report+0xdc/0x128 [ 16.844493] __asan_report_load1_noabort+0x20/0x30 [ 16.844601] kmalloc_node_oob_right+0x2f4/0x330 [ 16.845041] kunit_try_run_case+0x170/0x3f0 [ 16.845140] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.845369] kthread+0x328/0x630 [ 16.845496] ret_from_fork+0x10/0x20 [ 16.845644] [ 16.845714] Allocated by task 142: [ 16.845819] kasan_save_stack+0x3c/0x68 [ 16.845910] kasan_save_track+0x20/0x40 [ 16.845994] kasan_save_alloc_info+0x40/0x58 [ 16.846424] __kasan_kmalloc+0xd4/0xd8 [ 16.846526] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.846925] kmalloc_node_oob_right+0xbc/0x330 [ 16.847086] kunit_try_run_case+0x170/0x3f0 [ 16.847179] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.847220] kthread+0x328/0x630 [ 16.847262] ret_from_fork+0x10/0x20 [ 16.847307] [ 16.847616] The buggy address belongs to the object at fff00000c40fc000 [ 16.847616] which belongs to the cache kmalloc-4k of size 4096 [ 16.847699] The buggy address is located 0 bytes to the right of [ 16.847699] allocated 4096-byte region [fff00000c40fc000, fff00000c40fd000) [ 16.848033] [ 16.848107] The buggy address belongs to the physical page: [ 16.848390] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1040f8 [ 16.848698] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.848776] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.848886] page_type: f5(slab) [ 16.848925] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.848973] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.849028] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.849075] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.849122] head: 0bfffe0000000003 ffffc1ffc3103e01 00000000ffffffff 00000000ffffffff [ 16.849168] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.849211] page dumped because: kasan: bad access detected [ 16.849241] [ 16.849274] Memory state around the buggy address: [ 16.849325] fff00000c40fcf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.849367] fff00000c40fcf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.849408] >fff00000c40fd000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.849457] ^ [ 16.849484] fff00000c40fd080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.849525] fff00000c40fd100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.849561] ==================================================================
[ 10.430198] ================================================================== [ 10.431446] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.432007] Read of size 1 at addr ffff888102dcb000 by task kunit_try_catch/160 [ 10.432249] [ 10.432353] CPU: 0 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 10.432409] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.432420] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.432441] Call Trace: [ 10.432454] <TASK> [ 10.432470] dump_stack_lvl+0x73/0xb0 [ 10.432497] print_report+0xd1/0x610 [ 10.432519] ? __virt_addr_valid+0x1db/0x2d0 [ 10.432542] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.432560] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.432582] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.432601] kasan_report+0x141/0x180 [ 10.432623] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.432647] __asan_report_load1_noabort+0x18/0x20 [ 10.432667] kmalloc_node_oob_right+0x369/0x3c0 [ 10.432687] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.432707] ? __schedule+0x10c6/0x2b60 [ 10.432730] ? __pfx_read_tsc+0x10/0x10 [ 10.432750] ? ktime_get_ts64+0x86/0x230 [ 10.432776] kunit_try_run_case+0x1a5/0x480 [ 10.432797] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.432868] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.432892] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.432920] ? __kthread_parkme+0x82/0x180 [ 10.432942] ? preempt_count_sub+0x50/0x80 [ 10.432967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.432987] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.433009] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.433032] kthread+0x337/0x6f0 [ 10.433048] ? trace_preempt_on+0x20/0xc0 [ 10.433071] ? __pfx_kthread+0x10/0x10 [ 10.433088] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.433109] ? calculate_sigpending+0x7b/0xa0 [ 10.433130] ? __pfx_kthread+0x10/0x10 [ 10.433148] ret_from_fork+0x41/0x80 [ 10.433167] ? __pfx_kthread+0x10/0x10 [ 10.433184] ret_from_fork_asm+0x1a/0x30 [ 10.433214] </TASK> [ 10.433237] [ 10.443427] Allocated by task 160: [ 10.443779] kasan_save_stack+0x45/0x70 [ 10.444128] kasan_save_track+0x18/0x40 [ 10.444310] kasan_save_alloc_info+0x3b/0x50 [ 10.444506] __kasan_kmalloc+0xb7/0xc0 [ 10.444696] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.444950] kmalloc_node_oob_right+0xab/0x3c0 [ 10.445099] kunit_try_run_case+0x1a5/0x480 [ 10.445315] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.445581] kthread+0x337/0x6f0 [ 10.445780] ret_from_fork+0x41/0x80 [ 10.445926] ret_from_fork_asm+0x1a/0x30 [ 10.446110] [ 10.446206] The buggy address belongs to the object at ffff888102dca000 [ 10.446206] which belongs to the cache kmalloc-4k of size 4096 [ 10.446841] The buggy address is located 0 bytes to the right of [ 10.446841] allocated 4096-byte region [ffff888102dca000, ffff888102dcb000) [ 10.447346] [ 10.447444] The buggy address belongs to the physical page: [ 10.447704] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102dc8 [ 10.448260] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.449118] flags: 0x200000000000040(head|node=0|zone=2) [ 10.449472] page_type: f5(slab) [ 10.449666] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.450002] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.450369] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.450750] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.451198] head: 0200000000000003 ffffea00040b7201 00000000ffffffff 00000000ffffffff [ 10.451615] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.451975] page dumped because: kasan: bad access detected [ 10.452336] [ 10.452439] Memory state around the buggy address: [ 10.452672] ffff888102dcaf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.452998] ffff888102dcaf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.453351] >ffff888102dcb000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.453614] ^ [ 10.453843] ffff888102dcb080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.454397] ffff888102dcb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.454887] ==================================================================