Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.259614] ================================================================== [ 22.259795] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 22.259993] Read of size 1 at addr fff00000c5941e58 by task kunit_try_catch/258 [ 22.260148] [ 22.260232] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 22.260486] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.260549] Hardware name: linux,dummy-virt (DT) [ 22.260629] Call trace: [ 22.260682] show_stack+0x20/0x38 (C) [ 22.260845] dump_stack_lvl+0x8c/0xd0 [ 22.261012] print_report+0x118/0x608 [ 22.261219] kasan_report+0xdc/0x128 [ 22.261352] __asan_report_load1_noabort+0x20/0x30 [ 22.261508] memcmp+0x198/0x1d8 [ 22.261602] kasan_memcmp+0x16c/0x300 [ 22.261724] kunit_try_run_case+0x170/0x3f0 [ 22.261850] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.261974] kthread+0x328/0x630 [ 22.262062] ret_from_fork+0x10/0x20 [ 22.262176] [ 22.262219] Allocated by task 258: [ 22.262320] kasan_save_stack+0x3c/0x68 [ 22.262431] kasan_save_track+0x20/0x40 [ 22.262606] kasan_save_alloc_info+0x40/0x58 [ 22.262751] __kasan_kmalloc+0xd4/0xd8 [ 22.262889] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.262984] kasan_memcmp+0xbc/0x300 [ 22.263557] kunit_try_run_case+0x170/0x3f0 [ 22.263708] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.264039] kthread+0x328/0x630 [ 22.264350] ret_from_fork+0x10/0x20 [ 22.264445] [ 22.264498] The buggy address belongs to the object at fff00000c5941e40 [ 22.264498] which belongs to the cache kmalloc-32 of size 32 [ 22.264869] The buggy address is located 0 bytes to the right of [ 22.264869] allocated 24-byte region [fff00000c5941e40, fff00000c5941e58) [ 22.265036] [ 22.265087] The buggy address belongs to the physical page: [ 22.265927] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105941 [ 22.266080] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.266203] page_type: f5(slab) [ 22.266302] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 22.266434] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 22.266550] page dumped because: kasan: bad access detected [ 22.267447] [ 22.267504] Memory state around the buggy address: [ 22.267982] fff00000c5941d00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.268169] fff00000c5941d80: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 22.268486] >fff00000c5941e00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 22.268781] ^ [ 22.268960] fff00000c5941e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.269060] fff00000c5941f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.269378] ==================================================================
[ 14.521330] ================================================================== [ 14.521824] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.522354] Read of size 1 at addr ffff88810266e2d8 by task kunit_try_catch/275 [ 14.522763] [ 14.522894] CPU: 1 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.522959] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.522971] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.522991] Call Trace: [ 14.523017] <TASK> [ 14.523033] dump_stack_lvl+0x73/0xb0 [ 14.523063] print_report+0xd1/0x650 [ 14.523088] ? __virt_addr_valid+0x1db/0x2d0 [ 14.523111] ? memcmp+0x1b4/0x1d0 [ 14.523129] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.523153] ? memcmp+0x1b4/0x1d0 [ 14.523172] kasan_report+0x141/0x180 [ 14.523194] ? memcmp+0x1b4/0x1d0 [ 14.523217] __asan_report_load1_noabort+0x18/0x20 [ 14.523241] memcmp+0x1b4/0x1d0 [ 14.523261] kasan_memcmp+0x18f/0x390 [ 14.523281] ? trace_hardirqs_on+0x37/0xe0 [ 14.523305] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.523345] ? finish_task_switch.isra.0+0x153/0x700 [ 14.523369] ? __switch_to+0x47/0xf50 [ 14.523397] ? __pfx_read_tsc+0x10/0x10 [ 14.523418] ? ktime_get_ts64+0x86/0x230 [ 14.523442] kunit_try_run_case+0x1a5/0x480 [ 14.523467] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.523490] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.523529] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.523553] ? __kthread_parkme+0x82/0x180 [ 14.523574] ? preempt_count_sub+0x50/0x80 [ 14.523597] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.523622] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.523711] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.523741] kthread+0x337/0x6f0 [ 14.523775] ? trace_preempt_on+0x20/0xc0 [ 14.523797] ? __pfx_kthread+0x10/0x10 [ 14.523819] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.523840] ? calculate_sigpending+0x7b/0xa0 [ 14.523865] ? __pfx_kthread+0x10/0x10 [ 14.523886] ret_from_fork+0x116/0x1d0 [ 14.523905] ? __pfx_kthread+0x10/0x10 [ 14.523926] ret_from_fork_asm+0x1a/0x30 [ 14.523956] </TASK> [ 14.523967] [ 14.532451] Allocated by task 275: [ 14.532649] kasan_save_stack+0x45/0x70 [ 14.532894] kasan_save_track+0x18/0x40 [ 14.533136] kasan_save_alloc_info+0x3b/0x50 [ 14.533353] __kasan_kmalloc+0xb7/0xc0 [ 14.533529] __kmalloc_cache_noprof+0x189/0x420 [ 14.533842] kasan_memcmp+0xb7/0x390 [ 14.534131] kunit_try_run_case+0x1a5/0x480 [ 14.534366] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.534607] kthread+0x337/0x6f0 [ 14.534937] ret_from_fork+0x116/0x1d0 [ 14.535141] ret_from_fork_asm+0x1a/0x30 [ 14.535326] [ 14.535444] The buggy address belongs to the object at ffff88810266e2c0 [ 14.535444] which belongs to the cache kmalloc-32 of size 32 [ 14.536037] The buggy address is located 0 bytes to the right of [ 14.536037] allocated 24-byte region [ffff88810266e2c0, ffff88810266e2d8) [ 14.536559] [ 14.536673] The buggy address belongs to the physical page: [ 14.536967] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10266e [ 14.537315] flags: 0x200000000000000(node=0|zone=2) [ 14.537544] page_type: f5(slab) [ 14.537702] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.538077] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.538459] page dumped because: kasan: bad access detected [ 14.538710] [ 14.538988] Memory state around the buggy address: [ 14.539320] ffff88810266e180: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.539738] ffff88810266e200: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.539966] >ffff88810266e280: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.540176] ^ [ 14.540798] ffff88810266e300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.541148] ffff88810266e380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.541510] ==================================================================