Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.556622] ================================================================== [ 31.556676] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 31.557086] Write of size 4 at addr fff00000c3efda75 by task kunit_try_catch/205 [ 31.557174] [ 31.557223] CPU: 0 UID: 0 PID: 205 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 31.557369] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.557397] Hardware name: linux,dummy-virt (DT) [ 31.557445] Call trace: [ 31.557484] show_stack+0x20/0x38 (C) [ 31.557586] dump_stack_lvl+0x8c/0xd0 [ 31.557653] print_report+0x118/0x5e8 [ 31.557696] kasan_report+0xdc/0x128 [ 31.558038] kasan_check_range+0x100/0x1a8 [ 31.558125] __asan_memset+0x34/0x78 [ 31.558170] kmalloc_oob_memset_4+0x150/0x300 [ 31.558227] kunit_try_run_case+0x170/0x3f0 [ 31.558272] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.558331] kthread+0x328/0x630 [ 31.558386] ret_from_fork+0x10/0x20 [ 31.558433] [ 31.558451] Allocated by task 205: [ 31.558478] kasan_save_stack+0x3c/0x68 [ 31.558515] kasan_save_track+0x20/0x40 [ 31.558854] kasan_save_alloc_info+0x40/0x58 [ 31.558934] __kasan_kmalloc+0xd4/0xd8 [ 31.558970] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.559157] kmalloc_oob_memset_4+0xb0/0x300 [ 31.559212] kunit_try_run_case+0x170/0x3f0 [ 31.559288] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.559339] kthread+0x328/0x630 [ 31.559371] ret_from_fork+0x10/0x20 [ 31.559641] [ 31.559695] The buggy address belongs to the object at fff00000c3efda00 [ 31.559695] which belongs to the cache kmalloc-128 of size 128 [ 31.559864] The buggy address is located 117 bytes inside of [ 31.559864] allocated 120-byte region [fff00000c3efda00, fff00000c3efda78) [ 31.559973] [ 31.560056] The buggy address belongs to the physical page: [ 31.560116] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103efd [ 31.560201] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.560379] page_type: f5(slab) [ 31.560555] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 31.560649] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.560760] page dumped because: kasan: bad access detected [ 31.560840] [ 31.560895] Memory state around the buggy address: [ 31.560993] fff00000c3efd900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.561071] fff00000c3efd980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.561198] >fff00000c3efda00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.561416] ^ [ 31.561628] fff00000c3efda80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.561698] fff00000c3efdb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.561835] ==================================================================
[ 24.945360] ================================================================== [ 24.946270] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 24.946631] Write of size 4 at addr ffff888102b06375 by task kunit_try_catch/222 [ 24.947080] [ 24.947191] CPU: 1 UID: 0 PID: 222 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 24.947254] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.947266] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.947289] Call Trace: [ 24.947302] <TASK> [ 24.947320] dump_stack_lvl+0x73/0xb0 [ 24.947353] print_report+0xd1/0x640 [ 24.947375] ? __virt_addr_valid+0x1db/0x2d0 [ 24.947399] ? kmalloc_oob_memset_4+0x166/0x330 [ 24.947420] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.947445] ? kmalloc_oob_memset_4+0x166/0x330 [ 24.947466] kasan_report+0x141/0x180 [ 24.947486] ? kmalloc_oob_memset_4+0x166/0x330 [ 24.947512] kasan_check_range+0x10c/0x1c0 [ 24.947534] __asan_memset+0x27/0x50 [ 24.947556] kmalloc_oob_memset_4+0x166/0x330 [ 24.947578] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 24.947600] ? __schedule+0x10da/0x2b60 [ 24.947623] ? __pfx_read_tsc+0x10/0x10 [ 24.947645] ? ktime_get_ts64+0x86/0x230 [ 24.947670] kunit_try_run_case+0x1a5/0x480 [ 24.947694] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.947717] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.947750] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.947783] ? __kthread_parkme+0x82/0x180 [ 24.947802] ? preempt_count_sub+0x50/0x80 [ 24.947824] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.947847] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.947869] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.947891] kthread+0x337/0x6f0 [ 24.947910] ? trace_preempt_on+0x20/0xc0 [ 24.947933] ? __pfx_kthread+0x10/0x10 [ 24.947952] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.947981] ? calculate_sigpending+0x7b/0xa0 [ 24.948005] ? __pfx_kthread+0x10/0x10 [ 24.948026] ret_from_fork+0x116/0x1d0 [ 24.948044] ? __pfx_kthread+0x10/0x10 [ 24.948063] ret_from_fork_asm+0x1a/0x30 [ 24.948093] </TASK> [ 24.948105] [ 24.955565] Allocated by task 222: [ 24.955747] kasan_save_stack+0x45/0x70 [ 24.955916] kasan_save_track+0x18/0x40 [ 24.956101] kasan_save_alloc_info+0x3b/0x50 [ 24.956455] __kasan_kmalloc+0xb7/0xc0 [ 24.956625] __kmalloc_cache_noprof+0x189/0x420 [ 24.956817] kmalloc_oob_memset_4+0xac/0x330 [ 24.957082] kunit_try_run_case+0x1a5/0x480 [ 24.957322] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.957545] kthread+0x337/0x6f0 [ 24.957704] ret_from_fork+0x116/0x1d0 [ 24.957936] ret_from_fork_asm+0x1a/0x30 [ 24.958132] [ 24.958196] The buggy address belongs to the object at ffff888102b06300 [ 24.958196] which belongs to the cache kmalloc-128 of size 128 [ 24.958561] The buggy address is located 117 bytes inside of [ 24.958561] allocated 120-byte region [ffff888102b06300, ffff888102b06378) [ 24.959090] [ 24.959180] The buggy address belongs to the physical page: [ 24.959437] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b06 [ 24.959743] flags: 0x200000000000000(node=0|zone=2) [ 24.959903] page_type: f5(slab) [ 24.960022] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.960461] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.960812] page dumped because: kasan: bad access detected [ 24.961260] [ 24.961341] Memory state around the buggy address: [ 24.961493] ffff888102b06200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.961704] ffff888102b06280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.962146] >ffff888102b06300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.962472] ^ [ 24.962797] ffff888102b06380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.963108] ffff888102b06400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.963388] ==================================================================