Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.715461] ================================================================== [ 18.715642] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 18.715791] Read of size 1 at addr fff00000c773b000 by task kunit_try_catch/149 [ 18.715957] [ 18.716040] CPU: 0 UID: 0 PID: 149 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 18.716274] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.716338] Hardware name: linux,dummy-virt (DT) [ 18.716408] Call trace: [ 18.716455] show_stack+0x20/0x38 (C) [ 18.716560] dump_stack_lvl+0x8c/0xd0 [ 18.717010] print_report+0x118/0x608 [ 18.717129] kasan_report+0xdc/0x128 [ 18.717238] __asan_report_load1_noabort+0x20/0x30 [ 18.717361] kmalloc_node_oob_right+0x2f4/0x330 [ 18.717509] kunit_try_run_case+0x170/0x3f0 [ 18.717621] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.717749] kthread+0x328/0x630 [ 18.717864] ret_from_fork+0x10/0x20 [ 18.717967] [ 18.718034] Allocated by task 149: [ 18.718099] kasan_save_stack+0x3c/0x68 [ 18.718194] kasan_save_track+0x20/0x40 [ 18.718470] kasan_save_alloc_info+0x40/0x58 [ 18.718578] __kasan_kmalloc+0xd4/0xd8 [ 18.718698] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 18.718843] kmalloc_node_oob_right+0xbc/0x330 [ 18.718973] kunit_try_run_case+0x170/0x3f0 [ 18.719092] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.719225] kthread+0x328/0x630 [ 18.719328] ret_from_fork+0x10/0x20 [ 18.719443] [ 18.719505] The buggy address belongs to the object at fff00000c773a000 [ 18.719505] which belongs to the cache kmalloc-4k of size 4096 [ 18.719698] The buggy address is located 0 bytes to the right of [ 18.719698] allocated 4096-byte region [fff00000c773a000, fff00000c773b000) [ 18.719896] [ 18.719946] The buggy address belongs to the physical page: [ 18.720167] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107738 [ 18.720536] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.720808] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.720981] page_type: f5(slab) [ 18.721486] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.721944] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.722137] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.722277] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.722413] head: 0bfffe0000000003 ffffc1ffc31dce01 00000000ffffffff 00000000ffffffff [ 18.722547] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.722661] page dumped because: kasan: bad access detected [ 18.722732] [ 18.722772] Memory state around the buggy address: [ 18.723888] fff00000c773af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.724066] fff00000c773af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.724188] >fff00000c773b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.724338] ^ [ 18.724498] fff00000c773b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.724652] fff00000c773b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.724745] ==================================================================
[ 10.759448] ================================================================== [ 10.760322] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.760771] Read of size 1 at addr ffff888102bc5000 by task kunit_try_catch/165 [ 10.761190] [ 10.761341] CPU: 0 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 10.761389] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.761400] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.761421] Call Trace: [ 10.761434] <TASK> [ 10.761449] dump_stack_lvl+0x73/0xb0 [ 10.761477] print_report+0xd1/0x650 [ 10.761499] ? __virt_addr_valid+0x1db/0x2d0 [ 10.761520] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.761542] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.761564] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.761586] kasan_report+0x141/0x180 [ 10.761607] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.761634] __asan_report_load1_noabort+0x18/0x20 [ 10.761656] kmalloc_node_oob_right+0x369/0x3c0 [ 10.761679] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.761707] ? __schedule+0x10cc/0x2b60 [ 10.761728] ? __pfx_read_tsc+0x10/0x10 [ 10.761748] ? ktime_get_ts64+0x86/0x230 [ 10.761772] kunit_try_run_case+0x1a5/0x480 [ 10.761795] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.761816] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.761837] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.761858] ? __kthread_parkme+0x82/0x180 [ 10.761878] ? preempt_count_sub+0x50/0x80 [ 10.761900] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.761923] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.761957] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.761979] kthread+0x337/0x6f0 [ 10.761997] ? trace_preempt_on+0x20/0xc0 [ 10.762020] ? __pfx_kthread+0x10/0x10 [ 10.762040] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.762059] ? calculate_sigpending+0x7b/0xa0 [ 10.762083] ? __pfx_kthread+0x10/0x10 [ 10.762103] ret_from_fork+0x116/0x1d0 [ 10.762120] ? __pfx_kthread+0x10/0x10 [ 10.762140] ret_from_fork_asm+0x1a/0x30 [ 10.762170] </TASK> [ 10.762181] [ 10.771179] Allocated by task 165: [ 10.771567] kasan_save_stack+0x45/0x70 [ 10.771767] kasan_save_track+0x18/0x40 [ 10.772072] kasan_save_alloc_info+0x3b/0x50 [ 10.772353] __kasan_kmalloc+0xb7/0xc0 [ 10.772575] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.772797] kmalloc_node_oob_right+0xab/0x3c0 [ 10.773007] kunit_try_run_case+0x1a5/0x480 [ 10.773191] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.773638] kthread+0x337/0x6f0 [ 10.773871] ret_from_fork+0x116/0x1d0 [ 10.774027] ret_from_fork_asm+0x1a/0x30 [ 10.774226] [ 10.774293] The buggy address belongs to the object at ffff888102bc4000 [ 10.774293] which belongs to the cache kmalloc-4k of size 4096 [ 10.775033] The buggy address is located 0 bytes to the right of [ 10.775033] allocated 4096-byte region [ffff888102bc4000, ffff888102bc5000) [ 10.775635] [ 10.775717] The buggy address belongs to the physical page: [ 10.776093] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bc0 [ 10.776818] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.777138] flags: 0x200000000000040(head|node=0|zone=2) [ 10.777589] page_type: f5(slab) [ 10.777750] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.778187] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.778617] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.778991] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.779302] head: 0200000000000003 ffffea00040af001 00000000ffffffff 00000000ffffffff [ 10.779720] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.780072] page dumped because: kasan: bad access detected [ 10.780391] [ 10.780552] Memory state around the buggy address: [ 10.780899] ffff888102bc4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.781298] ffff888102bc4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.781563] >ffff888102bc5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.781973] ^ [ 10.782123] ffff888102bc5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.782513] ffff888102bc5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.782911] ==================================================================