Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.471613] ================================================================== [ 16.472002] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.472067] Read of size 1 at addr fff00000c6593000 by task kunit_try_catch/140 [ 16.472115] [ 16.472403] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.472492] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.472624] Hardware name: linux,dummy-virt (DT) [ 16.472863] Call trace: [ 16.472887] show_stack+0x20/0x38 (C) [ 16.473120] dump_stack_lvl+0x8c/0xd0 [ 16.473172] print_report+0x118/0x608 [ 16.473499] kasan_report+0xdc/0x128 [ 16.473547] __asan_report_load1_noabort+0x20/0x30 [ 16.473598] kmalloc_node_oob_right+0x2f4/0x330 [ 16.473645] kunit_try_run_case+0x170/0x3f0 [ 16.473695] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.474017] kthread+0x328/0x630 [ 16.474075] ret_from_fork+0x10/0x20 [ 16.474127] [ 16.474414] Allocated by task 140: [ 16.474449] kasan_save_stack+0x3c/0x68 [ 16.474492] kasan_save_track+0x20/0x40 [ 16.474528] kasan_save_alloc_info+0x40/0x58 [ 16.474630] __kasan_kmalloc+0xd4/0xd8 [ 16.474670] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.474710] kmalloc_node_oob_right+0xbc/0x330 [ 16.474748] kunit_try_run_case+0x170/0x3f0 [ 16.474934] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.475008] kthread+0x328/0x630 [ 16.475232] ret_from_fork+0x10/0x20 [ 16.475287] [ 16.475307] The buggy address belongs to the object at fff00000c6592000 [ 16.475307] which belongs to the cache kmalloc-4k of size 4096 [ 16.475492] The buggy address is located 0 bytes to the right of [ 16.475492] allocated 4096-byte region [fff00000c6592000, fff00000c6593000) [ 16.475958] [ 16.476094] The buggy address belongs to the physical page: [ 16.476310] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106590 [ 16.477023] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.477176] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.477250] page_type: f5(slab) [ 16.477635] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.477906] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.477968] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.478130] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.478406] head: 0bfffe0000000003 ffffc1ffc3196401 00000000ffffffff 00000000ffffffff [ 16.478625] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.478678] page dumped because: kasan: bad access detected [ 16.478708] [ 16.478725] Memory state around the buggy address: [ 16.478763] fff00000c6592f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.478805] fff00000c6592f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.478845] >fff00000c6593000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.479320] ^ [ 16.479429] fff00000c6593080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.479665] fff00000c6593100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.479940] ==================================================================
[ 11.933127] ================================================================== [ 11.933581] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.933900] Read of size 1 at addr ffff8881029ef000 by task kunit_try_catch/157 [ 11.934351] [ 11.934460] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.934505] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.934516] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.934536] Call Trace: [ 11.934548] <TASK> [ 11.934563] dump_stack_lvl+0x73/0xb0 [ 11.934592] print_report+0xd1/0x650 [ 11.934613] ? __virt_addr_valid+0x1db/0x2d0 [ 11.934636] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.934659] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.934682] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.934706] kasan_report+0x141/0x180 [ 11.934727] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.934756] __asan_report_load1_noabort+0x18/0x20 [ 11.934780] kmalloc_node_oob_right+0x369/0x3c0 [ 11.934804] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.934889] ? __schedule+0x10cc/0x2b60 [ 11.934911] ? __pfx_read_tsc+0x10/0x10 [ 11.934932] ? ktime_get_ts64+0x86/0x230 [ 11.934957] kunit_try_run_case+0x1a5/0x480 [ 11.934981] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.935004] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.935026] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.935063] ? __kthread_parkme+0x82/0x180 [ 11.935082] ? preempt_count_sub+0x50/0x80 [ 11.935106] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.935129] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.935153] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.935177] kthread+0x337/0x6f0 [ 11.935196] ? trace_preempt_on+0x20/0xc0 [ 11.935219] ? __pfx_kthread+0x10/0x10 [ 11.935239] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.935259] ? calculate_sigpending+0x7b/0xa0 [ 11.935283] ? __pfx_kthread+0x10/0x10 [ 11.935304] ret_from_fork+0x116/0x1d0 [ 11.935322] ? __pfx_kthread+0x10/0x10 [ 11.935342] ret_from_fork_asm+0x1a/0x30 [ 11.935372] </TASK> [ 11.935382] [ 11.942292] Allocated by task 157: [ 11.942430] kasan_save_stack+0x45/0x70 [ 11.942576] kasan_save_track+0x18/0x40 [ 11.942710] kasan_save_alloc_info+0x3b/0x50 [ 11.942858] __kasan_kmalloc+0xb7/0xc0 [ 11.942988] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.943664] kmalloc_node_oob_right+0xab/0x3c0 [ 11.944220] kunit_try_run_case+0x1a5/0x480 [ 11.944587] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.945217] kthread+0x337/0x6f0 [ 11.945687] ret_from_fork+0x116/0x1d0 [ 11.946233] ret_from_fork_asm+0x1a/0x30 [ 11.946702] [ 11.946955] The buggy address belongs to the object at ffff8881029ee000 [ 11.946955] which belongs to the cache kmalloc-4k of size 4096 [ 11.948448] The buggy address is located 0 bytes to the right of [ 11.948448] allocated 4096-byte region [ffff8881029ee000, ffff8881029ef000) [ 11.949682] [ 11.949757] The buggy address belongs to the physical page: [ 11.949994] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029e8 [ 11.951186] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.951796] flags: 0x200000000000040(head|node=0|zone=2) [ 11.952101] page_type: f5(slab) [ 11.952613] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.953488] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.954617] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.955147] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.955383] head: 0200000000000003 ffffea00040a7a01 00000000ffffffff 00000000ffffffff [ 11.955613] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.955871] page dumped because: kasan: bad access detected [ 11.956782] [ 11.957110] Memory state around the buggy address: [ 11.957694] ffff8881029eef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.958378] ffff8881029eef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.958925] >ffff8881029ef000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.959387] ^ [ 11.959507] ffff8881029ef080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.959720] ffff8881029ef100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.959965] ==================================================================