Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.815533] ================================================================== [ 18.815601] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 18.815705] Read of size 1 at addr fff00000c64603d8 by task kunit_try_catch/257 [ 18.815862] [ 18.815909] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.815997] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.816345] Hardware name: linux,dummy-virt (DT) [ 18.816464] Call trace: [ 18.816497] show_stack+0x20/0x38 (C) [ 18.816720] dump_stack_lvl+0x8c/0xd0 [ 18.816877] print_report+0x118/0x608 [ 18.817028] kasan_report+0xdc/0x128 [ 18.817212] __asan_report_load1_noabort+0x20/0x30 [ 18.817335] memcmp+0x198/0x1d8 [ 18.817695] kasan_memcmp+0x16c/0x300 [ 18.817889] kunit_try_run_case+0x170/0x3f0 [ 18.817969] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.818130] kthread+0x328/0x630 [ 18.818237] ret_from_fork+0x10/0x20 [ 18.818491] [ 18.818982] Allocated by task 257: [ 18.819089] kasan_save_stack+0x3c/0x68 [ 18.819256] kasan_save_track+0x20/0x40 [ 18.819341] kasan_save_alloc_info+0x40/0x58 [ 18.819388] __kasan_kmalloc+0xd4/0xd8 [ 18.820012] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.820084] kasan_memcmp+0xbc/0x300 [ 18.820136] kunit_try_run_case+0x170/0x3f0 [ 18.820176] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.820787] kthread+0x328/0x630 [ 18.820871] ret_from_fork+0x10/0x20 [ 18.821008] [ 18.821086] The buggy address belongs to the object at fff00000c64603c0 [ 18.821086] which belongs to the cache kmalloc-32 of size 32 [ 18.821301] The buggy address is located 0 bytes to the right of [ 18.821301] allocated 24-byte region [fff00000c64603c0, fff00000c64603d8) [ 18.821378] [ 18.821424] The buggy address belongs to the physical page: [ 18.821461] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106460 [ 18.821535] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.821603] page_type: f5(slab) [ 18.821648] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.821701] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.821744] page dumped because: kasan: bad access detected [ 18.821780] [ 18.821799] Memory state around the buggy address: [ 18.821834] fff00000c6460280: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.821889] fff00000c6460300: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.821934] >fff00000c6460380: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.821982] ^ [ 18.822024] fff00000c6460400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.822068] fff00000c6460480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.822241] ==================================================================
[ 14.417401] ================================================================== [ 14.418039] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.418322] Read of size 1 at addr ffff888103206018 by task kunit_try_catch/274 [ 14.418655] [ 14.418767] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.418814] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.418827] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.418848] Call Trace: [ 14.418859] <TASK> [ 14.418875] dump_stack_lvl+0x73/0xb0 [ 14.418902] print_report+0xd1/0x650 [ 14.418925] ? __virt_addr_valid+0x1db/0x2d0 [ 14.418946] ? memcmp+0x1b4/0x1d0 [ 14.418963] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.418985] ? memcmp+0x1b4/0x1d0 [ 14.419001] kasan_report+0x141/0x180 [ 14.419022] ? memcmp+0x1b4/0x1d0 [ 14.419044] __asan_report_load1_noabort+0x18/0x20 [ 14.419067] memcmp+0x1b4/0x1d0 [ 14.419086] kasan_memcmp+0x18f/0x390 [ 14.419106] ? trace_hardirqs_on+0x37/0xe0 [ 14.419130] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.419149] ? finish_task_switch.isra.0+0x153/0x700 [ 14.419172] ? __switch_to+0x47/0xf50 [ 14.419199] ? __pfx_read_tsc+0x10/0x10 [ 14.419220] ? ktime_get_ts64+0x86/0x230 [ 14.419242] kunit_try_run_case+0x1a5/0x480 [ 14.419267] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.419288] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.419313] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.419335] ? __kthread_parkme+0x82/0x180 [ 14.419356] ? preempt_count_sub+0x50/0x80 [ 14.419378] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.419400] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.419424] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.419447] kthread+0x337/0x6f0 [ 14.419465] ? trace_preempt_on+0x20/0xc0 [ 14.419486] ? __pfx_kthread+0x10/0x10 [ 14.419506] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.419526] ? calculate_sigpending+0x7b/0xa0 [ 14.419549] ? __pfx_kthread+0x10/0x10 [ 14.419569] ret_from_fork+0x116/0x1d0 [ 14.419586] ? __pfx_kthread+0x10/0x10 [ 14.419605] ret_from_fork_asm+0x1a/0x30 [ 14.419636] </TASK> [ 14.419646] [ 14.428620] Allocated by task 274: [ 14.428846] kasan_save_stack+0x45/0x70 [ 14.429174] kasan_save_track+0x18/0x40 [ 14.429367] kasan_save_alloc_info+0x3b/0x50 [ 14.429585] __kasan_kmalloc+0xb7/0xc0 [ 14.429759] __kmalloc_cache_noprof+0x189/0x420 [ 14.429999] kasan_memcmp+0xb7/0x390 [ 14.430259] kunit_try_run_case+0x1a5/0x480 [ 14.430490] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.430736] kthread+0x337/0x6f0 [ 14.430900] ret_from_fork+0x116/0x1d0 [ 14.431164] ret_from_fork_asm+0x1a/0x30 [ 14.431308] [ 14.431425] The buggy address belongs to the object at ffff888103206000 [ 14.431425] which belongs to the cache kmalloc-32 of size 32 [ 14.431938] The buggy address is located 0 bytes to the right of [ 14.431938] allocated 24-byte region [ffff888103206000, ffff888103206018) [ 14.432479] [ 14.432557] The buggy address belongs to the physical page: [ 14.432811] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103206 [ 14.433376] flags: 0x200000000000000(node=0|zone=2) [ 14.433643] page_type: f5(slab) [ 14.433812] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.434126] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.434486] page dumped because: kasan: bad access detected [ 14.434751] [ 14.434844] Memory state around the buggy address: [ 14.435184] ffff888103205f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.435523] ffff888103205f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.435772] >ffff888103206000: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.436201] ^ [ 14.436394] ffff888103206080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.436910] ffff888103206100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.437609] ==================================================================