Date
July 23, 2025, 2:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.466814] ================================================================== [ 15.467382] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 15.467549] Write of size 16 at addr fff00000c3f39869 by task kunit_try_catch/178 [ 15.467643] [ 15.467683] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 15.468156] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.468251] Hardware name: linux,dummy-virt (DT) [ 15.468329] Call trace: [ 15.468421] show_stack+0x20/0x38 (C) [ 15.468520] dump_stack_lvl+0x8c/0xd0 [ 15.468758] print_report+0x118/0x5d0 [ 15.469008] kasan_report+0xdc/0x128 [ 15.469182] kasan_check_range+0x100/0x1a8 [ 15.469243] __asan_memset+0x34/0x78 [ 15.469286] kmalloc_oob_memset_16+0x150/0x2f8 [ 15.469331] kunit_try_run_case+0x170/0x3f0 [ 15.469377] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.469429] kthread+0x328/0x630 [ 15.469469] ret_from_fork+0x10/0x20 [ 15.469521] [ 15.469551] Allocated by task 178: [ 15.469579] kasan_save_stack+0x3c/0x68 [ 15.469620] kasan_save_track+0x20/0x40 [ 15.469673] kasan_save_alloc_info+0x40/0x58 [ 15.469721] __kasan_kmalloc+0xd4/0xd8 [ 15.469757] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.469804] kmalloc_oob_memset_16+0xb0/0x2f8 [ 15.469841] kunit_try_run_case+0x170/0x3f0 [ 15.469899] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.469951] kthread+0x328/0x630 [ 15.469983] ret_from_fork+0x10/0x20 [ 15.470028] [ 15.470047] The buggy address belongs to the object at fff00000c3f39800 [ 15.470047] which belongs to the cache kmalloc-128 of size 128 [ 15.470106] The buggy address is located 105 bytes inside of [ 15.470106] allocated 120-byte region [fff00000c3f39800, fff00000c3f39878) [ 15.470170] [ 15.470190] The buggy address belongs to the physical page: [ 15.470237] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f39 [ 15.470290] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.470347] page_type: f5(slab) [ 15.470385] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.470439] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.470479] page dumped because: kasan: bad access detected [ 15.470510] [ 15.470529] Memory state around the buggy address: [ 15.470835] fff00000c3f39700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.470898] fff00000c3f39780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.471277] >fff00000c3f39800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.471339] ^ [ 15.471394] fff00000c3f39880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.471528] fff00000c3f39900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.471649] ==================================================================
[ 12.766472] ================================================================== [ 12.766950] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.767318] Write of size 16 at addr ffff8881025cc269 by task kunit_try_catch/195 [ 12.767703] [ 12.767827] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 12.767871] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.767883] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.767903] Call Trace: [ 12.767914] <TASK> [ 12.767929] dump_stack_lvl+0x73/0xb0 [ 12.767957] print_report+0xd1/0x610 [ 12.767978] ? __virt_addr_valid+0x1db/0x2d0 [ 12.767999] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.768020] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.768041] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.768063] kasan_report+0x141/0x180 [ 12.768084] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.768128] kasan_check_range+0x10c/0x1c0 [ 12.768150] __asan_memset+0x27/0x50 [ 12.768169] kmalloc_oob_memset_16+0x166/0x330 [ 12.768191] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.768213] ? __schedule+0x10c6/0x2b60 [ 12.768235] ? __pfx_read_tsc+0x10/0x10 [ 12.768255] ? ktime_get_ts64+0x86/0x230 [ 12.768279] kunit_try_run_case+0x1a5/0x480 [ 12.768302] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.768324] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.768347] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.768369] ? __kthread_parkme+0x82/0x180 [ 12.768389] ? preempt_count_sub+0x50/0x80 [ 12.768412] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.768435] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.768457] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.768480] kthread+0x337/0x6f0 [ 12.768499] ? trace_preempt_on+0x20/0xc0 [ 12.768521] ? __pfx_kthread+0x10/0x10 [ 12.768541] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.768562] ? calculate_sigpending+0x7b/0xa0 [ 12.768585] ? __pfx_kthread+0x10/0x10 [ 12.768606] ret_from_fork+0x116/0x1d0 [ 12.768625] ? __pfx_kthread+0x10/0x10 [ 12.768645] ret_from_fork_asm+0x1a/0x30 [ 12.768674] </TASK> [ 12.768684] [ 12.776283] Allocated by task 195: [ 12.776418] kasan_save_stack+0x45/0x70 [ 12.776564] kasan_save_track+0x18/0x40 [ 12.776699] kasan_save_alloc_info+0x3b/0x50 [ 12.776864] __kasan_kmalloc+0xb7/0xc0 [ 12.777063] __kmalloc_cache_noprof+0x189/0x420 [ 12.777361] kmalloc_oob_memset_16+0xac/0x330 [ 12.777580] kunit_try_run_case+0x1a5/0x480 [ 12.777788] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.778069] kthread+0x337/0x6f0 [ 12.778291] ret_from_fork+0x116/0x1d0 [ 12.778691] ret_from_fork_asm+0x1a/0x30 [ 12.778853] [ 12.778926] The buggy address belongs to the object at ffff8881025cc200 [ 12.778926] which belongs to the cache kmalloc-128 of size 128 [ 12.780006] The buggy address is located 105 bytes inside of [ 12.780006] allocated 120-byte region [ffff8881025cc200, ffff8881025cc278) [ 12.780594] [ 12.780687] The buggy address belongs to the physical page: [ 12.780922] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025cc [ 12.781350] flags: 0x200000000000000(node=0|zone=2) [ 12.781540] page_type: f5(slab) [ 12.781705] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.782023] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.782384] page dumped because: kasan: bad access detected [ 12.782562] [ 12.782633] Memory state around the buggy address: [ 12.782792] ffff8881025cc100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.783119] ffff8881025cc180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.783516] >ffff8881025cc200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.783759] ^ [ 12.783988] ffff8881025cc280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.784427] ffff8881025cc300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.784755] ==================================================================