Date
June 23, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.910633] ================================================================== [ 32.910796] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 32.910922] Write of size 128 at addr fff00000c63f7000 by task kunit_try_catch/182 [ 32.911051] [ 32.911132] CPU: 1 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT [ 32.911650] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.911846] Hardware name: linux,dummy-virt (DT) [ 32.912388] Call trace: [ 32.912571] show_stack+0x20/0x38 (C) [ 32.913219] dump_stack_lvl+0x8c/0xd0 [ 32.913411] print_report+0x118/0x608 [ 32.913837] kasan_report+0xdc/0x128 [ 32.914397] kasan_check_range+0x100/0x1a8 [ 32.914524] __asan_memset+0x34/0x78 [ 32.915000] kmalloc_oob_in_memset+0x144/0x2d0 [ 32.915670] kunit_try_run_case+0x170/0x3f0 [ 32.915834] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.915988] kthread+0x328/0x630 [ 32.916125] ret_from_fork+0x10/0x20 [ 32.916244] [ 32.916395] Allocated by task 182: [ 32.916478] kasan_save_stack+0x3c/0x68 [ 32.916592] kasan_save_track+0x20/0x40 [ 32.916773] kasan_save_alloc_info+0x40/0x58 [ 32.916992] __kasan_kmalloc+0xd4/0xd8 [ 32.917104] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.917241] kmalloc_oob_in_memset+0xb0/0x2d0 [ 32.917340] kunit_try_run_case+0x170/0x3f0 [ 32.917463] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.917571] kthread+0x328/0x630 [ 32.917681] ret_from_fork+0x10/0x20 [ 32.917807] [ 32.917894] The buggy address belongs to the object at fff00000c63f7000 [ 32.917894] which belongs to the cache kmalloc-128 of size 128 [ 32.918041] The buggy address is located 0 bytes inside of [ 32.918041] allocated 120-byte region [fff00000c63f7000, fff00000c63f7078) [ 32.918180] [ 32.918230] The buggy address belongs to the physical page: [ 32.918370] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063f7 [ 32.918656] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.918798] page_type: f5(slab) [ 32.918904] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.919086] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.919188] page dumped because: kasan: bad access detected [ 32.919272] [ 32.919322] Memory state around the buggy address: [ 32.919406] fff00000c63f6f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.919517] fff00000c63f6f80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc [ 32.919648] >fff00000c63f7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.919773] ^ [ 32.919937] fff00000c63f7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.920076] fff00000c63f7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.920327] ==================================================================
[ 21.807779] ================================================================== [ 21.808190] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 21.808931] Write of size 128 at addr ffff8881023ac300 by task kunit_try_catch/199 [ 21.809721] [ 21.810501] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250623 #1 PREEMPT(voluntary) [ 21.810607] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.810629] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.810665] Call Trace: [ 21.810690] <TASK> [ 21.810719] dump_stack_lvl+0x73/0xb0 [ 21.810773] print_report+0xd1/0x650 [ 21.810795] ? __virt_addr_valid+0x1db/0x2d0 [ 21.810816] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.810856] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.810884] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.810913] kasan_report+0x141/0x180 [ 21.810942] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.810966] kasan_check_range+0x10c/0x1c0 [ 21.810988] __asan_memset+0x27/0x50 [ 21.811008] kmalloc_oob_in_memset+0x15f/0x320 [ 21.811026] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 21.811045] ? __schedule+0x10cc/0x2b60 [ 21.811063] ? __pfx_read_tsc+0x10/0x10 [ 21.811099] ? ktime_get_ts64+0x86/0x230 [ 21.811131] kunit_try_run_case+0x1a5/0x480 [ 21.811162] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.811192] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.811212] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.811231] ? __kthread_parkme+0x82/0x180 [ 21.811248] ? preempt_count_sub+0x50/0x80 [ 21.811267] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.811287] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.811307] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.811327] kthread+0x337/0x6f0 [ 21.811343] ? trace_preempt_on+0x20/0xc0 [ 21.811362] ? __pfx_kthread+0x10/0x10 [ 21.811395] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.811415] ? calculate_sigpending+0x7b/0xa0 [ 21.811436] ? __pfx_kthread+0x10/0x10 [ 21.811454] ret_from_fork+0x116/0x1d0 [ 21.811470] ? __pfx_kthread+0x10/0x10 [ 21.811487] ret_from_fork_asm+0x1a/0x30 [ 21.811513] </TASK> [ 21.811524] [ 21.820659] Allocated by task 199: [ 21.820907] kasan_save_stack+0x45/0x70 [ 21.821065] kasan_save_track+0x18/0x40 [ 21.821332] kasan_save_alloc_info+0x3b/0x50 [ 21.821504] __kasan_kmalloc+0xb7/0xc0 [ 21.821665] __kmalloc_cache_noprof+0x189/0x420 [ 21.822108] kmalloc_oob_in_memset+0xac/0x320 [ 21.822627] kunit_try_run_case+0x1a5/0x480 [ 21.822969] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.823486] kthread+0x337/0x6f0 [ 21.823661] ret_from_fork+0x116/0x1d0 [ 21.823864] ret_from_fork_asm+0x1a/0x30 [ 21.824132] [ 21.824272] The buggy address belongs to the object at ffff8881023ac300 [ 21.824272] which belongs to the cache kmalloc-128 of size 128 [ 21.824732] The buggy address is located 0 bytes inside of [ 21.824732] allocated 120-byte region [ffff8881023ac300, ffff8881023ac378) [ 21.825452] [ 21.825973] The buggy address belongs to the physical page: [ 21.826311] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1023ac [ 21.826975] flags: 0x200000000000000(node=0|zone=2) [ 21.827290] page_type: f5(slab) [ 21.827535] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.827894] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.828114] page dumped because: kasan: bad access detected [ 21.828284] [ 21.828364] Memory state around the buggy address: [ 21.828519] ffff8881023ac200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.828693] ffff8881023ac280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.828874] >ffff8881023ac300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.829057] ^ [ 21.829249] ffff8881023ac380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.829453] ffff8881023ac400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.829632] ==================================================================