Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.441435] ================================================================== [ 17.441759] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 17.442078] Read of size 1 at addr fff00000c767d8d8 by task kunit_try_catch/258 [ 17.442147] [ 17.442206] CPU: 0 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.442342] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.442374] Hardware name: linux,dummy-virt (DT) [ 17.442425] Call trace: [ 17.442470] show_stack+0x20/0x38 (C) [ 17.442536] dump_stack_lvl+0x8c/0xd0 [ 17.442597] print_report+0x118/0x5d0 [ 17.442659] kasan_report+0xdc/0x128 [ 17.442708] __asan_report_load1_noabort+0x20/0x30 [ 17.442763] memcmp+0x198/0x1d8 [ 17.442826] kasan_memcmp+0x16c/0x300 [ 17.442874] kunit_try_run_case+0x170/0x3f0 [ 17.442924] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.442990] kthread+0x328/0x630 [ 17.443042] ret_from_fork+0x10/0x20 [ 17.443092] [ 17.443115] Allocated by task 258: [ 17.443147] kasan_save_stack+0x3c/0x68 [ 17.443572] kasan_save_track+0x20/0x40 [ 17.443647] kasan_save_alloc_info+0x40/0x58 [ 17.443836] __kasan_kmalloc+0xd4/0xd8 [ 17.443926] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.444093] kasan_memcmp+0xbc/0x300 [ 17.444156] kunit_try_run_case+0x170/0x3f0 [ 17.444267] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.444326] kthread+0x328/0x630 [ 17.444405] ret_from_fork+0x10/0x20 [ 17.444793] [ 17.444870] The buggy address belongs to the object at fff00000c767d8c0 [ 17.444870] which belongs to the cache kmalloc-32 of size 32 [ 17.444988] The buggy address is located 0 bytes to the right of [ 17.444988] allocated 24-byte region [fff00000c767d8c0, fff00000c767d8d8) [ 17.445165] [ 17.445271] The buggy address belongs to the physical page: [ 17.445398] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10767d [ 17.445492] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.445662] page_type: f5(slab) [ 17.445886] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.446063] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.446137] page dumped because: kasan: bad access detected [ 17.446298] [ 17.446369] Memory state around the buggy address: [ 17.446441] fff00000c767d780: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.446730] fff00000c767d800: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 17.446793] >fff00000c767d880: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.447158] ^ [ 17.447362] fff00000c767d900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.447432] fff00000c767d980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.447819] ==================================================================
[ 14.841638] ================================================================== [ 14.842723] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.843205] Read of size 1 at addr ffff8881038b6218 by task kunit_try_catch/275 [ 14.843527] [ 14.843656] CPU: 1 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.843707] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.843720] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.843743] Call Trace: [ 14.843758] <TASK> [ 14.843776] dump_stack_lvl+0x73/0xb0 [ 14.843809] print_report+0xd1/0x610 [ 14.843836] ? __virt_addr_valid+0x1db/0x2d0 [ 14.843860] ? memcmp+0x1b4/0x1d0 [ 14.843880] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.843902] ? memcmp+0x1b4/0x1d0 [ 14.843922] kasan_report+0x141/0x180 [ 14.843944] ? memcmp+0x1b4/0x1d0 [ 14.843967] __asan_report_load1_noabort+0x18/0x20 [ 14.843991] memcmp+0x1b4/0x1d0 [ 14.844013] kasan_memcmp+0x18f/0x390 [ 14.844275] ? trace_hardirqs_on+0x37/0xe0 [ 14.844307] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.844329] ? finish_task_switch.isra.0+0x153/0x700 [ 14.844353] ? __switch_to+0x47/0xf50 [ 14.844382] ? __pfx_read_tsc+0x10/0x10 [ 14.844626] ? ktime_get_ts64+0x86/0x230 [ 14.844663] kunit_try_run_case+0x1a5/0x480 [ 14.844694] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.844718] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.844744] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.844768] ? __kthread_parkme+0x82/0x180 [ 14.844807] ? preempt_count_sub+0x50/0x80 [ 14.844831] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.844856] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.844880] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.844904] kthread+0x337/0x6f0 [ 14.844924] ? trace_preempt_on+0x20/0xc0 [ 14.844947] ? __pfx_kthread+0x10/0x10 [ 14.844969] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.844991] ? calculate_sigpending+0x7b/0xa0 [ 14.845016] ? __pfx_kthread+0x10/0x10 [ 14.845038] ret_from_fork+0x116/0x1d0 [ 14.845057] ? __pfx_kthread+0x10/0x10 [ 14.845079] ret_from_fork_asm+0x1a/0x30 [ 14.845111] </TASK> [ 14.845121] [ 14.858483] Allocated by task 275: [ 14.858676] kasan_save_stack+0x45/0x70 [ 14.859289] kasan_save_track+0x18/0x40 [ 14.859559] kasan_save_alloc_info+0x3b/0x50 [ 14.859937] __kasan_kmalloc+0xb7/0xc0 [ 14.860489] __kmalloc_cache_noprof+0x189/0x420 [ 14.860774] kasan_memcmp+0xb7/0x390 [ 14.861119] kunit_try_run_case+0x1a5/0x480 [ 14.861534] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.862034] kthread+0x337/0x6f0 [ 14.862344] ret_from_fork+0x116/0x1d0 [ 14.862733] ret_from_fork_asm+0x1a/0x30 [ 14.862960] [ 14.863301] The buggy address belongs to the object at ffff8881038b6200 [ 14.863301] which belongs to the cache kmalloc-32 of size 32 [ 14.863875] The buggy address is located 0 bytes to the right of [ 14.863875] allocated 24-byte region [ffff8881038b6200, ffff8881038b6218) [ 14.864811] [ 14.865237] The buggy address belongs to the physical page: [ 14.865519] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038b6 [ 14.865954] flags: 0x200000000000000(node=0|zone=2) [ 14.866615] page_type: f5(slab) [ 14.866925] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.867461] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.867775] page dumped because: kasan: bad access detected [ 14.868019] [ 14.868392] Memory state around the buggy address: [ 14.868835] ffff8881038b6100: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.869536] ffff8881038b6180: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.870017] >ffff8881038b6200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.870369] ^ [ 14.870570] ffff8881038b6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.871303] ffff8881038b6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.871792] ==================================================================