Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.903344] ================================================================== [ 22.904382] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 22.905074] Write of size 16 at addr fff00000c6414169 by task kunit_try_catch/167 [ 22.906365] [ 22.906639] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 22.906819] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.906898] Hardware name: linux,dummy-virt (DT) [ 22.906977] Call trace: [ 22.907039] show_stack+0x20/0x38 (C) [ 22.907160] dump_stack_lvl+0x8c/0xd0 [ 22.907282] print_report+0x118/0x608 [ 22.907410] kasan_report+0xdc/0x128 [ 22.907538] kasan_check_range+0x100/0x1a8 [ 22.907663] __asan_memset+0x34/0x78 [ 22.907785] kmalloc_oob_memset_16+0x150/0x2f8 [ 22.908012] kunit_try_run_case+0x170/0x3f0 [ 22.908156] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.908381] kthread+0x318/0x620 [ 22.908489] ret_from_fork+0x10/0x20 [ 22.908552] [ 22.916242] Allocated by task 167: [ 22.916733] kasan_save_stack+0x3c/0x68 [ 22.917431] kasan_save_track+0x20/0x40 [ 22.917871] kasan_save_alloc_info+0x40/0x58 [ 22.919216] __kasan_kmalloc+0xd4/0xd8 [ 22.919685] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.920452] kmalloc_oob_memset_16+0xb0/0x2f8 [ 22.921275] kunit_try_run_case+0x170/0x3f0 [ 22.922009] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.922617] kthread+0x318/0x620 [ 22.923126] ret_from_fork+0x10/0x20 [ 22.923610] [ 22.923934] The buggy address belongs to the object at fff00000c6414100 [ 22.923934] which belongs to the cache kmalloc-128 of size 128 [ 22.925056] The buggy address is located 105 bytes inside of [ 22.925056] allocated 120-byte region [fff00000c6414100, fff00000c6414178) [ 22.926579] [ 22.926910] The buggy address belongs to the physical page: [ 22.927503] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106414 [ 22.928333] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.929627] page_type: f5(slab) [ 22.929992] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.931102] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.931943] page dumped because: kasan: bad access detected [ 22.932540] [ 22.932876] Memory state around the buggy address: [ 22.933728] fff00000c6414000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.934429] fff00000c6414080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.935297] >fff00000c6414100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.936125] ^ [ 22.936823] fff00000c6414180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.937872] fff00000c6414200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.938610] ==================================================================
[ 17.794149] ================================================================== [ 17.795191] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x167/0x330 [ 17.796131] Write of size 16 at addr ffff8881024bfe69 by task kunit_try_catch/186 [ 17.796799] [ 17.796988] CPU: 0 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 17.797046] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.797065] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.797103] Call Trace: [ 17.797125] <TASK> [ 17.797150] dump_stack_lvl+0x73/0xb0 [ 17.797197] print_report+0xd1/0x650 [ 17.797227] ? __virt_addr_valid+0x1db/0x2d0 [ 17.797256] ? kmalloc_oob_memset_16+0x167/0x330 [ 17.797282] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.797314] ? kmalloc_oob_memset_16+0x167/0x330 [ 17.797340] kasan_report+0x140/0x180 [ 17.797368] ? kmalloc_oob_memset_16+0x167/0x330 [ 17.797400] kasan_check_range+0x10c/0x1c0 [ 17.797428] __asan_memset+0x27/0x50 [ 17.797456] kmalloc_oob_memset_16+0x167/0x330 [ 17.797483] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 17.797510] ? __schedule+0xce8/0x2840 [ 17.797540] ? __pfx_read_tsc+0x10/0x10 [ 17.797568] ? ktime_get_ts64+0x86/0x230 [ 17.797600] kunit_try_run_case+0x1a6/0x480 [ 17.797631] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.797657] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 17.797686] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.797714] ? __kthread_parkme+0x82/0x160 [ 17.797742] ? preempt_count_sub+0x50/0x80 [ 17.797772] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.797800] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.797831] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.797918] kthread+0x324/0x6e0 [ 17.797968] ? trace_preempt_on+0x20/0xc0 [ 17.798023] ? __pfx_kthread+0x10/0x10 [ 17.798078] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.798193] ? calculate_sigpending+0x7b/0xa0 [ 17.798250] ? __pfx_kthread+0x10/0x10 [ 17.798310] ret_from_fork+0x41/0x80 [ 17.798362] ? __pfx_kthread+0x10/0x10 [ 17.798417] ret_from_fork_asm+0x1a/0x30 [ 17.798497] </TASK> [ 17.798522] [ 17.813911] Allocated by task 186: [ 17.814766] kasan_save_stack+0x45/0x70 [ 17.815260] kasan_save_track+0x18/0x40 [ 17.815673] kasan_save_alloc_info+0x3b/0x50 [ 17.816135] __kasan_kmalloc+0xb7/0xc0 [ 17.816848] __kmalloc_cache_noprof+0x18a/0x420 [ 17.817114] kmalloc_oob_memset_16+0xad/0x330 [ 17.817652] kunit_try_run_case+0x1a6/0x480 [ 17.818212] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.819154] kthread+0x324/0x6e0 [ 17.819486] ret_from_fork+0x41/0x80 [ 17.819898] ret_from_fork_asm+0x1a/0x30 [ 17.820492] [ 17.820709] The buggy address belongs to the object at ffff8881024bfe00 [ 17.820709] which belongs to the cache kmalloc-128 of size 128 [ 17.821202] The buggy address is located 105 bytes inside of [ 17.821202] allocated 120-byte region [ffff8881024bfe00, ffff8881024bfe78) [ 17.822656] [ 17.823182] The buggy address belongs to the physical page: [ 17.824066] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024bf [ 17.824903] flags: 0x200000000000000(node=0|zone=2) [ 17.825228] page_type: f5(slab) [ 17.825592] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 17.826140] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.827298] page dumped because: kasan: bad access detected [ 17.827926] [ 17.828073] Memory state around the buggy address: [ 17.828690] ffff8881024bfd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.829246] ffff8881024bfd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.830158] >ffff8881024bfe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.831076] ^ [ 17.831811] ffff8881024bfe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.832240] ffff8881024bff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.833178] ==================================================================