Date
June 25, 2025, 8:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 28.867271] ================================================================== [ 28.867334] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 28.867682] Read of size 1 at addr fff00000c785d8d8 by task kunit_try_catch/269 [ 28.867759] [ 28.867802] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT [ 28.867908] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.868050] Hardware name: linux,dummy-virt (DT) [ 28.868097] Call trace: [ 28.868133] show_stack+0x20/0x38 (C) [ 28.868209] dump_stack_lvl+0x8c/0xd0 [ 28.868259] print_report+0x118/0x608 [ 28.868308] kasan_report+0xdc/0x128 [ 28.868357] __asan_report_load1_noabort+0x20/0x30 [ 28.868419] memcmp+0x198/0x1d8 [ 28.868463] kasan_memcmp+0x16c/0x300 [ 28.868512] kunit_try_run_case+0x170/0x3f0 [ 28.868562] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.868616] kthread+0x328/0x630 [ 28.868819] ret_from_fork+0x10/0x20 [ 28.869032] [ 28.869054] Allocated by task 269: [ 28.869112] kasan_save_stack+0x3c/0x68 [ 28.869265] kasan_save_track+0x20/0x40 [ 28.869332] kasan_save_alloc_info+0x40/0x58 [ 28.869512] __kasan_kmalloc+0xd4/0xd8 [ 28.869590] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.870067] kasan_memcmp+0xbc/0x300 [ 28.870183] kunit_try_run_case+0x170/0x3f0 [ 28.870263] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.870440] kthread+0x328/0x630 [ 28.870517] ret_from_fork+0x10/0x20 [ 28.870555] [ 28.870597] The buggy address belongs to the object at fff00000c785d8c0 [ 28.870597] which belongs to the cache kmalloc-32 of size 32 [ 28.870688] The buggy address is located 0 bytes to the right of [ 28.870688] allocated 24-byte region [fff00000c785d8c0, fff00000c785d8d8) [ 28.870754] [ 28.870790] The buggy address belongs to the physical page: [ 28.870834] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10785d [ 28.870905] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.870966] page_type: f5(slab) [ 28.871020] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 28.871091] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 28.871135] page dumped because: kasan: bad access detected [ 28.871166] [ 28.871197] Memory state around the buggy address: [ 28.871250] fff00000c785d780: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.871301] fff00000c785d800: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 28.871353] >fff00000c785d880: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.871392] ^ [ 28.871448] fff00000c785d900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.871501] fff00000c785d980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.871552] ==================================================================
[ 23.713445] ================================================================== [ 23.714079] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 23.714394] Read of size 1 at addr ffff888102596e98 by task kunit_try_catch/286 [ 23.714662] [ 23.714764] CPU: 0 UID: 0 PID: 286 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250625 #1 PREEMPT(voluntary) [ 23.714813] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.714826] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.714847] Call Trace: [ 23.714859] <TASK> [ 23.714876] dump_stack_lvl+0x73/0xb0 [ 23.714900] print_report+0xd1/0x650 [ 23.714923] ? __virt_addr_valid+0x1db/0x2d0 [ 23.714961] ? memcmp+0x1b4/0x1d0 [ 23.714995] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.715020] ? memcmp+0x1b4/0x1d0 [ 23.715040] kasan_report+0x141/0x180 [ 23.715061] ? memcmp+0x1b4/0x1d0 [ 23.715084] __asan_report_load1_noabort+0x18/0x20 [ 23.715106] memcmp+0x1b4/0x1d0 [ 23.715126] kasan_memcmp+0x18f/0x390 [ 23.715145] ? trace_hardirqs_on+0x37/0xe0 [ 23.715168] ? __pfx_kasan_memcmp+0x10/0x10 [ 23.715186] ? finish_task_switch.isra.0+0x153/0x700 [ 23.715207] ? __switch_to+0x47/0xf50 [ 23.715235] ? __pfx_read_tsc+0x10/0x10 [ 23.715256] ? ktime_get_ts64+0x86/0x230 [ 23.715280] kunit_try_run_case+0x1a5/0x480 [ 23.715308] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.715349] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.715369] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.715394] ? __kthread_parkme+0x82/0x180 [ 23.715414] ? preempt_count_sub+0x50/0x80 [ 23.715435] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.715459] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.715481] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.715503] kthread+0x337/0x6f0 [ 23.715522] ? trace_preempt_on+0x20/0xc0 [ 23.715542] ? __pfx_kthread+0x10/0x10 [ 23.715561] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.715583] ? calculate_sigpending+0x7b/0xa0 [ 23.715607] ? __pfx_kthread+0x10/0x10 [ 23.715627] ret_from_fork+0x116/0x1d0 [ 23.715645] ? __pfx_kthread+0x10/0x10 [ 23.715664] ret_from_fork_asm+0x1a/0x30 [ 23.715692] </TASK> [ 23.715702] [ 23.722392] Allocated by task 286: [ 23.722510] kasan_save_stack+0x45/0x70 [ 23.722641] kasan_save_track+0x18/0x40 [ 23.722761] kasan_save_alloc_info+0x3b/0x50 [ 23.722982] __kasan_kmalloc+0xb7/0xc0 [ 23.723201] __kmalloc_cache_noprof+0x189/0x420 [ 23.723439] kasan_memcmp+0xb7/0x390 [ 23.723620] kunit_try_run_case+0x1a5/0x480 [ 23.723825] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.724096] kthread+0x337/0x6f0 [ 23.724284] ret_from_fork+0x116/0x1d0 [ 23.724474] ret_from_fork_asm+0x1a/0x30 [ 23.724661] [ 23.724728] The buggy address belongs to the object at ffff888102596e80 [ 23.724728] which belongs to the cache kmalloc-32 of size 32 [ 23.725140] The buggy address is located 0 bytes to the right of [ 23.725140] allocated 24-byte region [ffff888102596e80, ffff888102596e98) [ 23.725879] [ 23.725996] The buggy address belongs to the physical page: [ 23.726306] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102596 [ 23.726551] flags: 0x200000000000000(node=0|zone=2) [ 23.726775] page_type: f5(slab) [ 23.726963] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 23.727303] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 23.727512] page dumped because: kasan: bad access detected [ 23.727667] [ 23.727726] Memory state around the buggy address: [ 23.727870] ffff888102596d80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.728176] ffff888102596e00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.728479] >ffff888102596e80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.728820] ^ [ 23.729199] ffff888102596f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.729404] ffff888102596f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.729601] ==================================================================