Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.538957] ================================================================== [ 19.539111] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 19.539596] Write of size 16 at addr fff00000c599f069 by task kunit_try_catch/179 [ 19.539729] [ 19.540364] CPU: 0 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.540734] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.540799] Hardware name: linux,dummy-virt (DT) [ 19.541291] Call trace: [ 19.541371] show_stack+0x20/0x38 (C) [ 19.541618] dump_stack_lvl+0x8c/0xd0 [ 19.542175] print_report+0x118/0x608 [ 19.542695] kasan_report+0xdc/0x128 [ 19.542914] kasan_check_range+0x100/0x1a8 [ 19.543125] __asan_memset+0x34/0x78 [ 19.543230] kmalloc_oob_memset_16+0x150/0x2f8 [ 19.543761] kunit_try_run_case+0x170/0x3f0 [ 19.543985] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.544118] kthread+0x328/0x630 [ 19.544215] ret_from_fork+0x10/0x20 [ 19.544324] [ 19.544370] Allocated by task 179: [ 19.544862] kasan_save_stack+0x3c/0x68 [ 19.545063] kasan_save_track+0x20/0x40 [ 19.545174] kasan_save_alloc_info+0x40/0x58 [ 19.545458] __kasan_kmalloc+0xd4/0xd8 [ 19.545536] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.545632] kmalloc_oob_memset_16+0xb0/0x2f8 [ 19.545721] kunit_try_run_case+0x170/0x3f0 [ 19.546188] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.546409] kthread+0x328/0x630 [ 19.546498] ret_from_fork+0x10/0x20 [ 19.546605] [ 19.546655] The buggy address belongs to the object at fff00000c599f000 [ 19.546655] which belongs to the cache kmalloc-128 of size 128 [ 19.547197] The buggy address is located 105 bytes inside of [ 19.547197] allocated 120-byte region [fff00000c599f000, fff00000c599f078) [ 19.547420] [ 19.547467] The buggy address belongs to the physical page: [ 19.547979] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10599f [ 19.548130] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.548358] page_type: f5(slab) [ 19.548452] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.548984] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.549196] page dumped because: kasan: bad access detected [ 19.549282] [ 19.549419] Memory state around the buggy address: [ 19.549509] fff00000c599ef00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.549614] fff00000c599ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.549693] >fff00000c599f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.550054] ^ [ 19.550354] fff00000c599f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.550552] fff00000c599f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.550651] ==================================================================
[ 12.795920] ================================================================== [ 12.796380] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.796683] Write of size 16 at addr ffff888102b92769 by task kunit_try_catch/196 [ 12.797016] [ 12.797131] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.797174] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.797184] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.797203] Call Trace: [ 12.797214] <TASK> [ 12.797230] dump_stack_lvl+0x73/0xb0 [ 12.797260] print_report+0xd1/0x650 [ 12.797281] ? __virt_addr_valid+0x1db/0x2d0 [ 12.797305] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.797326] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.797349] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.797371] kasan_report+0x141/0x180 [ 12.797392] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.797418] kasan_check_range+0x10c/0x1c0 [ 12.797441] __asan_memset+0x27/0x50 [ 12.797460] kmalloc_oob_memset_16+0x166/0x330 [ 12.797483] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.797506] ? __schedule+0x10cc/0x2b60 [ 12.797528] ? __pfx_read_tsc+0x10/0x10 [ 12.797549] ? ktime_get_ts64+0x86/0x230 [ 12.797574] kunit_try_run_case+0x1a5/0x480 [ 12.797598] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.797621] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.797644] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.797668] ? __kthread_parkme+0x82/0x180 [ 12.797688] ? preempt_count_sub+0x50/0x80 [ 12.797712] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.797736] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.797772] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.797958] kthread+0x337/0x6f0 [ 12.797978] ? trace_preempt_on+0x20/0xc0 [ 12.798004] ? __pfx_kthread+0x10/0x10 [ 12.798024] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.798045] ? calculate_sigpending+0x7b/0xa0 [ 12.798069] ? __pfx_kthread+0x10/0x10 [ 12.798090] ret_from_fork+0x116/0x1d0 [ 12.798109] ? __pfx_kthread+0x10/0x10 [ 12.798129] ret_from_fork_asm+0x1a/0x30 [ 12.798160] </TASK> [ 12.798170] [ 12.805502] Allocated by task 196: [ 12.805650] kasan_save_stack+0x45/0x70 [ 12.805807] kasan_save_track+0x18/0x40 [ 12.805942] kasan_save_alloc_info+0x3b/0x50 [ 12.806130] __kasan_kmalloc+0xb7/0xc0 [ 12.806323] __kmalloc_cache_noprof+0x189/0x420 [ 12.806555] kmalloc_oob_memset_16+0xac/0x330 [ 12.807141] kunit_try_run_case+0x1a5/0x480 [ 12.807365] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.807623] kthread+0x337/0x6f0 [ 12.807859] ret_from_fork+0x116/0x1d0 [ 12.807996] ret_from_fork_asm+0x1a/0x30 [ 12.808168] [ 12.808269] The buggy address belongs to the object at ffff888102b92700 [ 12.808269] which belongs to the cache kmalloc-128 of size 128 [ 12.808938] The buggy address is located 105 bytes inside of [ 12.808938] allocated 120-byte region [ffff888102b92700, ffff888102b92778) [ 12.809415] [ 12.809513] The buggy address belongs to the physical page: [ 12.809847] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b92 [ 12.810178] flags: 0x200000000000000(node=0|zone=2) [ 12.810350] page_type: f5(slab) [ 12.810477] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.810736] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.811085] page dumped because: kasan: bad access detected [ 12.811333] [ 12.811421] Memory state around the buggy address: [ 12.811640] ffff888102b92600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.811984] ffff888102b92680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.812248] >ffff888102b92700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.812567] ^ [ 12.812924] ffff888102b92780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.813213] ffff888102b92800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.813483] ==================================================================