Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.337388] ================================================================== [ 16.337455] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.337513] Read of size 1 at addr fff00000c6503000 by task kunit_try_catch/141 [ 16.338073] [ 16.338425] CPU: 0 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.338666] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.338825] Hardware name: linux,dummy-virt (DT) [ 16.338879] Call trace: [ 16.338902] show_stack+0x20/0x38 (C) [ 16.338956] dump_stack_lvl+0x8c/0xd0 [ 16.339002] print_report+0x118/0x608 [ 16.339048] kasan_report+0xdc/0x128 [ 16.339092] __asan_report_load1_noabort+0x20/0x30 [ 16.339143] kmalloc_node_oob_right+0x2f4/0x330 [ 16.339190] kunit_try_run_case+0x170/0x3f0 [ 16.339238] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.339293] kthread+0x328/0x630 [ 16.339340] ret_from_fork+0x10/0x20 [ 16.339412] [ 16.339431] Allocated by task 141: [ 16.339459] kasan_save_stack+0x3c/0x68 [ 16.339778] kasan_save_track+0x20/0x40 [ 16.339818] kasan_save_alloc_info+0x40/0x58 [ 16.339868] __kasan_kmalloc+0xd4/0xd8 [ 16.339903] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.339943] kmalloc_node_oob_right+0xbc/0x330 [ 16.340355] kunit_try_run_case+0x170/0x3f0 [ 16.340465] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.340508] kthread+0x328/0x630 [ 16.340556] ret_from_fork+0x10/0x20 [ 16.340636] [ 16.340720] The buggy address belongs to the object at fff00000c6502000 [ 16.340720] which belongs to the cache kmalloc-4k of size 4096 [ 16.340778] The buggy address is located 0 bytes to the right of [ 16.340778] allocated 4096-byte region [fff00000c6502000, fff00000c6503000) [ 16.341080] [ 16.341201] The buggy address belongs to the physical page: [ 16.341286] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106500 [ 16.341626] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.341898] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.342334] page_type: f5(slab) [ 16.342374] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.342509] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.342786] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.342890] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.342964] head: 0bfffe0000000003 ffffc1ffc3194001 00000000ffffffff 00000000ffffffff [ 16.343011] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.343071] page dumped because: kasan: bad access detected [ 16.343339] [ 16.343518] Memory state around the buggy address: [ 16.343555] fff00000c6502f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.343875] fff00000c6502f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.344051] >fff00000c6503000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.344291] ^ [ 16.344392] fff00000c6503080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.344437] fff00000c6503100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.344475] ==================================================================
[ 11.777766] ================================================================== [ 11.778338] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.778641] Read of size 1 at addr ffff8881037a3000 by task kunit_try_catch/157 [ 11.778941] [ 11.779083] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.779126] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.779137] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.779156] Call Trace: [ 11.779167] <TASK> [ 11.779195] dump_stack_lvl+0x73/0xb0 [ 11.779223] print_report+0xd1/0x650 [ 11.779244] ? __virt_addr_valid+0x1db/0x2d0 [ 11.779266] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.779289] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.779311] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.779335] kasan_report+0x141/0x180 [ 11.779356] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.779385] __asan_report_load1_noabort+0x18/0x20 [ 11.779409] kmalloc_node_oob_right+0x369/0x3c0 [ 11.779433] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.779457] ? __schedule+0x10cc/0x2b60 [ 11.779478] ? __pfx_read_tsc+0x10/0x10 [ 11.779498] ? ktime_get_ts64+0x86/0x230 [ 11.779521] kunit_try_run_case+0x1a5/0x480 [ 11.779545] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.779567] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.779589] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.779612] ? __kthread_parkme+0x82/0x180 [ 11.779632] ? preempt_count_sub+0x50/0x80 [ 11.779655] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.779679] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.779702] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.779727] kthread+0x337/0x6f0 [ 11.779746] ? trace_preempt_on+0x20/0xc0 [ 11.779776] ? __pfx_kthread+0x10/0x10 [ 11.779796] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.779817] ? calculate_sigpending+0x7b/0xa0 [ 11.779840] ? __pfx_kthread+0x10/0x10 [ 11.779861] ret_from_fork+0x116/0x1d0 [ 11.779878] ? __pfx_kthread+0x10/0x10 [ 11.779898] ret_from_fork_asm+0x1a/0x30 [ 11.779941] </TASK> [ 11.779949] [ 11.787381] Allocated by task 157: [ 11.787610] kasan_save_stack+0x45/0x70 [ 11.787804] kasan_save_track+0x18/0x40 [ 11.788020] kasan_save_alloc_info+0x3b/0x50 [ 11.788233] __kasan_kmalloc+0xb7/0xc0 [ 11.788519] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.788703] kmalloc_node_oob_right+0xab/0x3c0 [ 11.789070] kunit_try_run_case+0x1a5/0x480 [ 11.789310] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.789558] kthread+0x337/0x6f0 [ 11.789704] ret_from_fork+0x116/0x1d0 [ 11.789883] ret_from_fork_asm+0x1a/0x30 [ 11.790168] [ 11.790274] The buggy address belongs to the object at ffff8881037a2000 [ 11.790274] which belongs to the cache kmalloc-4k of size 4096 [ 11.790685] The buggy address is located 0 bytes to the right of [ 11.790685] allocated 4096-byte region [ffff8881037a2000, ffff8881037a3000) [ 11.791259] [ 11.791341] The buggy address belongs to the physical page: [ 11.791670] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1037a0 [ 11.792173] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.792409] flags: 0x200000000000040(head|node=0|zone=2) [ 11.792655] page_type: f5(slab) [ 11.793007] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.793461] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.793815] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.794148] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.794379] head: 0200000000000003 ffffea00040de801 00000000ffffffff 00000000ffffffff [ 11.794615] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.795109] page dumped because: kasan: bad access detected [ 11.795362] [ 11.795476] Memory state around the buggy address: [ 11.795698] ffff8881037a2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.796052] ffff8881037a2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.796411] >ffff8881037a3000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.796649] ^ [ 11.796941] ffff8881037a3080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.797192] ffff8881037a3100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.797642] ==================================================================