Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.735725] ================================================================== [ 20.736248] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 20.736677] Read of size 1 at addr fff00000c66f5118 by task kunit_try_catch/246 [ 20.737093] [ 20.737280] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 20.737383] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.737416] Hardware name: linux,dummy-virt (DT) [ 20.737456] Call trace: [ 20.737487] show_stack+0x20/0x38 (C) [ 20.737550] dump_stack_lvl+0x8c/0xd0 [ 20.737609] print_report+0x118/0x608 [ 20.737668] kasan_report+0xdc/0x128 [ 20.737723] __asan_report_load1_noabort+0x20/0x30 [ 20.737798] memcmp+0x198/0x1d8 [ 20.737851] kasan_memcmp+0x16c/0x300 [ 20.737905] kunit_try_run_case+0x170/0x3f0 [ 20.737961] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.738022] kthread+0x318/0x620 [ 20.738100] ret_from_fork+0x10/0x20 [ 20.738165] [ 20.741943] Allocated by task 246: [ 20.742243] kasan_save_stack+0x3c/0x68 [ 20.742816] kasan_save_track+0x20/0x40 [ 20.743180] kasan_save_alloc_info+0x40/0x58 [ 20.743414] __kasan_kmalloc+0xd4/0xd8 [ 20.743696] __kmalloc_cache_noprof+0x15c/0x3c0 [ 20.743985] kasan_memcmp+0xbc/0x300 [ 20.744155] kunit_try_run_case+0x170/0x3f0 [ 20.744410] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.744693] kthread+0x318/0x620 [ 20.744995] ret_from_fork+0x10/0x20 [ 20.745249] [ 20.745417] The buggy address belongs to the object at fff00000c66f5100 [ 20.745417] which belongs to the cache kmalloc-32 of size 32 [ 20.745940] The buggy address is located 0 bytes to the right of [ 20.745940] allocated 24-byte region [fff00000c66f5100, fff00000c66f5118) [ 20.746415] [ 20.746853] The buggy address belongs to the physical page: [ 20.747242] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1066f5 [ 20.747718] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.748144] page_type: f5(slab) [ 20.748339] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.748767] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.749142] page dumped because: kasan: bad access detected [ 20.749399] [ 20.749574] Memory state around the buggy address: [ 20.749801] fff00000c66f5000: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.750191] fff00000c66f5080: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.750953] >fff00000c66f5100: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.751262] ^ [ 20.751513] fff00000c66f5180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.751958] fff00000c66f5200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.752323] ==================================================================
[ 14.273907] ================================================================== [ 14.274354] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.274620] Read of size 1 at addr ffff888101b3b498 by task kunit_try_catch/265 [ 14.274910] [ 14.275020] CPU: 1 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 14.275066] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.275079] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.275101] Call Trace: [ 14.275114] <TASK> [ 14.275134] dump_stack_lvl+0x73/0xb0 [ 14.275159] print_report+0xd1/0x650 [ 14.275183] ? __virt_addr_valid+0x1db/0x2d0 [ 14.275207] ? memcmp+0x1b4/0x1d0 [ 14.275227] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.275253] ? memcmp+0x1b4/0x1d0 [ 14.275274] kasan_report+0x140/0x180 [ 14.275297] ? memcmp+0x1b4/0x1d0 [ 14.275322] __asan_report_load1_noabort+0x18/0x20 [ 14.275345] memcmp+0x1b4/0x1d0 [ 14.275368] kasan_memcmp+0x190/0x390 [ 14.275387] ? trace_hardirqs_on+0x37/0xe0 [ 14.275412] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.275431] ? finish_task_switch.isra.0+0x153/0x700 [ 14.275456] ? __switch_to+0x5d9/0xf60 [ 14.275485] ? __pfx_read_tsc+0x10/0x10 [ 14.275507] ? ktime_get_ts64+0x86/0x230 [ 14.275534] kunit_try_run_case+0x1a6/0x480 [ 14.275558] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.275579] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 14.275601] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.275625] ? __kthread_parkme+0x82/0x160 [ 14.275648] ? preempt_count_sub+0x50/0x80 [ 14.275671] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.275695] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.275720] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.275746] kthread+0x324/0x6e0 [ 14.275767] ? trace_preempt_on+0x20/0xc0 [ 14.275789] ? __pfx_kthread+0x10/0x10 [ 14.275811] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.275834] ? calculate_sigpending+0x7b/0xa0 [ 14.276367] ? __pfx_kthread+0x10/0x10 [ 14.276393] ret_from_fork+0x41/0x80 [ 14.276414] ? __pfx_kthread+0x10/0x10 [ 14.276436] ret_from_fork_asm+0x1a/0x30 [ 14.276468] </TASK> [ 14.276480] [ 14.284769] Allocated by task 265: [ 14.285005] kasan_save_stack+0x45/0x70 [ 14.285564] kasan_save_track+0x18/0x40 [ 14.285770] kasan_save_alloc_info+0x3b/0x50 [ 14.285946] __kasan_kmalloc+0xb7/0xc0 [ 14.286088] __kmalloc_cache_noprof+0x18a/0x420 [ 14.286420] kasan_memcmp+0xb8/0x390 [ 14.286807] kunit_try_run_case+0x1a6/0x480 [ 14.287036] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.287360] kthread+0x324/0x6e0 [ 14.287601] ret_from_fork+0x41/0x80 [ 14.287747] ret_from_fork_asm+0x1a/0x30 [ 14.287901] [ 14.287976] The buggy address belongs to the object at ffff888101b3b480 [ 14.287976] which belongs to the cache kmalloc-32 of size 32 [ 14.288727] The buggy address is located 0 bytes to the right of [ 14.288727] allocated 24-byte region [ffff888101b3b480, ffff888101b3b498) [ 14.289151] [ 14.289230] The buggy address belongs to the physical page: [ 14.289897] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101b3b [ 14.290642] flags: 0x200000000000000(node=0|zone=2) [ 14.290877] page_type: f5(slab) [ 14.291068] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.291376] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.291603] page dumped because: kasan: bad access detected [ 14.291829] [ 14.291935] Memory state around the buggy address: [ 14.292163] ffff888101b3b380: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.292501] ffff888101b3b400: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.292975] >ffff888101b3b480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.293486] ^ [ 14.293634] ffff888101b3b500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.293969] ffff888101b3b580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.294286] ==================================================================