Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.817673] ================================================================== [ 33.817735] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 33.817790] Read of size 1 at addr fff00000c907ca18 by task kunit_try_catch/288 [ 33.817850] [ 33.817886] CPU: 0 UID: 0 PID: 288 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 33.817973] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.818002] Hardware name: linux,dummy-virt (DT) [ 33.818040] Call trace: [ 33.818076] show_stack+0x20/0x38 (C) [ 33.818427] dump_stack_lvl+0x8c/0xd0 [ 33.818477] print_report+0x118/0x5e8 [ 33.818869] kasan_report+0xdc/0x128 [ 33.819106] __asan_report_load1_noabort+0x20/0x30 [ 33.819177] memcmp+0x198/0x1d8 [ 33.819414] kasan_memcmp+0x16c/0x300 [ 33.819482] kunit_try_run_case+0x170/0x3f0 [ 33.819533] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.819613] kthread+0x328/0x630 [ 33.819657] ret_from_fork+0x10/0x20 [ 33.819724] [ 33.819956] Allocated by task 288: [ 33.819989] kasan_save_stack+0x3c/0x68 [ 33.820050] kasan_save_track+0x20/0x40 [ 33.820105] kasan_save_alloc_info+0x40/0x58 [ 33.820403] __kasan_kmalloc+0xd4/0xd8 [ 33.820482] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.820556] kasan_memcmp+0xbc/0x300 [ 33.820596] kunit_try_run_case+0x170/0x3f0 [ 33.820933] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.821068] kthread+0x328/0x630 [ 33.821135] ret_from_fork+0x10/0x20 [ 33.821403] [ 33.821478] The buggy address belongs to the object at fff00000c907ca00 [ 33.821478] which belongs to the cache kmalloc-32 of size 32 [ 33.821643] The buggy address is located 0 bytes to the right of [ 33.821643] allocated 24-byte region [fff00000c907ca00, fff00000c907ca18) [ 33.821731] [ 33.822045] The buggy address belongs to the physical page: [ 33.822116] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10907c [ 33.822345] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.822540] page_type: f5(slab) [ 33.822596] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 33.822747] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 33.822860] page dumped because: kasan: bad access detected [ 33.822939] [ 33.822977] Memory state around the buggy address: [ 33.823251] fff00000c907c900: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 33.823451] fff00000c907c980: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.823539] >fff00000c907ca00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.823608] ^ [ 33.824012] fff00000c907ca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.824157] fff00000c907cb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.824215] ==================================================================
[ 26.745666] ================================================================== [ 26.747419] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 26.748285] Read of size 1 at addr ffff8881053c8398 by task kunit_try_catch/305 [ 26.748519] [ 26.748606] CPU: 0 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 26.748659] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.748671] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.748694] Call Trace: [ 26.748709] <TASK> [ 26.748726] dump_stack_lvl+0x73/0xb0 [ 26.748760] print_report+0xd1/0x640 [ 26.748786] ? __virt_addr_valid+0x1db/0x2d0 [ 26.748812] ? memcmp+0x1b4/0x1d0 [ 26.748831] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.748856] ? memcmp+0x1b4/0x1d0 [ 26.748877] kasan_report+0x141/0x180 [ 26.748899] ? memcmp+0x1b4/0x1d0 [ 26.748923] __asan_report_load1_noabort+0x18/0x20 [ 26.748947] memcmp+0x1b4/0x1d0 [ 26.748968] kasan_memcmp+0x18f/0x390 [ 26.748988] ? trace_hardirqs_on+0x37/0xe0 [ 26.749013] ? __pfx_kasan_memcmp+0x10/0x10 [ 26.749032] ? finish_task_switch.isra.0+0x153/0x700 [ 26.749055] ? __switch_to+0x47/0xf80 [ 26.749085] ? __pfx_read_tsc+0x10/0x10 [ 26.749107] ? ktime_get_ts64+0x86/0x230 [ 26.749133] kunit_try_run_case+0x1a5/0x480 [ 26.749158] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.749180] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.749215] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.749247] ? __kthread_parkme+0x82/0x180 [ 26.749279] ? preempt_count_sub+0x50/0x80 [ 26.749303] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.749326] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.749350] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.749373] kthread+0x337/0x6f0 [ 26.749392] ? trace_preempt_on+0x20/0xc0 [ 26.749414] ? __pfx_kthread+0x10/0x10 [ 26.749435] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.749464] ? calculate_sigpending+0x7b/0xa0 [ 26.749488] ? __pfx_kthread+0x10/0x10 [ 26.749510] ret_from_fork+0x116/0x1d0 [ 26.749529] ? __pfx_kthread+0x10/0x10 [ 26.749559] ret_from_fork_asm+0x1a/0x30 [ 26.749599] </TASK> [ 26.749611] [ 26.757021] Allocated by task 305: [ 26.757208] kasan_save_stack+0x45/0x70 [ 26.757397] kasan_save_track+0x18/0x40 [ 26.757565] kasan_save_alloc_info+0x3b/0x50 [ 26.757768] __kasan_kmalloc+0xb7/0xc0 [ 26.757925] __kmalloc_cache_noprof+0x189/0x420 [ 26.758121] kasan_memcmp+0xb7/0x390 [ 26.758329] kunit_try_run_case+0x1a5/0x480 [ 26.758529] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.758738] kthread+0x337/0x6f0 [ 26.758856] ret_from_fork+0x116/0x1d0 [ 26.758984] ret_from_fork_asm+0x1a/0x30 [ 26.759117] [ 26.759208] The buggy address belongs to the object at ffff8881053c8380 [ 26.759208] which belongs to the cache kmalloc-32 of size 32 [ 26.759739] The buggy address is located 0 bytes to the right of [ 26.759739] allocated 24-byte region [ffff8881053c8380, ffff8881053c8398) [ 26.760278] [ 26.760346] The buggy address belongs to the physical page: [ 26.760869] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1053c8 [ 26.761205] flags: 0x200000000000000(node=0|zone=2) [ 26.761391] page_type: f5(slab) [ 26.761510] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 26.761736] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 26.761953] page dumped because: kasan: bad access detected [ 26.762117] [ 26.762180] Memory state around the buggy address: [ 26.762458] ffff8881053c8280: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 26.762785] ffff8881053c8300: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 26.763103] >ffff8881053c8380: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.763484] ^ [ 26.763869] ffff8881053c8400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.764181] ffff8881053c8480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.764463] ==================================================================