Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.265095] ================================================================== [ 20.265330] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 20.265505] Read of size 1 at addr fff00000c78969d8 by task kunit_try_catch/257 [ 20.265608] [ 20.265727] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 20.265965] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.266063] Hardware name: linux,dummy-virt (DT) [ 20.266172] Call trace: [ 20.266247] show_stack+0x20/0x38 (C) [ 20.266429] dump_stack_lvl+0x8c/0xd0 [ 20.266577] print_report+0x118/0x608 [ 20.266727] kasan_report+0xdc/0x128 [ 20.266868] __asan_report_load1_noabort+0x20/0x30 [ 20.266980] memcmp+0x198/0x1d8 [ 20.267071] kasan_memcmp+0x16c/0x300 [ 20.267205] kunit_try_run_case+0x170/0x3f0 [ 20.267334] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.267441] kthread+0x328/0x630 [ 20.267545] ret_from_fork+0x10/0x20 [ 20.267643] [ 20.267678] Allocated by task 257: [ 20.267742] kasan_save_stack+0x3c/0x68 [ 20.267830] kasan_save_track+0x20/0x40 [ 20.267939] kasan_save_alloc_info+0x40/0x58 [ 20.268135] __kasan_kmalloc+0xd4/0xd8 [ 20.268251] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.268405] kasan_memcmp+0xbc/0x300 [ 20.268489] kunit_try_run_case+0x170/0x3f0 [ 20.268583] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.268694] kthread+0x328/0x630 [ 20.268873] ret_from_fork+0x10/0x20 [ 20.269054] [ 20.269127] The buggy address belongs to the object at fff00000c78969c0 [ 20.269127] which belongs to the cache kmalloc-32 of size 32 [ 20.269349] The buggy address is located 0 bytes to the right of [ 20.269349] allocated 24-byte region [fff00000c78969c0, fff00000c78969d8) [ 20.269549] [ 20.269615] The buggy address belongs to the physical page: [ 20.269692] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107896 [ 20.270081] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.270207] page_type: f5(slab) [ 20.270303] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.270434] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.270582] page dumped because: kasan: bad access detected [ 20.270691] [ 20.270755] Memory state around the buggy address: [ 20.270865] fff00000c7896880: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.270969] fff00000c7896900: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.271102] >fff00000c7896980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.271199] ^ [ 20.271305] fff00000c7896a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.271430] fff00000c7896a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.271511] ==================================================================
[ 12.890882] ================================================================== [ 12.891826] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 12.892220] Read of size 1 at addr ffff8881039823d8 by task kunit_try_catch/275 [ 12.893425] [ 12.893579] CPU: 0 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 12.893630] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.893884] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.893911] Call Trace: [ 12.893926] <TASK> [ 12.893942] dump_stack_lvl+0x73/0xb0 [ 12.893972] print_report+0xd1/0x650 [ 12.893996] ? __virt_addr_valid+0x1db/0x2d0 [ 12.894020] ? memcmp+0x1b4/0x1d0 [ 12.894045] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.894068] ? memcmp+0x1b4/0x1d0 [ 12.894087] kasan_report+0x141/0x180 [ 12.894110] ? memcmp+0x1b4/0x1d0 [ 12.894133] __asan_report_load1_noabort+0x18/0x20 [ 12.894154] memcmp+0x1b4/0x1d0 [ 12.894175] kasan_memcmp+0x18f/0x390 [ 12.894195] ? trace_hardirqs_on+0x37/0xe0 [ 12.894218] ? __pfx_kasan_memcmp+0x10/0x10 [ 12.894238] ? finish_task_switch.isra.0+0x153/0x700 [ 12.894260] ? __switch_to+0x47/0xf50 [ 12.894288] ? __pfx_read_tsc+0x10/0x10 [ 12.894309] ? ktime_get_ts64+0x86/0x230 [ 12.894334] kunit_try_run_case+0x1a5/0x480 [ 12.894355] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.894384] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.894409] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.894434] ? __kthread_parkme+0x82/0x180 [ 12.894454] ? preempt_count_sub+0x50/0x80 [ 12.894476] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.894497] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.894521] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.894545] kthread+0x337/0x6f0 [ 12.894564] ? trace_preempt_on+0x20/0xc0 [ 12.894586] ? __pfx_kthread+0x10/0x10 [ 12.894607] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.894629] ? calculate_sigpending+0x7b/0xa0 [ 12.894654] ? __pfx_kthread+0x10/0x10 [ 12.894675] ret_from_fork+0x116/0x1d0 [ 12.894693] ? __pfx_kthread+0x10/0x10 [ 12.894739] ret_from_fork_asm+0x1a/0x30 [ 12.894769] </TASK> [ 12.894780] [ 12.909371] Allocated by task 275: [ 12.909546] kasan_save_stack+0x45/0x70 [ 12.909885] kasan_save_track+0x18/0x40 [ 12.910300] kasan_save_alloc_info+0x3b/0x50 [ 12.910517] __kasan_kmalloc+0xb7/0xc0 [ 12.910874] __kmalloc_cache_noprof+0x189/0x420 [ 12.911477] kasan_memcmp+0xb7/0x390 [ 12.911660] kunit_try_run_case+0x1a5/0x480 [ 12.911877] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.912240] kthread+0x337/0x6f0 [ 12.912665] ret_from_fork+0x116/0x1d0 [ 12.913057] ret_from_fork_asm+0x1a/0x30 [ 12.913270] [ 12.913351] The buggy address belongs to the object at ffff8881039823c0 [ 12.913351] which belongs to the cache kmalloc-32 of size 32 [ 12.914397] The buggy address is located 0 bytes to the right of [ 12.914397] allocated 24-byte region [ffff8881039823c0, ffff8881039823d8) [ 12.915204] [ 12.915548] The buggy address belongs to the physical page: [ 12.915931] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103982 [ 12.916399] flags: 0x200000000000000(node=0|zone=2) [ 12.916634] page_type: f5(slab) [ 12.917020] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 12.917533] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 12.918180] page dumped because: kasan: bad access detected [ 12.918530] [ 12.918611] Memory state around the buggy address: [ 12.919102] ffff888103982280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 12.919549] ffff888103982300: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 12.920255] >ffff888103982380: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 12.920578] ^ [ 12.921113] ffff888103982400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.921507] ffff888103982480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.922004] ==================================================================