Date
July 10, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.667964] ================================================================== [ 15.668047] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 15.668190] Read of size 1 at addr fff00000c6567000 by task kunit_try_catch/140 [ 15.668240] [ 15.668274] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 15.668738] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.668793] Hardware name: linux,dummy-virt (DT) [ 15.668825] Call trace: [ 15.668848] show_stack+0x20/0x38 (C) [ 15.668901] dump_stack_lvl+0x8c/0xd0 [ 15.668950] print_report+0x118/0x608 [ 15.669403] kasan_report+0xdc/0x128 [ 15.669470] __asan_report_load1_noabort+0x20/0x30 [ 15.669523] kmalloc_node_oob_right+0x2f4/0x330 [ 15.669837] kunit_try_run_case+0x170/0x3f0 [ 15.669982] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.670038] kthread+0x328/0x630 [ 15.670091] ret_from_fork+0x10/0x20 [ 15.670141] [ 15.670344] Allocated by task 140: [ 15.670377] kasan_save_stack+0x3c/0x68 [ 15.670475] kasan_save_track+0x20/0x40 [ 15.670714] kasan_save_alloc_info+0x40/0x58 [ 15.670763] __kasan_kmalloc+0xd4/0xd8 [ 15.670799] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 15.670839] kmalloc_node_oob_right+0xbc/0x330 [ 15.670877] kunit_try_run_case+0x170/0x3f0 [ 15.671361] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.671626] kthread+0x328/0x630 [ 15.671660] ret_from_fork+0x10/0x20 [ 15.672075] [ 15.672111] The buggy address belongs to the object at fff00000c6566000 [ 15.672111] which belongs to the cache kmalloc-4k of size 4096 [ 15.672217] The buggy address is located 0 bytes to the right of [ 15.672217] allocated 4096-byte region [fff00000c6566000, fff00000c6567000) [ 15.672423] [ 15.672444] The buggy address belongs to the physical page: [ 15.672936] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106560 [ 15.673839] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.673897] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.673975] page_type: f5(slab) [ 15.674016] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 15.674322] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.674388] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 15.674436] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 15.674483] head: 0bfffe0000000003 ffffc1ffc3195801 00000000ffffffff 00000000ffffffff [ 15.674530] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.675186] page dumped because: kasan: bad access detected [ 15.675230] [ 15.675248] Memory state around the buggy address: [ 15.675306] fff00000c6566f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.675536] fff00000c6566f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.675581] >fff00000c6567000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.675744] ^ [ 15.675774] fff00000c6567080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.676028] fff00000c6567100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.676066] ==================================================================
[ 12.179568] ================================================================== [ 12.180039] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 12.180356] Read of size 1 at addr ffff8881029e3000 by task kunit_try_catch/157 [ 12.180837] [ 12.180961] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.181004] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.181015] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.181034] Call Trace: [ 12.181045] <TASK> [ 12.181060] dump_stack_lvl+0x73/0xb0 [ 12.181101] print_report+0xd1/0x650 [ 12.181122] ? __virt_addr_valid+0x1db/0x2d0 [ 12.181144] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.181179] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.181202] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.181225] kasan_report+0x141/0x180 [ 12.181246] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.181274] __asan_report_load1_noabort+0x18/0x20 [ 12.181299] kmalloc_node_oob_right+0x369/0x3c0 [ 12.181330] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 12.181355] ? __schedule+0x10cc/0x2b60 [ 12.181393] ? __pfx_read_tsc+0x10/0x10 [ 12.181414] ? ktime_get_ts64+0x86/0x230 [ 12.181438] kunit_try_run_case+0x1a5/0x480 [ 12.181461] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.181484] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.181507] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.181548] ? __kthread_parkme+0x82/0x180 [ 12.181569] ? preempt_count_sub+0x50/0x80 [ 12.181592] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.181627] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.181651] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.181676] kthread+0x337/0x6f0 [ 12.181694] ? trace_preempt_on+0x20/0xc0 [ 12.181718] ? __pfx_kthread+0x10/0x10 [ 12.181738] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.181759] ? calculate_sigpending+0x7b/0xa0 [ 12.181783] ? __pfx_kthread+0x10/0x10 [ 12.181804] ret_from_fork+0x116/0x1d0 [ 12.181821] ? __pfx_kthread+0x10/0x10 [ 12.181842] ret_from_fork_asm+0x1a/0x30 [ 12.181872] </TASK> [ 12.181881] [ 12.188988] Allocated by task 157: [ 12.189170] kasan_save_stack+0x45/0x70 [ 12.189340] kasan_save_track+0x18/0x40 [ 12.189649] kasan_save_alloc_info+0x3b/0x50 [ 12.189827] __kasan_kmalloc+0xb7/0xc0 [ 12.189959] __kmalloc_cache_node_noprof+0x188/0x420 [ 12.190217] kmalloc_node_oob_right+0xab/0x3c0 [ 12.190443] kunit_try_run_case+0x1a5/0x480 [ 12.190649] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.190927] kthread+0x337/0x6f0 [ 12.191060] ret_from_fork+0x116/0x1d0 [ 12.191265] ret_from_fork_asm+0x1a/0x30 [ 12.191420] [ 12.191491] The buggy address belongs to the object at ffff8881029e2000 [ 12.191491] which belongs to the cache kmalloc-4k of size 4096 [ 12.191936] The buggy address is located 0 bytes to the right of [ 12.191936] allocated 4096-byte region [ffff8881029e2000, ffff8881029e3000) [ 12.192572] [ 12.192645] The buggy address belongs to the physical page: [ 12.192867] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029e0 [ 12.193601] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.193980] flags: 0x200000000000040(head|node=0|zone=2) [ 12.194294] page_type: f5(slab) [ 12.194428] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.194819] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.195205] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.195597] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.195899] head: 0200000000000003 ffffea00040a7801 00000000ffffffff 00000000ffffffff [ 12.196253] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.196627] page dumped because: kasan: bad access detected [ 12.196862] [ 12.196968] Memory state around the buggy address: [ 12.197168] ffff8881029e2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.197464] ffff8881029e2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.197774] >ffff8881029e3000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.198058] ^ [ 12.198202] ffff8881029e3080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.198477] ffff8881029e3100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.198932] ==================================================================