Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 27.667083] ================================================================== [ 27.667282] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 27.667476] Write of size 16 at addr fff00000c5a34e69 by task kunit_try_catch/180 [ 27.668243] [ 27.668460] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 27.668974] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.669064] Hardware name: linux,dummy-virt (DT) [ 27.669155] Call trace: [ 27.669221] show_stack+0x20/0x38 (C) [ 27.669738] dump_stack_lvl+0x8c/0xd0 [ 27.669986] print_report+0x118/0x608 [ 27.670317] kasan_report+0xdc/0x128 [ 27.670539] kasan_check_range+0x100/0x1a8 [ 27.670810] __asan_memset+0x34/0x78 [ 27.671045] kmalloc_oob_memset_16+0x150/0x2f8 [ 27.671344] kunit_try_run_case+0x170/0x3f0 [ 27.671834] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.671981] kthread+0x328/0x630 [ 27.672111] ret_from_fork+0x10/0x20 [ 27.672252] [ 27.672308] Allocated by task 180: [ 27.672388] kasan_save_stack+0x3c/0x68 [ 27.672923] kasan_save_track+0x20/0x40 [ 27.673385] kasan_save_alloc_info+0x40/0x58 [ 27.673544] __kasan_kmalloc+0xd4/0xd8 [ 27.673651] __kmalloc_cache_noprof+0x15c/0x3c0 [ 27.673968] kmalloc_oob_memset_16+0xb0/0x2f8 [ 27.674547] kunit_try_run_case+0x170/0x3f0 [ 27.674763] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.675055] kthread+0x328/0x630 [ 27.675608] ret_from_fork+0x10/0x20 [ 27.675742] [ 27.675913] The buggy address belongs to the object at fff00000c5a34e00 [ 27.675913] which belongs to the cache kmalloc-128 of size 128 [ 27.676303] The buggy address is located 105 bytes inside of [ 27.676303] allocated 120-byte region [fff00000c5a34e00, fff00000c5a34e78) [ 27.676768] [ 27.676920] The buggy address belongs to the physical page: [ 27.677070] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a34 [ 27.677430] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.677818] page_type: f5(slab) [ 27.678080] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 27.678337] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 27.678884] page dumped because: kasan: bad access detected [ 27.678999] [ 27.679053] Memory state around the buggy address: [ 27.679146] fff00000c5a34d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.679797] fff00000c5a34d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.680117] >fff00000c5a34e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 27.680256] ^ [ 27.680357] fff00000c5a34e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.680483] fff00000c5a34f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.680592] ==================================================================
[ 12.718802] ================================================================== [ 12.719216] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.719855] Write of size 16 at addr ffff888102a2d669 by task kunit_try_catch/197 [ 12.720098] [ 12.720189] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 12.720236] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.720248] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.720270] Call Trace: [ 12.720281] <TASK> [ 12.720312] dump_stack_lvl+0x73/0xb0 [ 12.720341] print_report+0xd1/0x650 [ 12.720363] ? __virt_addr_valid+0x1db/0x2d0 [ 12.720384] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.720406] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.720492] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.720519] kasan_report+0x141/0x180 [ 12.720542] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.720569] kasan_check_range+0x10c/0x1c0 [ 12.720590] __asan_memset+0x27/0x50 [ 12.720611] kmalloc_oob_memset_16+0x166/0x330 [ 12.720634] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.720659] ? __schedule+0x10cc/0x2b30 [ 12.720681] ? __pfx_read_tsc+0x10/0x10 [ 12.720700] ? ktime_get_ts64+0x86/0x230 [ 12.720725] kunit_try_run_case+0x1a5/0x480 [ 12.720748] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.720769] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.720792] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.720813] ? __kthread_parkme+0x82/0x180 [ 12.720836] ? preempt_count_sub+0x50/0x80 [ 12.720863] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.720925] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.720949] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.720971] kthread+0x337/0x6f0 [ 12.720987] ? trace_preempt_on+0x20/0xc0 [ 12.721009] ? __pfx_kthread+0x10/0x10 [ 12.721027] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.721047] ? calculate_sigpending+0x7b/0xa0 [ 12.721068] ? __pfx_kthread+0x10/0x10 [ 12.721085] ret_from_fork+0x41/0x80 [ 12.721105] ? __pfx_kthread+0x10/0x10 [ 12.721123] ret_from_fork_asm+0x1a/0x30 [ 12.721154] </TASK> [ 12.721165] [ 12.732259] Allocated by task 197: [ 12.732710] kasan_save_stack+0x45/0x70 [ 12.732930] kasan_save_track+0x18/0x40 [ 12.733278] kasan_save_alloc_info+0x3b/0x50 [ 12.733696] __kasan_kmalloc+0xb7/0xc0 [ 12.733852] __kmalloc_cache_noprof+0x189/0x420 [ 12.734266] kmalloc_oob_memset_16+0xac/0x330 [ 12.734641] kunit_try_run_case+0x1a5/0x480 [ 12.734851] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.735374] kthread+0x337/0x6f0 [ 12.735683] ret_from_fork+0x41/0x80 [ 12.735829] ret_from_fork_asm+0x1a/0x30 [ 12.736110] [ 12.736307] The buggy address belongs to the object at ffff888102a2d600 [ 12.736307] which belongs to the cache kmalloc-128 of size 128 [ 12.736986] The buggy address is located 105 bytes inside of [ 12.736986] allocated 120-byte region [ffff888102a2d600, ffff888102a2d678) [ 12.737724] [ 12.738038] The buggy address belongs to the physical page: [ 12.738286] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a2d [ 12.738763] flags: 0x200000000000000(node=0|zone=2) [ 12.739146] page_type: f5(slab) [ 12.739276] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.739849] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.740244] page dumped because: kasan: bad access detected [ 12.740563] [ 12.740646] Memory state around the buggy address: [ 12.741063] ffff888102a2d500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.741392] ffff888102a2d580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.741805] >ffff888102a2d600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.742381] ^ [ 12.742744] ffff888102a2d680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.743169] ffff888102a2d700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.743473] ==================================================================