Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.879032] ================================================================== [ 23.880238] BUG: KASAN: slab-out-of-bounds in memchr+0x78/0x88 [ 23.881206] Read of size 1 at addr fff00000c41f1758 by task kunit_try_catch/243 [ 23.882020] [ 23.882517] CPU: 1 UID: 0 PID: 243 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 23.882737] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.882822] Hardware name: linux,dummy-virt (DT) [ 23.882928] Call trace: [ 23.883031] dump_backtrace+0x9c/0x128 [ 23.883136] show_stack+0x20/0x38 [ 23.883188] dump_stack_lvl+0x8c/0xd0 [ 23.883239] print_report+0x118/0x5f0 [ 23.883331] kasan_report+0xdc/0x128 [ 23.883439] __asan_report_load1_noabort+0x20/0x30 [ 23.883555] memchr+0x78/0x88 [ 23.883655] kasan_memchr+0x150/0x2f0 [ 23.883750] kunit_try_run_case+0x170/0x3f0 [ 23.883854] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.883992] kthread+0x24c/0x2d0 [ 23.884265] ret_from_fork+0x10/0x20 [ 23.884323] [ 23.891690] Allocated by task 243: [ 23.892757] kasan_save_stack+0x3c/0x68 [ 23.893811] kasan_save_track+0x20/0x40 [ 23.894385] kasan_save_alloc_info+0x40/0x58 [ 23.895052] __kasan_kmalloc+0xd4/0xd8 [ 23.895851] __kmalloc_cache_noprof+0x154/0x320 [ 23.896491] kasan_memchr+0xb0/0x2f0 [ 23.897062] kunit_try_run_case+0x170/0x3f0 [ 23.897648] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.898341] kthread+0x24c/0x2d0 [ 23.898861] ret_from_fork+0x10/0x20 [ 23.899403] [ 23.900239] The buggy address belongs to the object at fff00000c41f1740 [ 23.900239] which belongs to the cache kmalloc-32 of size 32 [ 23.901735] The buggy address is located 0 bytes to the right of [ 23.901735] allocated 24-byte region [fff00000c41f1740, fff00000c41f1758) [ 23.902985] [ 23.903269] The buggy address belongs to the physical page: [ 23.904358] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1041f1 [ 23.905445] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.906286] page_type: f5(slab) [ 23.906736] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 23.907871] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 23.909435] page dumped because: kasan: bad access detected [ 23.909939] [ 23.910509] Memory state around the buggy address: [ 23.911311] fff00000c41f1600: 00 00 07 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 23.912186] fff00000c41f1680: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 23.912901] >fff00000c41f1700: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.913578] ^ [ 23.914218] fff00000c41f1780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.914910] fff00000c41f1800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.916495] ==================================================================
[ 20.556002] ================================================================== [ 20.557713] BUG: KASAN: slab-out-of-bounds in memchr+0x79/0x90 [ 20.558789] Read of size 1 at addr ffff888102933f18 by task kunit_try_catch/260 [ 20.559851] [ 20.560073] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 20.560194] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.560636] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.560707] Call Trace: [ 20.560752] <TASK> [ 20.560803] dump_stack_lvl+0x73/0xb0 [ 20.560925] print_report+0xd1/0x640 [ 20.561004] ? __virt_addr_valid+0x1db/0x2d0 [ 20.561083] ? memchr+0x79/0x90 [ 20.561149] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.561245] ? memchr+0x79/0x90 [ 20.561319] kasan_report+0x140/0x180 [ 20.561386] ? memchr+0x79/0x90 [ 20.561422] __asan_report_load1_noabort+0x18/0x20 [ 20.561517] memchr+0x79/0x90 [ 20.561595] kasan_memchr+0x163/0x320 [ 20.561665] ? __pfx_kasan_memchr+0x10/0x10 [ 20.561729] ? __schedule+0xc49/0x27a0 [ 20.561789] ? __pfx_read_tsc+0x10/0x10 [ 20.561877] ? ktime_get_ts64+0x84/0x230 [ 20.561925] kunit_try_run_case+0x1a6/0x480 [ 20.561961] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.561992] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.562023] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.562060] ? __kthread_parkme+0x82/0x160 [ 20.562090] ? preempt_count_sub+0x50/0x80 [ 20.562124] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.562154] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.562192] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.562262] kthread+0x257/0x310 [ 20.562293] ? __pfx_kthread+0x10/0x10 [ 20.562322] ret_from_fork+0x41/0x80 [ 20.562350] ? __pfx_kthread+0x10/0x10 [ 20.562376] ret_from_fork_asm+0x1a/0x30 [ 20.562418] </TASK> [ 20.562433] [ 20.584173] Allocated by task 260: [ 20.584480] kasan_save_stack+0x45/0x70 [ 20.585375] kasan_save_track+0x18/0x40 [ 20.586183] kasan_save_alloc_info+0x3b/0x50 [ 20.586837] __kasan_kmalloc+0xb7/0xc0 [ 20.587177] __kmalloc_cache_noprof+0x168/0x350 [ 20.587699] kasan_memchr+0xad/0x320 [ 20.588483] kunit_try_run_case+0x1a6/0x480 [ 20.588866] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.589747] kthread+0x257/0x310 [ 20.590119] ret_from_fork+0x41/0x80 [ 20.591394] ret_from_fork_asm+0x1a/0x30 [ 20.592170] [ 20.592498] The buggy address belongs to the object at ffff888102933f00 [ 20.592498] which belongs to the cache kmalloc-32 of size 32 [ 20.593571] The buggy address is located 0 bytes to the right of [ 20.593571] allocated 24-byte region [ffff888102933f00, ffff888102933f18) [ 20.594803] [ 20.595238] The buggy address belongs to the physical page: [ 20.595712] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102933 [ 20.596505] flags: 0x200000000000000(node=0|zone=2) [ 20.597326] page_type: f5(slab) [ 20.597630] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 20.598811] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 20.599384] page dumped because: kasan: bad access detected [ 20.600338] [ 20.600516] Memory state around the buggy address: [ 20.601353] ffff888102933e00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.602490] ffff888102933e80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.603216] >ffff888102933f00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.603962] ^ [ 20.604429] ffff888102933f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.605376] ffff888102934000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 20.606076] ==================================================================