Date
June 5, 2025, 7:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 28.725063] ================================================================== [ 28.725141] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 28.725213] Read of size 1 at addr fff00000c7710e98 by task kunit_try_catch/257 [ 28.725290] [ 28.725354] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT [ 28.725467] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.725505] Hardware name: linux,dummy-virt (DT) [ 28.725549] Call trace: [ 28.725578] show_stack+0x20/0x38 (C) [ 28.725649] dump_stack_lvl+0x8c/0xd0 [ 28.725713] print_report+0x118/0x608 [ 28.725777] kasan_report+0xdc/0x128 [ 28.725839] __asan_report_load1_noabort+0x20/0x30 [ 28.725901] memcmp+0x198/0x1d8 [ 28.725957] kasan_memcmp+0x16c/0x300 [ 28.726016] kunit_try_run_case+0x170/0x3f0 [ 28.726079] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.726148] kthread+0x328/0x630 [ 28.726202] ret_from_fork+0x10/0x20 [ 28.726266] [ 28.726291] Allocated by task 257: [ 28.726368] kasan_save_stack+0x3c/0x68 [ 28.726483] kasan_save_track+0x20/0x40 [ 28.726762] kasan_save_alloc_info+0x40/0x58 [ 28.727039] __kasan_kmalloc+0xd4/0xd8 [ 28.727591] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.727803] kasan_memcmp+0xbc/0x300 [ 28.727920] kunit_try_run_case+0x170/0x3f0 [ 28.728021] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.728260] kthread+0x328/0x630 [ 28.728693] ret_from_fork+0x10/0x20 [ 28.729481] [ 28.729640] The buggy address belongs to the object at fff00000c7710e80 [ 28.729640] which belongs to the cache kmalloc-32 of size 32 [ 28.729797] The buggy address is located 0 bytes to the right of [ 28.729797] allocated 24-byte region [fff00000c7710e80, fff00000c7710e98) [ 28.729964] [ 28.730943] The buggy address belongs to the physical page: [ 28.731030] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107710 [ 28.732292] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.732958] page_type: f5(slab) [ 28.733085] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 28.733230] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 28.733454] page dumped because: kasan: bad access detected [ 28.733563] [ 28.733622] Memory state around the buggy address: [ 28.733807] fff00000c7710d80: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 28.733922] fff00000c7710e00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.734032] >fff00000c7710e80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.734136] ^ [ 28.734266] fff00000c7710f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.734599] fff00000c7710f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.734739] ==================================================================
[ 13.287542] ================================================================== [ 13.288655] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 13.288863] Read of size 1 at addr ffff888102b45d18 by task kunit_try_catch/274 [ 13.289096] [ 13.289182] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250605 #1 PREEMPT(voluntary) [ 13.289226] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.289237] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.289258] Call Trace: [ 13.289269] <TASK> [ 13.289284] dump_stack_lvl+0x73/0xb0 [ 13.289309] print_report+0xd1/0x650 [ 13.289331] ? __virt_addr_valid+0x1db/0x2d0 [ 13.289354] ? memcmp+0x1b4/0x1d0 [ 13.289372] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.289395] ? memcmp+0x1b4/0x1d0 [ 13.289413] kasan_report+0x141/0x180 [ 13.289435] ? memcmp+0x1b4/0x1d0 [ 13.289458] __asan_report_load1_noabort+0x18/0x20 [ 13.289483] memcmp+0x1b4/0x1d0 [ 13.289503] kasan_memcmp+0x18f/0x390 [ 13.289523] ? trace_hardirqs_on+0x37/0xe0 [ 13.289545] ? __pfx_kasan_memcmp+0x10/0x10 [ 13.289564] ? finish_task_switch.isra.0+0x153/0x700 [ 13.289586] ? __switch_to+0x47/0xf50 [ 13.289614] ? __pfx_read_tsc+0x10/0x10 [ 13.289634] ? ktime_get_ts64+0x86/0x230 [ 13.289658] kunit_try_run_case+0x1a5/0x480 [ 13.289679] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.289699] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.289723] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.289747] ? __kthread_parkme+0x82/0x180 [ 13.289767] ? preempt_count_sub+0x50/0x80 [ 13.289789] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.289809] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.289833] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.289857] kthread+0x337/0x6f0 [ 13.289876] ? trace_preempt_on+0x20/0xc0 [ 13.289907] ? __pfx_kthread+0x10/0x10 [ 13.290659] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.290690] ? calculate_sigpending+0x7b/0xa0 [ 13.290717] ? __pfx_kthread+0x10/0x10 [ 13.290740] ret_from_fork+0x116/0x1d0 [ 13.290759] ? __pfx_kthread+0x10/0x10 [ 13.290778] ret_from_fork_asm+0x1a/0x30 [ 13.290808] </TASK> [ 13.290820] [ 13.300687] Allocated by task 274: [ 13.300872] kasan_save_stack+0x45/0x70 [ 13.301286] kasan_save_track+0x18/0x40 [ 13.301579] kasan_save_alloc_info+0x3b/0x50 [ 13.301910] __kasan_kmalloc+0xb7/0xc0 [ 13.302231] __kmalloc_cache_noprof+0x189/0x420 [ 13.302446] kasan_memcmp+0xb7/0x390 [ 13.302607] kunit_try_run_case+0x1a5/0x480 [ 13.303101] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.303531] kthread+0x337/0x6f0 [ 13.303858] ret_from_fork+0x116/0x1d0 [ 13.304193] ret_from_fork_asm+0x1a/0x30 [ 13.304391] [ 13.304485] The buggy address belongs to the object at ffff888102b45d00 [ 13.304485] which belongs to the cache kmalloc-32 of size 32 [ 13.305589] The buggy address is located 0 bytes to the right of [ 13.305589] allocated 24-byte region [ffff888102b45d00, ffff888102b45d18) [ 13.306372] [ 13.306473] The buggy address belongs to the physical page: [ 13.306856] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b45 [ 13.307406] flags: 0x200000000000000(node=0|zone=2) [ 13.307759] page_type: f5(slab) [ 13.307939] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.308254] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.308553] page dumped because: kasan: bad access detected [ 13.309109] [ 13.309205] Memory state around the buggy address: [ 13.309645] ffff888102b45c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.310150] ffff888102b45c80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.310447] >ffff888102b45d00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.311149] ^ [ 13.311372] ffff888102b45d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.311702] ffff888102b45e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.312171] ==================================================================