Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.123515] ================================================================== [ 18.123602] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 18.123655] Write of size 16 at addr fff00000c1cf4e69 by task kunit_try_catch/178 [ 18.123711] [ 18.123744] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.123827] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.123852] Hardware name: linux,dummy-virt (DT) [ 18.123890] Call trace: [ 18.123913] show_stack+0x20/0x38 (C) [ 18.123960] dump_stack_lvl+0x8c/0xd0 [ 18.124004] print_report+0x118/0x608 [ 18.124054] kasan_report+0xdc/0x128 [ 18.124099] kasan_check_range+0x100/0x1a8 [ 18.124145] __asan_memset+0x34/0x78 [ 18.124209] kmalloc_oob_memset_16+0x150/0x2f8 [ 18.124255] kunit_try_run_case+0x170/0x3f0 [ 18.124301] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.124357] kthread+0x328/0x630 [ 18.124397] ret_from_fork+0x10/0x20 [ 18.124442] [ 18.124460] Allocated by task 178: [ 18.124496] kasan_save_stack+0x3c/0x68 [ 18.124536] kasan_save_track+0x20/0x40 [ 18.124572] kasan_save_alloc_info+0x40/0x58 [ 18.124610] __kasan_kmalloc+0xd4/0xd8 [ 18.124645] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.124683] kmalloc_oob_memset_16+0xb0/0x2f8 [ 18.124718] kunit_try_run_case+0x170/0x3f0 [ 18.124755] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.124796] kthread+0x328/0x630 [ 18.124828] ret_from_fork+0x10/0x20 [ 18.124863] [ 18.124883] The buggy address belongs to the object at fff00000c1cf4e00 [ 18.124883] which belongs to the cache kmalloc-128 of size 128 [ 18.124936] The buggy address is located 105 bytes inside of [ 18.124936] allocated 120-byte region [fff00000c1cf4e00, fff00000c1cf4e78) [ 18.124994] [ 18.125013] The buggy address belongs to the physical page: [ 18.125041] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101cf4 [ 18.125090] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.125135] page_type: f5(slab) [ 18.125170] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.125369] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.125671] page dumped because: kasan: bad access detected [ 18.126291] [ 18.126383] Memory state around the buggy address: [ 18.126444] fff00000c1cf4d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.126510] fff00000c1cf4d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.127009] >fff00000c1cf4e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.127177] ^ [ 18.127391] fff00000c1cf4e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.127572] fff00000c1cf4f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.127675] ==================================================================
[ 11.753989] ================================================================== [ 11.755412] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 11.756728] Write of size 16 at addr ffff888102794369 by task kunit_try_catch/195 [ 11.758007] [ 11.758423] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.758636] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.758693] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.758716] Call Trace: [ 11.758733] <TASK> [ 11.758753] dump_stack_lvl+0x73/0xb0 [ 11.758787] print_report+0xd1/0x650 [ 11.758810] ? __virt_addr_valid+0x1db/0x2d0 [ 11.758834] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.758856] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.758879] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.758902] kasan_report+0x141/0x180 [ 11.758924] ? kmalloc_oob_memset_16+0x166/0x330 [ 11.758962] kasan_check_range+0x10c/0x1c0 [ 11.758986] __asan_memset+0x27/0x50 [ 11.759005] kmalloc_oob_memset_16+0x166/0x330 [ 11.759027] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 11.759070] ? __schedule+0x10cc/0x2b60 [ 11.759093] ? __pfx_read_tsc+0x10/0x10 [ 11.759120] ? ktime_get_ts64+0x86/0x230 [ 11.759146] kunit_try_run_case+0x1a5/0x480 [ 11.759171] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.759193] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.759217] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.759239] ? __kthread_parkme+0x82/0x180 [ 11.759260] ? preempt_count_sub+0x50/0x80 [ 11.759284] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.759307] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.759328] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.759350] kthread+0x337/0x6f0 [ 11.759370] ? trace_preempt_on+0x20/0xc0 [ 11.759393] ? __pfx_kthread+0x10/0x10 [ 11.759413] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.759433] ? calculate_sigpending+0x7b/0xa0 [ 11.759476] ? __pfx_kthread+0x10/0x10 [ 11.759497] ret_from_fork+0x116/0x1d0 [ 11.759516] ? __pfx_kthread+0x10/0x10 [ 11.759536] ret_from_fork_asm+0x1a/0x30 [ 11.759569] </TASK> [ 11.759581] [ 11.771529] Allocated by task 195: [ 11.771733] kasan_save_stack+0x45/0x70 [ 11.771953] kasan_save_track+0x18/0x40 [ 11.772180] kasan_save_alloc_info+0x3b/0x50 [ 11.772364] __kasan_kmalloc+0xb7/0xc0 [ 11.772523] __kmalloc_cache_noprof+0x189/0x420 [ 11.772709] kmalloc_oob_memset_16+0xac/0x330 [ 11.772922] kunit_try_run_case+0x1a5/0x480 [ 11.773118] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.774668] kthread+0x337/0x6f0 [ 11.774811] ret_from_fork+0x116/0x1d0 [ 11.775018] ret_from_fork_asm+0x1a/0x30 [ 11.775199] [ 11.775302] The buggy address belongs to the object at ffff888102794300 [ 11.775302] which belongs to the cache kmalloc-128 of size 128 [ 11.775757] The buggy address is located 105 bytes inside of [ 11.775757] allocated 120-byte region [ffff888102794300, ffff888102794378) [ 11.776238] [ 11.776416] The buggy address belongs to the physical page: [ 11.776637] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102794 [ 11.776951] flags: 0x200000000000000(node=0|zone=2) [ 11.777193] page_type: f5(slab) [ 11.777368] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.777662] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.778014] page dumped because: kasan: bad access detected [ 11.778231] [ 11.778330] Memory state around the buggy address: [ 11.778517] ffff888102794200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.778792] ffff888102794280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.779113] >ffff888102794300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.779423] ^ [ 11.779700] ffff888102794380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.780012] ffff888102794400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.780313] ==================================================================