Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.484396] ================================================================== [ 22.484811] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 22.485394] Write of size 128 at addr fff00000c3ebaf00 by task kunit_try_catch/174 [ 22.485758] [ 22.486010] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 22.486684] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.486823] Hardware name: linux,dummy-virt (DT) [ 22.486896] Call trace: [ 22.486954] show_stack+0x20/0x38 (C) [ 22.488899] dump_stack_lvl+0x8c/0xd0 [ 22.489071] print_report+0x118/0x608 [ 22.489374] kasan_report+0xdc/0x128 [ 22.489588] kasan_check_range+0x100/0x1a8 [ 22.489706] __asan_memset+0x34/0x78 [ 22.489807] kmalloc_oob_in_memset+0x144/0x2d0 [ 22.490237] kunit_try_run_case+0x170/0x3f0 [ 22.490554] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.490720] kthread+0x328/0x630 [ 22.490839] ret_from_fork+0x10/0x20 [ 22.490969] [ 22.491017] Allocated by task 174: [ 22.491313] kasan_save_stack+0x3c/0x68 [ 22.491565] kasan_save_track+0x20/0x40 [ 22.491682] kasan_save_alloc_info+0x40/0x58 [ 22.491777] __kasan_kmalloc+0xd4/0xd8 [ 22.491927] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.492245] kmalloc_oob_in_memset+0xb0/0x2d0 [ 22.492522] kunit_try_run_case+0x170/0x3f0 [ 22.492644] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.493020] kthread+0x328/0x630 [ 22.493259] ret_from_fork+0x10/0x20 [ 22.493713] [ 22.493904] The buggy address belongs to the object at fff00000c3ebaf00 [ 22.493904] which belongs to the cache kmalloc-128 of size 128 [ 22.494262] The buggy address is located 0 bytes inside of [ 22.494262] allocated 120-byte region [fff00000c3ebaf00, fff00000c3ebaf78) [ 22.494457] [ 22.494519] The buggy address belongs to the physical page: [ 22.494603] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103eba [ 22.494742] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.494873] page_type: f5(slab) [ 22.495439] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.495723] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.495811] page dumped because: kasan: bad access detected [ 22.495870] [ 22.495905] Memory state around the buggy address: [ 22.495967] fff00000c3ebae00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.496311] fff00000c3ebae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.496614] >fff00000c3ebaf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.496817] ^ [ 22.497065] fff00000c3ebaf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.497181] fff00000c3ebb000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.497288] ==================================================================
[ 13.739990] ================================================================== [ 13.740936] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 13.741362] Write of size 128 at addr ffff888102d90c00 by task kunit_try_catch/190 [ 13.742007] [ 13.742155] CPU: 1 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 13.742798] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.742834] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.742871] Call Trace: [ 13.742890] <TASK> [ 13.742912] dump_stack_lvl+0x73/0xb0 [ 13.742954] print_report+0xd1/0x650 [ 13.742979] ? __virt_addr_valid+0x1db/0x2d0 [ 13.743003] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.743025] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.743046] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.743067] kasan_report+0x141/0x180 [ 13.743089] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.743116] kasan_check_range+0x10c/0x1c0 [ 13.743151] __asan_memset+0x27/0x50 [ 13.743176] kmalloc_oob_in_memset+0x15f/0x320 [ 13.743200] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 13.743226] ? __schedule+0x10cc/0x2b30 [ 13.743249] ? __pfx_read_tsc+0x10/0x10 [ 13.743272] ? ktime_get_ts64+0x86/0x230 [ 13.743300] kunit_try_run_case+0x1a5/0x480 [ 13.743328] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.743350] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.743374] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.743396] ? __kthread_parkme+0x82/0x180 [ 13.743418] ? preempt_count_sub+0x50/0x80 [ 13.743444] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.743467] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.743488] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.743510] kthread+0x337/0x6f0 [ 13.743527] ? trace_preempt_on+0x20/0xc0 [ 13.743552] ? __pfx_kthread+0x10/0x10 [ 13.743595] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.743628] ? calculate_sigpending+0x7b/0xa0 [ 13.743663] ? __pfx_kthread+0x10/0x10 [ 13.743692] ret_from_fork+0x41/0x80 [ 13.743723] ? __pfx_kthread+0x10/0x10 [ 13.743751] ret_from_fork_asm+0x1a/0x30 [ 13.743797] </TASK> [ 13.743819] [ 13.758206] Allocated by task 190: [ 13.758472] kasan_save_stack+0x45/0x70 [ 13.759088] kasan_save_track+0x18/0x40 [ 13.759379] kasan_save_alloc_info+0x3b/0x50 [ 13.759620] __kasan_kmalloc+0xb7/0xc0 [ 13.759767] __kmalloc_cache_noprof+0x189/0x420 [ 13.759935] kmalloc_oob_in_memset+0xac/0x320 [ 13.760100] kunit_try_run_case+0x1a5/0x480 [ 13.762023] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.762227] kthread+0x337/0x6f0 [ 13.762363] ret_from_fork+0x41/0x80 [ 13.762499] ret_from_fork_asm+0x1a/0x30 [ 13.762654] [ 13.763631] The buggy address belongs to the object at ffff888102d90c00 [ 13.763631] which belongs to the cache kmalloc-128 of size 128 [ 13.764349] The buggy address is located 0 bytes inside of [ 13.764349] allocated 120-byte region [ffff888102d90c00, ffff888102d90c78) [ 13.764884] [ 13.764990] The buggy address belongs to the physical page: [ 13.765213] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d90 [ 13.767155] flags: 0x200000000000000(node=0|zone=2) [ 13.767354] page_type: f5(slab) [ 13.768320] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.768672] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.768891] page dumped because: kasan: bad access detected [ 13.769067] [ 13.769143] Memory state around the buggy address: [ 13.770941] ffff888102d90b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.771227] ffff888102d90b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.771627] >ffff888102d90c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.771955] ^ [ 13.774234] ffff888102d90c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.775113] ffff888102d90d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.775502] ==================================================================