Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.995593] ================================================================== [ 16.996132] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 16.996460] Read of size 64 at addr fff00000c5a1db04 by task kunit_try_catch/182 [ 16.996787] [ 16.996842] CPU: 1 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.996987] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.997044] Hardware name: linux,dummy-virt (DT) [ 16.997086] Call trace: [ 16.997110] show_stack+0x20/0x38 (C) [ 16.997170] dump_stack_lvl+0x8c/0xd0 [ 16.997219] print_report+0x118/0x608 [ 16.997286] kasan_report+0xdc/0x128 [ 16.997335] kasan_check_range+0x100/0x1a8 [ 16.997396] __asan_memmove+0x3c/0x98 [ 16.997449] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 16.997501] kunit_try_run_case+0x170/0x3f0 [ 16.997566] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.997621] kthread+0x328/0x630 [ 16.997664] ret_from_fork+0x10/0x20 [ 16.997713] [ 16.997731] Allocated by task 182: [ 16.997760] kasan_save_stack+0x3c/0x68 [ 16.997801] kasan_save_track+0x20/0x40 [ 16.997849] kasan_save_alloc_info+0x40/0x58 [ 16.997889] __kasan_kmalloc+0xd4/0xd8 [ 16.998299] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.998356] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 16.998549] kunit_try_run_case+0x170/0x3f0 [ 16.998618] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.998669] kthread+0x328/0x630 [ 16.998703] ret_from_fork+0x10/0x20 [ 16.998754] [ 16.998774] The buggy address belongs to the object at fff00000c5a1db00 [ 16.998774] which belongs to the cache kmalloc-64 of size 64 [ 16.998844] The buggy address is located 4 bytes inside of [ 16.998844] allocated 64-byte region [fff00000c5a1db00, fff00000c5a1db40) [ 16.998904] [ 16.998926] The buggy address belongs to the physical page: [ 16.998956] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a1d [ 16.999018] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.999076] page_type: f5(slab) [ 16.999123] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.999187] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.999228] page dumped because: kasan: bad access detected [ 16.999259] [ 16.999277] Memory state around the buggy address: [ 16.999318] fff00000c5a1da00: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 16.999389] fff00000c5a1da80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.999452] >fff00000c5a1db00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 16.999490] ^ [ 16.999523] fff00000c5a1db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.999572] fff00000c5a1dc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.999623] ==================================================================
[ 12.709121] ================================================================== [ 12.709741] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.710335] Read of size 64 at addr ffff888102798a04 by task kunit_try_catch/199 [ 12.710631] [ 12.710958] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.711065] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.711077] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.711096] Call Trace: [ 12.711107] <TASK> [ 12.711121] dump_stack_lvl+0x73/0xb0 [ 12.711174] print_report+0xd1/0x650 [ 12.711195] ? __virt_addr_valid+0x1db/0x2d0 [ 12.711217] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.711259] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.711282] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.711307] kasan_report+0x141/0x180 [ 12.711328] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.711358] kasan_check_range+0x10c/0x1c0 [ 12.711382] __asan_memmove+0x27/0x70 [ 12.711401] kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.711426] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 12.711452] ? __schedule+0x10cc/0x2b60 [ 12.711473] ? __pfx_read_tsc+0x10/0x10 [ 12.711494] ? ktime_get_ts64+0x86/0x230 [ 12.711516] kunit_try_run_case+0x1a5/0x480 [ 12.711541] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.711564] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.711588] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.711611] ? __kthread_parkme+0x82/0x180 [ 12.711632] ? preempt_count_sub+0x50/0x80 [ 12.711655] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.711680] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.711704] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.711729] kthread+0x337/0x6f0 [ 12.711747] ? trace_preempt_on+0x20/0xc0 [ 12.711769] ? __pfx_kthread+0x10/0x10 [ 12.711790] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.711857] ? calculate_sigpending+0x7b/0xa0 [ 12.711884] ? __pfx_kthread+0x10/0x10 [ 12.711905] ret_from_fork+0x116/0x1d0 [ 12.711923] ? __pfx_kthread+0x10/0x10 [ 12.711958] ret_from_fork_asm+0x1a/0x30 [ 12.711988] </TASK> [ 12.711998] [ 12.720611] Allocated by task 199: [ 12.720785] kasan_save_stack+0x45/0x70 [ 12.720987] kasan_save_track+0x18/0x40 [ 12.721455] kasan_save_alloc_info+0x3b/0x50 [ 12.721671] __kasan_kmalloc+0xb7/0xc0 [ 12.721823] __kmalloc_cache_noprof+0x189/0x420 [ 12.722165] kmalloc_memmove_invalid_size+0xac/0x330 [ 12.722421] kunit_try_run_case+0x1a5/0x480 [ 12.722652] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.722823] kthread+0x337/0x6f0 [ 12.722972] ret_from_fork+0x116/0x1d0 [ 12.723338] ret_from_fork_asm+0x1a/0x30 [ 12.723585] [ 12.723701] The buggy address belongs to the object at ffff888102798a00 [ 12.723701] which belongs to the cache kmalloc-64 of size 64 [ 12.724379] The buggy address is located 4 bytes inside of [ 12.724379] allocated 64-byte region [ffff888102798a00, ffff888102798a40) [ 12.724949] [ 12.725083] The buggy address belongs to the physical page: [ 12.725323] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102798 [ 12.725646] flags: 0x200000000000000(node=0|zone=2) [ 12.725915] page_type: f5(slab) [ 12.726106] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.726432] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.726781] page dumped because: kasan: bad access detected [ 12.727039] [ 12.727131] Memory state around the buggy address: [ 12.727347] ffff888102798900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.727656] ffff888102798980: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.727877] >ffff888102798a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 12.728109] ^ [ 12.728417] ffff888102798a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.728778] ffff888102798b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.729296] ==================================================================