Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.085143] ================================================================== [ 18.085470] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 18.085523] Write of size 16 at addr fff00000c68f1669 by task kunit_try_catch/178 [ 18.085926] [ 18.086020] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 18.086395] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.086438] Hardware name: linux,dummy-virt (DT) [ 18.086473] Call trace: [ 18.086497] show_stack+0x20/0x38 (C) [ 18.087092] dump_stack_lvl+0x8c/0xd0 [ 18.087241] print_report+0x118/0x608 [ 18.087334] kasan_report+0xdc/0x128 [ 18.087454] kasan_check_range+0x100/0x1a8 [ 18.087547] __asan_memset+0x34/0x78 [ 18.087928] kmalloc_oob_memset_16+0x150/0x2f8 [ 18.088008] kunit_try_run_case+0x170/0x3f0 [ 18.088181] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.088349] kthread+0x328/0x630 [ 18.088427] ret_from_fork+0x10/0x20 [ 18.088866] [ 18.088967] Allocated by task 178: [ 18.089094] kasan_save_stack+0x3c/0x68 [ 18.089231] kasan_save_track+0x20/0x40 [ 18.089362] kasan_save_alloc_info+0x40/0x58 [ 18.089406] __kasan_kmalloc+0xd4/0xd8 [ 18.089486] __kmalloc_cache_noprof+0x15c/0x3c0 [ 18.089669] kmalloc_oob_memset_16+0xb0/0x2f8 [ 18.089950] kunit_try_run_case+0x170/0x3f0 [ 18.090122] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.090222] kthread+0x328/0x630 [ 18.090279] ret_from_fork+0x10/0x20 [ 18.090554] [ 18.090698] The buggy address belongs to the object at fff00000c68f1600 [ 18.090698] which belongs to the cache kmalloc-128 of size 128 [ 18.090768] The buggy address is located 105 bytes inside of [ 18.090768] allocated 120-byte region [fff00000c68f1600, fff00000c68f1678) [ 18.090861] [ 18.091017] The buggy address belongs to the physical page: [ 18.091230] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1068f1 [ 18.091435] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.091580] page_type: f5(slab) [ 18.091666] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.091722] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.091917] page dumped because: kasan: bad access detected [ 18.092142] [ 18.092306] Memory state around the buggy address: [ 18.092469] fff00000c68f1500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.092578] fff00000c68f1580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.092664] >fff00000c68f1600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.092949] ^ [ 18.093136] fff00000c68f1680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.093214] fff00000c68f1700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.093396] ==================================================================
[ 14.244142] ================================================================== [ 14.244610] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 14.245662] Write of size 16 at addr ffff8881022f9f69 by task kunit_try_catch/196 [ 14.246612] [ 14.246889] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 14.246989] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.247013] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.247053] Call Trace: [ 14.247078] <TASK> [ 14.247109] dump_stack_lvl+0x73/0xb0 [ 14.247180] print_report+0xd1/0x650 [ 14.247251] ? __virt_addr_valid+0x1db/0x2d0 [ 14.247303] ? kmalloc_oob_memset_16+0x166/0x330 [ 14.247347] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.247377] ? kmalloc_oob_memset_16+0x166/0x330 [ 14.247400] kasan_report+0x141/0x180 [ 14.247423] ? kmalloc_oob_memset_16+0x166/0x330 [ 14.247450] kasan_check_range+0x10c/0x1c0 [ 14.247488] __asan_memset+0x27/0x50 [ 14.247520] kmalloc_oob_memset_16+0x166/0x330 [ 14.247556] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 14.247593] ? __schedule+0x10cc/0x2b60 [ 14.247628] ? __pfx_read_tsc+0x10/0x10 [ 14.247661] ? ktime_get_ts64+0x86/0x230 [ 14.247699] kunit_try_run_case+0x1a5/0x480 [ 14.247739] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.247774] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.247812] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.247849] ? __kthread_parkme+0x82/0x180 [ 14.247885] ? preempt_count_sub+0x50/0x80 [ 14.247911] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.247935] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.247959] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.247982] kthread+0x337/0x6f0 [ 14.248001] ? trace_preempt_on+0x20/0xc0 [ 14.248027] ? __pfx_kthread+0x10/0x10 [ 14.248047] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.248068] ? calculate_sigpending+0x7b/0xa0 [ 14.248093] ? __pfx_kthread+0x10/0x10 [ 14.248114] ret_from_fork+0x116/0x1d0 [ 14.248133] ? __pfx_kthread+0x10/0x10 [ 14.248152] ret_from_fork_asm+0x1a/0x30 [ 14.248184] </TASK> [ 14.248196] [ 14.258378] Allocated by task 196: [ 14.258606] kasan_save_stack+0x45/0x70 [ 14.258882] kasan_save_track+0x18/0x40 [ 14.259106] kasan_save_alloc_info+0x3b/0x50 [ 14.260310] __kasan_kmalloc+0xb7/0xc0 [ 14.260822] __kmalloc_cache_noprof+0x189/0x420 [ 14.261041] kmalloc_oob_memset_16+0xac/0x330 [ 14.261236] kunit_try_run_case+0x1a5/0x480 [ 14.261419] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.261772] kthread+0x337/0x6f0 [ 14.262173] ret_from_fork+0x116/0x1d0 [ 14.262713] ret_from_fork_asm+0x1a/0x30 [ 14.263388] [ 14.263871] The buggy address belongs to the object at ffff8881022f9f00 [ 14.263871] which belongs to the cache kmalloc-128 of size 128 [ 14.264879] The buggy address is located 105 bytes inside of [ 14.264879] allocated 120-byte region [ffff8881022f9f00, ffff8881022f9f78) [ 14.265665] [ 14.265929] The buggy address belongs to the physical page: [ 14.266372] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022f9 [ 14.267185] flags: 0x200000000000000(node=0|zone=2) [ 14.267770] page_type: f5(slab) [ 14.268039] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.268769] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.268987] page dumped because: kasan: bad access detected [ 14.269471] [ 14.269579] Memory state around the buggy address: [ 14.269942] ffff8881022f9e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.270533] ffff8881022f9e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.271357] >ffff8881022f9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.272045] ^ [ 14.272669] ffff8881022f9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.273263] ffff8881022fa000: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc [ 14.273847] ==================================================================