Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.509211] ================================================================== [ 29.509293] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 29.509344] Write of size 16 at addr fff00000c9af0369 by task kunit_try_catch/209 [ 29.509433] [ 29.509476] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.509786] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.509823] Hardware name: linux,dummy-virt (DT) [ 29.510096] Call trace: [ 29.510177] show_stack+0x20/0x38 (C) [ 29.510432] dump_stack_lvl+0x8c/0xd0 [ 29.510523] print_report+0x118/0x5d0 [ 29.510565] kasan_report+0xdc/0x128 [ 29.510607] kasan_check_range+0x100/0x1a8 [ 29.510651] __asan_memset+0x34/0x78 [ 29.510693] kmalloc_oob_memset_16+0x150/0x2f8 [ 29.510903] kunit_try_run_case+0x170/0x3f0 [ 29.511002] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.511070] kthread+0x328/0x630 [ 29.511111] ret_from_fork+0x10/0x20 [ 29.511568] [ 29.511589] Allocated by task 209: [ 29.511896] kasan_save_stack+0x3c/0x68 [ 29.511978] kasan_save_track+0x20/0x40 [ 29.512499] kasan_save_alloc_info+0x40/0x58 [ 29.512884] __kasan_kmalloc+0xd4/0xd8 [ 29.513187] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.513245] kmalloc_oob_memset_16+0xb0/0x2f8 [ 29.513911] kunit_try_run_case+0x170/0x3f0 [ 29.514393] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.514459] kthread+0x328/0x630 [ 29.514493] ret_from_fork+0x10/0x20 [ 29.514661] [ 29.514749] The buggy address belongs to the object at fff00000c9af0300 [ 29.514749] which belongs to the cache kmalloc-128 of size 128 [ 29.514814] The buggy address is located 105 bytes inside of [ 29.514814] allocated 120-byte region [fff00000c9af0300, fff00000c9af0378) [ 29.514880] [ 29.514900] The buggy address belongs to the physical page: [ 29.514933] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109af0 [ 29.514987] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.515034] page_type: f5(slab) [ 29.516043] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.516374] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.516420] page dumped because: kasan: bad access detected [ 29.516843] [ 29.517054] Memory state around the buggy address: [ 29.517337] fff00000c9af0200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.517602] fff00000c9af0280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.517697] >fff00000c9af0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.517738] ^ [ 29.518046] fff00000c9af0380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.518373] fff00000c9af0400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.518425] ==================================================================
[ 25.207425] ================================================================== [ 25.208104] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 25.208463] Write of size 16 at addr ffff888105182c69 by task kunit_try_catch/226 [ 25.208727] [ 25.208822] CPU: 1 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 25.208873] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.208884] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.208906] Call Trace: [ 25.208920] <TASK> [ 25.208939] dump_stack_lvl+0x73/0xb0 [ 25.209034] print_report+0xd1/0x610 [ 25.209061] ? __virt_addr_valid+0x1db/0x2d0 [ 25.209086] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.209107] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.209132] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.209153] kasan_report+0x141/0x180 [ 25.209174] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.209200] kasan_check_range+0x10c/0x1c0 [ 25.209222] __asan_memset+0x27/0x50 [ 25.209245] kmalloc_oob_memset_16+0x166/0x330 [ 25.209267] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 25.209289] ? __schedule+0x10cc/0x2b60 [ 25.209314] ? __pfx_read_tsc+0x10/0x10 [ 25.209336] ? ktime_get_ts64+0x86/0x230 [ 25.209361] kunit_try_run_case+0x1a5/0x480 [ 25.209383] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.209405] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.209429] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.209451] ? __kthread_parkme+0x82/0x180 [ 25.209472] ? preempt_count_sub+0x50/0x80 [ 25.209517] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.209538] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.209562] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.209586] kthread+0x337/0x6f0 [ 25.209606] ? trace_preempt_on+0x20/0xc0 [ 25.209629] ? __pfx_kthread+0x10/0x10 [ 25.209649] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.209669] ? calculate_sigpending+0x7b/0xa0 [ 25.209693] ? __pfx_kthread+0x10/0x10 [ 25.209722] ret_from_fork+0x116/0x1d0 [ 25.209740] ? __pfx_kthread+0x10/0x10 [ 25.209760] ret_from_fork_asm+0x1a/0x30 [ 25.209959] </TASK> [ 25.209972] [ 25.217267] Allocated by task 226: [ 25.217396] kasan_save_stack+0x45/0x70 [ 25.217566] kasan_save_track+0x18/0x40 [ 25.217725] kasan_save_alloc_info+0x3b/0x50 [ 25.217997] __kasan_kmalloc+0xb7/0xc0 [ 25.218188] __kmalloc_cache_noprof+0x189/0x420 [ 25.218411] kmalloc_oob_memset_16+0xac/0x330 [ 25.218648] kunit_try_run_case+0x1a5/0x480 [ 25.218873] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.219121] kthread+0x337/0x6f0 [ 25.219258] ret_from_fork+0x116/0x1d0 [ 25.219426] ret_from_fork_asm+0x1a/0x30 [ 25.219592] [ 25.219657] The buggy address belongs to the object at ffff888105182c00 [ 25.219657] which belongs to the cache kmalloc-128 of size 128 [ 25.220191] The buggy address is located 105 bytes inside of [ 25.220191] allocated 120-byte region [ffff888105182c00, ffff888105182c78) [ 25.220674] [ 25.220992] The buggy address belongs to the physical page: [ 25.221234] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105182 [ 25.221593] flags: 0x200000000000000(node=0|zone=2) [ 25.221834] page_type: f5(slab) [ 25.221965] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.222210] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.222568] page dumped because: kasan: bad access detected [ 25.222904] [ 25.223001] Memory state around the buggy address: [ 25.223227] ffff888105182b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.223560] ffff888105182b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.223918] >ffff888105182c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.224212] ^ [ 25.224459] ffff888105182c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.224689] ffff888105182d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.225213] ==================================================================