Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.617570] ================================================================== [ 29.617625] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 29.617673] Write of size 8 at addr fff00000c5a97d71 by task kunit_try_catch/209 [ 29.617728] [ 29.617850] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.618025] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.618181] Hardware name: linux,dummy-virt (DT) [ 29.618211] Call trace: [ 29.618233] show_stack+0x20/0x38 (C) [ 29.618281] dump_stack_lvl+0x8c/0xd0 [ 29.618324] print_report+0x118/0x608 [ 29.618369] kasan_report+0xdc/0x128 [ 29.618414] kasan_check_range+0x100/0x1a8 [ 29.618457] __asan_memset+0x34/0x78 [ 29.618498] kmalloc_oob_memset_8+0x150/0x2f8 [ 29.618624] kunit_try_run_case+0x170/0x3f0 [ 29.618810] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.618875] kthread+0x328/0x630 [ 29.619047] ret_from_fork+0x10/0x20 [ 29.619094] [ 29.619113] Allocated by task 209: [ 29.619139] kasan_save_stack+0x3c/0x68 [ 29.619179] kasan_save_track+0x20/0x40 [ 29.619216] kasan_save_alloc_info+0x40/0x58 [ 29.619322] __kasan_kmalloc+0xd4/0xd8 [ 29.619380] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.619509] kmalloc_oob_memset_8+0xb0/0x2f8 [ 29.619566] kunit_try_run_case+0x170/0x3f0 [ 29.619747] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.619894] kthread+0x328/0x630 [ 29.619936] ret_from_fork+0x10/0x20 [ 29.619971] [ 29.619990] The buggy address belongs to the object at fff00000c5a97d00 [ 29.619990] which belongs to the cache kmalloc-128 of size 128 [ 29.620045] The buggy address is located 113 bytes inside of [ 29.620045] allocated 120-byte region [fff00000c5a97d00, fff00000c5a97d78) [ 29.620317] [ 29.620600] The buggy address belongs to the physical page: [ 29.620697] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a97 [ 29.620761] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.620905] page_type: f5(slab) [ 29.621018] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.621106] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.621270] page dumped because: kasan: bad access detected [ 29.621301] [ 29.621355] Memory state around the buggy address: [ 29.621385] fff00000c5a97c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.621813] fff00000c5a97c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.622137] >fff00000c5a97d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.622218] ^ [ 29.622325] fff00000c5a97d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.622511] fff00000c5a97e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.622790] ==================================================================
[ 25.027112] ================================================================== [ 25.027630] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 25.028007] Write of size 8 at addr ffff888105aac171 by task kunit_try_catch/225 [ 25.028350] [ 25.028470] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 25.028554] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.028568] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.028593] Call Trace: [ 25.028608] <TASK> [ 25.028630] dump_stack_lvl+0x73/0xb0 [ 25.028662] print_report+0xd1/0x650 [ 25.028687] ? __virt_addr_valid+0x1db/0x2d0 [ 25.028713] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.028735] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.028763] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.028787] kasan_report+0x141/0x180 [ 25.028812] ? kmalloc_oob_memset_8+0x166/0x330 [ 25.028840] kasan_check_range+0x10c/0x1c0 [ 25.028865] __asan_memset+0x27/0x50 [ 25.028890] kmalloc_oob_memset_8+0x166/0x330 [ 25.028914] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 25.028938] ? __schedule+0x10cc/0x2b60 [ 25.028966] ? __pfx_read_tsc+0x10/0x10 [ 25.028990] ? ktime_get_ts64+0x86/0x230 [ 25.029018] kunit_try_run_case+0x1a5/0x480 [ 25.029047] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.029072] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.029098] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.029124] ? __kthread_parkme+0x82/0x180 [ 25.029147] ? preempt_count_sub+0x50/0x80 [ 25.029172] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.029200] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.029226] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.029266] kthread+0x337/0x6f0 [ 25.029288] ? trace_preempt_on+0x20/0xc0 [ 25.029314] ? __pfx_kthread+0x10/0x10 [ 25.029336] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.029360] ? calculate_sigpending+0x7b/0xa0 [ 25.029386] ? __pfx_kthread+0x10/0x10 [ 25.029421] ret_from_fork+0x116/0x1d0 [ 25.029442] ? __pfx_kthread+0x10/0x10 [ 25.029465] ret_from_fork_asm+0x1a/0x30 [ 25.029499] </TASK> [ 25.029513] [ 25.045812] Allocated by task 225: [ 25.046628] kasan_save_stack+0x45/0x70 [ 25.047185] kasan_save_track+0x18/0x40 [ 25.047583] kasan_save_alloc_info+0x3b/0x50 [ 25.047764] __kasan_kmalloc+0xb7/0xc0 [ 25.047990] __kmalloc_cache_noprof+0x189/0x420 [ 25.048927] kmalloc_oob_memset_8+0xac/0x330 [ 25.049700] kunit_try_run_case+0x1a5/0x480 [ 25.050197] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.050781] kthread+0x337/0x6f0 [ 25.051471] ret_from_fork+0x116/0x1d0 [ 25.052004] ret_from_fork_asm+0x1a/0x30 [ 25.052602] [ 25.052693] The buggy address belongs to the object at ffff888105aac100 [ 25.052693] which belongs to the cache kmalloc-128 of size 128 [ 25.054268] The buggy address is located 113 bytes inside of [ 25.054268] allocated 120-byte region [ffff888105aac100, ffff888105aac178) [ 25.055093] [ 25.055442] The buggy address belongs to the physical page: [ 25.056099] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105aac [ 25.057069] flags: 0x200000000000000(node=0|zone=2) [ 25.057682] page_type: f5(slab) [ 25.057936] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.058614] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.058881] page dumped because: kasan: bad access detected [ 25.059073] [ 25.059211] Memory state around the buggy address: [ 25.059720] ffff888105aac000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.060587] ffff888105aac080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.061540] >ffff888105aac100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.062495] ^ [ 25.063335] ffff888105aac180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.063811] ffff888105aac200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.064522] ==================================================================