Date
May 23, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.967755] ================================================================== [ 30.969148] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 30.969370] Read of size 1 at addr fff00000c77a2c18 by task kunit_try_catch/259 [ 30.969549] [ 30.969640] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT [ 30.969767] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.969812] Hardware name: linux,dummy-virt (DT) [ 30.969862] Call trace: [ 30.969900] show_stack+0x20/0x38 (C) [ 30.969981] dump_stack_lvl+0x8c/0xd0 [ 30.970056] print_report+0x118/0x608 [ 30.970127] kasan_report+0xdc/0x128 [ 30.970193] __asan_report_load1_noabort+0x20/0x30 [ 30.970268] memcmp+0x198/0x1d8 [ 30.970332] kasan_memcmp+0x16c/0x300 [ 30.970402] kunit_try_run_case+0x170/0x3f0 [ 30.970643] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.971615] kthread+0x328/0x630 [ 30.972794] ret_from_fork+0x10/0x20 [ 30.973116] [ 30.973267] Allocated by task 259: [ 30.973494] kasan_save_stack+0x3c/0x68 [ 30.973747] kasan_save_track+0x20/0x40 [ 30.973924] kasan_save_alloc_info+0x40/0x58 [ 30.974020] __kasan_kmalloc+0xd4/0xd8 [ 30.974108] __kmalloc_cache_noprof+0x15c/0x3c0 [ 30.974622] kasan_memcmp+0xbc/0x300 [ 30.974874] kunit_try_run_case+0x170/0x3f0 [ 30.975397] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.975736] kthread+0x328/0x630 [ 30.975935] ret_from_fork+0x10/0x20 [ 30.976053] [ 30.976261] The buggy address belongs to the object at fff00000c77a2c00 [ 30.976261] which belongs to the cache kmalloc-32 of size 32 [ 30.976475] The buggy address is located 0 bytes to the right of [ 30.976475] allocated 24-byte region [fff00000c77a2c00, fff00000c77a2c18) [ 30.976685] [ 30.977130] The buggy address belongs to the physical page: [ 30.977246] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077a2 [ 30.977511] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.977860] page_type: f5(slab) [ 30.978099] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 30.978646] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 30.978948] page dumped because: kasan: bad access detected [ 30.979328] [ 30.979397] Memory state around the buggy address: [ 30.979510] fff00000c77a2b00: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 30.979649] fff00000c77a2b80: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 30.979790] >fff00000c77a2c00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.979911] ^ [ 30.980007] fff00000c77a2c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.980147] fff00000c77a2d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.980273] ==================================================================
[ 14.484625] ================================================================== [ 14.485151] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.485501] Read of size 1 at addr ffff888102a4c418 by task kunit_try_catch/276 [ 14.485790] [ 14.485954] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7 #1 PREEMPT(voluntary) [ 14.486003] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.486016] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.486038] Call Trace: [ 14.486051] <TASK> [ 14.486067] dump_stack_lvl+0x73/0xb0 [ 14.486094] print_report+0xd1/0x650 [ 14.486117] ? __virt_addr_valid+0x1db/0x2d0 [ 14.486140] ? memcmp+0x1b4/0x1d0 [ 14.486157] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.486180] ? memcmp+0x1b4/0x1d0 [ 14.486199] kasan_report+0x141/0x180 [ 14.486221] ? memcmp+0x1b4/0x1d0 [ 14.486244] __asan_report_load1_noabort+0x18/0x20 [ 14.486265] memcmp+0x1b4/0x1d0 [ 14.486285] kasan_memcmp+0x18f/0x390 [ 14.486319] ? trace_hardirqs_on+0x37/0xe0 [ 14.486343] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.486366] ? __kasan_check_write+0x18/0x20 [ 14.486385] ? queued_spin_lock_slowpath+0x116/0xb40 [ 14.486410] ? __pfx_queued_spin_lock_slowpath+0x10/0x10 [ 14.486446] ? __pfx_read_tsc+0x10/0x10 [ 14.486467] ? ktime_get_ts64+0x86/0x230 [ 14.486492] kunit_try_run_case+0x1a5/0x480 [ 14.486517] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.486539] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 14.486561] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.486584] ? __kthread_parkme+0x82/0x180 [ 14.486606] ? preempt_count_sub+0x50/0x80 [ 14.486631] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.486655] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.486682] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.486705] kthread+0x337/0x6f0 [ 14.486722] ? trace_preempt_on+0x20/0xc0 [ 14.486744] ? __pfx_kthread+0x10/0x10 [ 14.486763] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.486783] ? calculate_sigpending+0x7b/0xa0 [ 14.486804] ? __pfx_kthread+0x10/0x10 [ 14.486822] ret_from_fork+0x41/0x80 [ 14.486843] ? __pfx_kthread+0x10/0x10 [ 14.486861] ret_from_fork_asm+0x1a/0x30 [ 14.486909] </TASK> [ 14.486920] [ 14.494624] Allocated by task 276: [ 14.494823] kasan_save_stack+0x45/0x70 [ 14.495037] kasan_save_track+0x18/0x40 [ 14.495320] kasan_save_alloc_info+0x3b/0x50 [ 14.495501] __kasan_kmalloc+0xb7/0xc0 [ 14.495664] __kmalloc_cache_noprof+0x189/0x420 [ 14.496011] kasan_memcmp+0xb7/0x390 [ 14.496193] kunit_try_run_case+0x1a5/0x480 [ 14.496353] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.496528] kthread+0x337/0x6f0 [ 14.496685] ret_from_fork+0x41/0x80 [ 14.496890] ret_from_fork_asm+0x1a/0x30 [ 14.497100] [ 14.497200] The buggy address belongs to the object at ffff888102a4c400 [ 14.497200] which belongs to the cache kmalloc-32 of size 32 [ 14.497716] The buggy address is located 0 bytes to the right of [ 14.497716] allocated 24-byte region [ffff888102a4c400, ffff888102a4c418) [ 14.498082] [ 14.498156] The buggy address belongs to the physical page: [ 14.498730] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a4c [ 14.499251] flags: 0x200000000000000(node=0|zone=2) [ 14.499735] page_type: f5(slab) [ 14.499969] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.500290] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.500625] page dumped because: kasan: bad access detected [ 14.500819] [ 14.500892] Memory state around the buggy address: [ 14.501051] ffff888102a4c300: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.501269] ffff888102a4c380: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.502031] >ffff888102a4c400: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.502370] ^ [ 14.502565] ffff888102a4c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.502835] ffff888102a4c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.503066] ==================================================================