Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.000746] ================================================================== [ 19.000817] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 19.000884] Read of size 1 at addr fff00000c7889518 by task kunit_try_catch/257 [ 19.000937] [ 19.000970] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 19.001069] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.001102] Hardware name: linux,dummy-virt (DT) [ 19.001136] Call trace: [ 19.001161] show_stack+0x20/0x38 (C) [ 19.001215] dump_stack_lvl+0x8c/0xd0 [ 19.001263] print_report+0x118/0x608 [ 19.001311] kasan_report+0xdc/0x128 [ 19.001356] __asan_report_load1_noabort+0x20/0x30 [ 19.001409] memcmp+0x198/0x1d8 [ 19.001954] kasan_memcmp+0x16c/0x300 [ 19.002018] kunit_try_run_case+0x170/0x3f0 [ 19.002082] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.002140] kthread+0x328/0x630 [ 19.002187] ret_from_fork+0x10/0x20 [ 19.002239] [ 19.002758] Allocated by task 257: [ 19.003166] kasan_save_stack+0x3c/0x68 [ 19.003477] kasan_save_track+0x20/0x40 [ 19.003598] kasan_save_alloc_info+0x40/0x58 [ 19.004074] __kasan_kmalloc+0xd4/0xd8 [ 19.004315] __kmalloc_cache_noprof+0x15c/0x3c0 [ 19.004738] kasan_memcmp+0xbc/0x300 [ 19.004929] kunit_try_run_case+0x170/0x3f0 [ 19.005199] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.005482] kthread+0x328/0x630 [ 19.005651] ret_from_fork+0x10/0x20 [ 19.005870] [ 19.006050] The buggy address belongs to the object at fff00000c7889500 [ 19.006050] which belongs to the cache kmalloc-32 of size 32 [ 19.006119] The buggy address is located 0 bytes to the right of [ 19.006119] allocated 24-byte region [fff00000c7889500, fff00000c7889518) [ 19.006206] [ 19.006229] The buggy address belongs to the physical page: [ 19.006261] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107889 [ 19.006340] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.006427] page_type: f5(slab) [ 19.006471] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.006524] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.006573] page dumped because: kasan: bad access detected [ 19.006610] [ 19.006637] Memory state around the buggy address: [ 19.006706] fff00000c7889400: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 19.006759] fff00000c7889480: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.006840] >fff00000c7889500: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.006882] ^ [ 19.006958] fff00000c7889580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.007005] fff00000c7889600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.007054] ==================================================================
[ 18.894463] ================================================================== [ 18.894934] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 18.895708] Read of size 1 at addr ffff888102b653d8 by task kunit_try_catch/274 [ 18.897010] [ 18.897202] CPU: 1 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 18.897320] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.897344] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.897386] Call Trace: [ 18.897413] <TASK> [ 18.897484] dump_stack_lvl+0x73/0xb0 [ 18.897553] print_report+0xd1/0x650 [ 18.897594] ? __virt_addr_valid+0x1db/0x2d0 [ 18.897629] ? memcmp+0x1b4/0x1d0 [ 18.897674] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.897727] ? memcmp+0x1b4/0x1d0 [ 18.897750] kasan_report+0x141/0x180 [ 18.897772] ? memcmp+0x1b4/0x1d0 [ 18.897798] __asan_report_load1_noabort+0x18/0x20 [ 18.897821] memcmp+0x1b4/0x1d0 [ 18.897845] kasan_memcmp+0x18f/0x390 [ 18.897869] ? __pfx_kasan_memcmp+0x10/0x10 [ 18.897890] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 18.897919] ? __pfx_kasan_memcmp+0x10/0x10 [ 18.897945] kunit_try_run_case+0x1a5/0x480 [ 18.897971] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.897994] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.898017] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.898045] ? __kthread_parkme+0x82/0x180 [ 18.898096] ? preempt_count_sub+0x50/0x80 [ 18.898138] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.898163] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.898188] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.898212] kthread+0x337/0x6f0 [ 18.898232] ? trace_preempt_on+0x20/0xc0 [ 18.898275] ? __pfx_kthread+0x10/0x10 [ 18.898302] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.898324] ? calculate_sigpending+0x7b/0xa0 [ 18.898350] ? __pfx_kthread+0x10/0x10 [ 18.898373] ret_from_fork+0x116/0x1d0 [ 18.898394] ? __pfx_kthread+0x10/0x10 [ 18.898416] ret_from_fork_asm+0x1a/0x30 [ 18.898448] </TASK> [ 18.898462] [ 18.911604] Allocated by task 274: [ 18.912200] kasan_save_stack+0x45/0x70 [ 18.912628] kasan_save_track+0x18/0x40 [ 18.913013] kasan_save_alloc_info+0x3b/0x50 [ 18.913480] __kasan_kmalloc+0xb7/0xc0 [ 18.913699] __kmalloc_cache_noprof+0x189/0x420 [ 18.914138] kasan_memcmp+0xb7/0x390 [ 18.914468] kunit_try_run_case+0x1a5/0x480 [ 18.914723] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.915374] kthread+0x337/0x6f0 [ 18.915949] ret_from_fork+0x116/0x1d0 [ 18.916319] ret_from_fork_asm+0x1a/0x30 [ 18.916559] [ 18.916664] The buggy address belongs to the object at ffff888102b653c0 [ 18.916664] which belongs to the cache kmalloc-32 of size 32 [ 18.917828] The buggy address is located 0 bytes to the right of [ 18.917828] allocated 24-byte region [ffff888102b653c0, ffff888102b653d8) [ 18.918708] [ 18.918910] The buggy address belongs to the physical page: [ 18.919540] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b65 [ 18.919930] flags: 0x200000000000000(node=0|zone=2) [ 18.920276] page_type: f5(slab) [ 18.920588] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 18.921432] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.921950] page dumped because: kasan: bad access detected [ 18.922842] [ 18.922918] Memory state around the buggy address: [ 18.923055] ffff888102b65280: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.923960] ffff888102b65300: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 18.924764] >ffff888102b65380: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.925695] ^ [ 18.926486] ffff888102b65400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.926886] ffff888102b65480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.927867] ==================================================================