Date
May 29, 2025, 7:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.633227] ================================================================== [ 21.633723] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 21.633909] Write of size 8 at addr fff00000c5d6ed71 by task kunit_try_catch/176 [ 21.634031] [ 21.634115] CPU: 1 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 21.634220] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.634250] Hardware name: linux,dummy-virt (DT) [ 21.634288] Call trace: [ 21.634316] show_stack+0x20/0x38 (C) [ 21.634474] dump_stack_lvl+0x8c/0xd0 [ 21.634587] print_report+0x118/0x608 [ 21.634681] kasan_report+0xdc/0x128 [ 21.634786] kasan_check_range+0x100/0x1a8 [ 21.634924] __asan_memset+0x34/0x78 [ 21.635034] kmalloc_oob_memset_8+0x150/0x2f8 [ 21.635152] kunit_try_run_case+0x170/0x3f0 [ 21.635275] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.635644] kthread+0x328/0x630 [ 21.635784] ret_from_fork+0x10/0x20 [ 21.636417] [ 21.636492] Allocated by task 176: [ 21.636675] kasan_save_stack+0x3c/0x68 [ 21.636860] kasan_save_track+0x20/0x40 [ 21.636965] kasan_save_alloc_info+0x40/0x58 [ 21.637063] __kasan_kmalloc+0xd4/0xd8 [ 21.637657] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.637827] kmalloc_oob_memset_8+0xb0/0x2f8 [ 21.637914] kunit_try_run_case+0x170/0x3f0 [ 21.638024] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.638146] kthread+0x328/0x630 [ 21.638235] ret_from_fork+0x10/0x20 [ 21.638326] [ 21.638392] The buggy address belongs to the object at fff00000c5d6ed00 [ 21.638392] which belongs to the cache kmalloc-128 of size 128 [ 21.638532] The buggy address is located 113 bytes inside of [ 21.638532] allocated 120-byte region [fff00000c5d6ed00, fff00000c5d6ed78) [ 21.638804] [ 21.638870] The buggy address belongs to the physical page: [ 21.638939] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105d6e [ 21.639038] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.639579] page_type: f5(slab) [ 21.639701] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.639822] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.639933] page dumped because: kasan: bad access detected [ 21.640003] [ 21.640047] Memory state around the buggy address: [ 21.640390] fff00000c5d6ec00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.640535] fff00000c5d6ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.640654] >fff00000c5d6ed00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.640787] ^ [ 21.640892] fff00000c5d6ed80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.640995] fff00000c5d6ee00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.641088] ==================================================================
[ 11.010053] ================================================================== [ 11.011807] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 11.012153] Write of size 8 at addr ffff888102896c71 by task kunit_try_catch/193 [ 11.012454] [ 11.012548] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 11.012595] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.012607] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.012640] Call Trace: [ 11.012651] <TASK> [ 11.012666] dump_stack_lvl+0x73/0xb0 [ 11.012691] print_report+0xd1/0x650 [ 11.012713] ? __virt_addr_valid+0x1db/0x2d0 [ 11.012735] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.012763] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.012785] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.012807] kasan_report+0x141/0x180 [ 11.012829] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.012855] kasan_check_range+0x10c/0x1c0 [ 11.012879] __asan_memset+0x27/0x50 [ 11.012898] kmalloc_oob_memset_8+0x166/0x330 [ 11.012921] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 11.012944] ? __schedule+0x10cc/0x2b60 [ 11.012966] ? __pfx_read_tsc+0x10/0x10 [ 11.012986] ? ktime_get_ts64+0x86/0x230 [ 11.013010] kunit_try_run_case+0x1a5/0x480 [ 11.013031] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.013050] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.013073] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.013097] ? __kthread_parkme+0x82/0x180 [ 11.013117] ? preempt_count_sub+0x50/0x80 [ 11.013140] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.013160] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.013185] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.013208] kthread+0x337/0x6f0 [ 11.013228] ? trace_preempt_on+0x20/0xc0 [ 11.013250] ? __pfx_kthread+0x10/0x10 [ 11.013270] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.013313] ? calculate_sigpending+0x7b/0xa0 [ 11.013349] ? __pfx_kthread+0x10/0x10 [ 11.013384] ret_from_fork+0x116/0x1d0 [ 11.013402] ? __pfx_kthread+0x10/0x10 [ 11.013422] ret_from_fork_asm+0x1a/0x30 [ 11.013452] </TASK> [ 11.013462] [ 11.021044] Allocated by task 193: [ 11.021225] kasan_save_stack+0x45/0x70 [ 11.021437] kasan_save_track+0x18/0x40 [ 11.021649] kasan_save_alloc_info+0x3b/0x50 [ 11.021920] __kasan_kmalloc+0xb7/0xc0 [ 11.022098] __kmalloc_cache_noprof+0x189/0x420 [ 11.022256] kmalloc_oob_memset_8+0xac/0x330 [ 11.022469] kunit_try_run_case+0x1a5/0x480 [ 11.022699] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.023110] kthread+0x337/0x6f0 [ 11.023247] ret_from_fork+0x116/0x1d0 [ 11.023385] ret_from_fork_asm+0x1a/0x30 [ 11.023547] [ 11.023664] The buggy address belongs to the object at ffff888102896c00 [ 11.023664] which belongs to the cache kmalloc-128 of size 128 [ 11.024297] The buggy address is located 113 bytes inside of [ 11.024297] allocated 120-byte region [ffff888102896c00, ffff888102896c78) [ 11.024889] [ 11.024993] The buggy address belongs to the physical page: [ 11.025220] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102896 [ 11.025505] flags: 0x200000000000000(node=0|zone=2) [ 11.025687] page_type: f5(slab) [ 11.025920] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.026273] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.026635] page dumped because: kasan: bad access detected [ 11.026963] [ 11.027062] Memory state around the buggy address: [ 11.027291] ffff888102896b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.027539] ffff888102896b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.028074] >ffff888102896c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.028385] ^ [ 11.028662] ffff888102896c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.029006] ffff888102896d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.029333] ==================================================================