Date
July 8, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.098976] ================================================================== [ 31.100497] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 31.100918] Write of size 16 at addr fff00000c7981640 by task kunit_try_catch/197 [ 31.100968] [ 31.101616] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT [ 31.102238] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.102401] Hardware name: linux,dummy-virt (DT) [ 31.102921] Call trace: [ 31.103338] show_stack+0x20/0x38 (C) [ 31.103583] dump_stack_lvl+0x8c/0xd0 [ 31.104256] print_report+0x118/0x5d0 [ 31.104327] kasan_report+0xdc/0x128 [ 31.104966] __asan_report_store16_noabort+0x20/0x30 [ 31.105414] kmalloc_oob_16+0x3a0/0x3f8 [ 31.105465] kunit_try_run_case+0x170/0x3f0 [ 31.105516] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.106344] kthread+0x328/0x630 [ 31.106720] ret_from_fork+0x10/0x20 [ 31.106813] [ 31.107332] Allocated by task 197: [ 31.108022] kasan_save_stack+0x3c/0x68 [ 31.108078] kasan_save_track+0x20/0x40 [ 31.108398] kasan_save_alloc_info+0x40/0x58 [ 31.108445] __kasan_kmalloc+0xd4/0xd8 [ 31.109062] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.109192] kmalloc_oob_16+0xb4/0x3f8 [ 31.109322] kunit_try_run_case+0x170/0x3f0 [ 31.109362] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.110364] kthread+0x328/0x630 [ 31.110558] ret_from_fork+0x10/0x20 [ 31.110788] [ 31.111303] The buggy address belongs to the object at fff00000c7981640 [ 31.111303] which belongs to the cache kmalloc-16 of size 16 [ 31.111557] The buggy address is located 0 bytes inside of [ 31.111557] allocated 13-byte region [fff00000c7981640, fff00000c798164d) [ 31.112110] [ 31.112841] The buggy address belongs to the physical page: [ 31.113091] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107981 [ 31.113150] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.113200] page_type: f5(slab) [ 31.113250] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 31.113300] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 31.114497] page dumped because: kasan: bad access detected [ 31.115024] [ 31.115334] Memory state around the buggy address: [ 31.115555] fff00000c7981500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.115975] fff00000c7981580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.116762] >fff00000c7981600: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 31.116820] ^ [ 31.116857] fff00000c7981680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.116898] fff00000c7981700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.116935] ==================================================================
[ 23.349649] ================================================================== [ 23.350634] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 23.350924] Write of size 16 at addr ffff88810598a1e0 by task kunit_try_catch/214 [ 23.351463] [ 23.351566] CPU: 0 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250708 #1 PREEMPT(voluntary) [ 23.351622] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.351635] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.351660] Call Trace: [ 23.351676] <TASK> [ 23.351697] dump_stack_lvl+0x73/0xb0 [ 23.351731] print_report+0xd1/0x610 [ 23.351775] ? __virt_addr_valid+0x1db/0x2d0 [ 23.351802] ? kmalloc_oob_16+0x452/0x4a0 [ 23.351823] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.351861] ? kmalloc_oob_16+0x452/0x4a0 [ 23.351883] kasan_report+0x141/0x180 [ 23.351906] ? kmalloc_oob_16+0x452/0x4a0 [ 23.351932] __asan_report_store16_noabort+0x1b/0x30 [ 23.351959] kmalloc_oob_16+0x452/0x4a0 [ 23.351981] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 23.352003] ? __schedule+0x10cc/0x2b60 [ 23.352032] ? __pfx_read_tsc+0x10/0x10 [ 23.352058] ? ktime_get_ts64+0x86/0x230 [ 23.352086] kunit_try_run_case+0x1a5/0x480 [ 23.352110] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.352130] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.352152] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.352181] ? __kthread_parkme+0x82/0x180 [ 23.352202] ? preempt_count_sub+0x50/0x80 [ 23.352227] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.352261] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.352288] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.352315] kthread+0x337/0x6f0 [ 23.352337] ? trace_preempt_on+0x20/0xc0 [ 23.352362] ? __pfx_kthread+0x10/0x10 [ 23.352385] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.352411] ? calculate_sigpending+0x7b/0xa0 [ 23.352439] ? __pfx_kthread+0x10/0x10 [ 23.352463] ret_from_fork+0x116/0x1d0 [ 23.352482] ? __pfx_kthread+0x10/0x10 [ 23.352505] ret_from_fork_asm+0x1a/0x30 [ 23.352539] </TASK> [ 23.352551] [ 23.359064] Allocated by task 214: [ 23.359373] kasan_save_stack+0x45/0x70 [ 23.359584] kasan_save_track+0x18/0x40 [ 23.359736] kasan_save_alloc_info+0x3b/0x50 [ 23.359923] __kasan_kmalloc+0xb7/0xc0 [ 23.360104] __kmalloc_cache_noprof+0x189/0x420 [ 23.360493] kmalloc_oob_16+0xa8/0x4a0 [ 23.360662] kunit_try_run_case+0x1a5/0x480 [ 23.360889] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.361065] kthread+0x337/0x6f0 [ 23.361180] ret_from_fork+0x116/0x1d0 [ 23.361383] ret_from_fork_asm+0x1a/0x30 [ 23.361572] [ 23.361657] The buggy address belongs to the object at ffff88810598a1e0 [ 23.361657] which belongs to the cache kmalloc-16 of size 16 [ 23.362176] The buggy address is located 0 bytes inside of [ 23.362176] allocated 13-byte region [ffff88810598a1e0, ffff88810598a1ed) [ 23.362755] [ 23.363162] The buggy address belongs to the physical page: [ 23.363455] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10598a [ 23.363956] flags: 0x200000000000000(node=0|zone=2) [ 23.364144] page_type: f5(slab) [ 23.364437] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 23.364736] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 23.365073] page dumped because: kasan: bad access detected [ 23.365399] [ 23.365473] Memory state around the buggy address: [ 23.365624] ffff88810598a080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 23.365832] ffff88810598a100: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 23.366038] >ffff88810598a180: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 23.366302] ^ [ 23.366589] ffff88810598a200: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.367185] ffff88810598a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.367413] ==================================================================