Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.441304] ================================================================== [ 19.441373] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 19.441440] Read of size 1 at addr fff00000c77530d8 by task kunit_try_catch/257 [ 19.441499] [ 19.441543] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5 #1 PREEMPT [ 19.442630] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 19.442706] Hardware name: linux,dummy-virt (DT) [ 19.442750] Call trace: [ 19.443145] show_stack+0x20/0x38 (C) [ 19.443245] dump_stack_lvl+0x8c/0xd0 [ 19.443587] print_report+0x118/0x608 [ 19.443714] kasan_report+0xdc/0x128 [ 19.443836] __asan_report_load1_noabort+0x20/0x30 [ 19.444211] memcmp+0x198/0x1d8 [ 19.444360] kasan_memcmp+0x16c/0x300 [ 19.444514] kunit_try_run_case+0x170/0x3f0 [ 19.444821] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.444944] kthread+0x328/0x630 [ 19.445022] ret_from_fork+0x10/0x20 [ 19.445363] [ 19.445428] Allocated by task 257: [ 19.445494] kasan_save_stack+0x3c/0x68 [ 19.445620] kasan_save_track+0x20/0x40 [ 19.445791] kasan_save_alloc_info+0x40/0x58 [ 19.445838] __kasan_kmalloc+0xd4/0xd8 [ 19.445888] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.445935] kasan_memcmp+0xbc/0x300 [ 19.446301] kunit_try_run_case+0x170/0x3f0 [ 19.446426] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.446513] kthread+0x328/0x630 [ 19.446880] ret_from_fork+0x10/0x20 [ 19.446960] [ 19.447017] The buggy address belongs to the object at fff00000c77530c0 [ 19.447017] which belongs to the cache kmalloc-32 of size 32 [ 19.447175] The buggy address is located 0 bytes to the right of [ 19.447175] allocated 24-byte region [fff00000c77530c0, fff00000c77530d8) [ 19.447251] [ 19.447275] The buggy address belongs to the physical page: [ 19.447609] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107753 [ 19.447704] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.447922] page_type: f5(slab) [ 19.448010] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.448445] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.448660] page dumped because: kasan: bad access detected [ 19.448898] [ 19.448927] Memory state around the buggy address: [ 19.449165] fff00000c7752f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.449543] fff00000c7753000: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 19.449691] >fff00000c7753080: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.449890] ^ [ 19.449969] fff00000c7753100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.450162] fff00000c7753180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.450398] ==================================================================
[ 14.623306] ================================================================== [ 14.623784] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.624238] Read of size 1 at addr ffff8881029cc658 by task kunit_try_catch/274 [ 14.624513] [ 14.624640] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.624686] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.624697] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.624718] Call Trace: [ 14.624729] <TASK> [ 14.624745] dump_stack_lvl+0x73/0xb0 [ 14.624771] print_report+0xd1/0x650 [ 14.624810] ? __virt_addr_valid+0x1db/0x2d0 [ 14.624834] ? memcmp+0x1b4/0x1d0 [ 14.624851] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.624874] ? memcmp+0x1b4/0x1d0 [ 14.624892] kasan_report+0x141/0x180 [ 14.624912] ? memcmp+0x1b4/0x1d0 [ 14.624934] __asan_report_load1_noabort+0x18/0x20 [ 14.624958] memcmp+0x1b4/0x1d0 [ 14.624978] kasan_memcmp+0x18f/0x390 [ 14.624998] ? trace_hardirqs_on+0x37/0xe0 [ 14.625022] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.625042] ? finish_task_switch.isra.0+0x153/0x700 [ 14.625065] ? __switch_to+0x47/0xf50 [ 14.625094] ? __pfx_read_tsc+0x10/0x10 [ 14.625115] ? ktime_get_ts64+0x86/0x230 [ 14.625139] kunit_try_run_case+0x1a5/0x480 [ 14.625163] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.625186] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.625209] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.625233] ? __kthread_parkme+0x82/0x180 [ 14.625255] ? preempt_count_sub+0x50/0x80 [ 14.625277] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.625302] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.625327] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.625351] kthread+0x337/0x6f0 [ 14.625371] ? trace_preempt_on+0x20/0xc0 [ 14.625393] ? __pfx_kthread+0x10/0x10 [ 14.625413] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.625434] ? calculate_sigpending+0x7b/0xa0 [ 14.625459] ? __pfx_kthread+0x10/0x10 [ 14.625481] ret_from_fork+0x116/0x1d0 [ 14.625499] ? __pfx_kthread+0x10/0x10 [ 14.625519] ret_from_fork_asm+0x1a/0x30 [ 14.625550] </TASK> [ 14.625560] [ 14.633097] Allocated by task 274: [ 14.633240] kasan_save_stack+0x45/0x70 [ 14.633392] kasan_save_track+0x18/0x40 [ 14.633555] kasan_save_alloc_info+0x3b/0x50 [ 14.633776] __kasan_kmalloc+0xb7/0xc0 [ 14.633964] __kmalloc_cache_noprof+0x189/0x420 [ 14.634185] kasan_memcmp+0xb7/0x390 [ 14.634364] kunit_try_run_case+0x1a5/0x480 [ 14.634718] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.635096] kthread+0x337/0x6f0 [ 14.635270] ret_from_fork+0x116/0x1d0 [ 14.635425] ret_from_fork_asm+0x1a/0x30 [ 14.635565] [ 14.635648] The buggy address belongs to the object at ffff8881029cc640 [ 14.635648] which belongs to the cache kmalloc-32 of size 32 [ 14.636356] The buggy address is located 0 bytes to the right of [ 14.636356] allocated 24-byte region [ffff8881029cc640, ffff8881029cc658) [ 14.636993] [ 14.637098] The buggy address belongs to the physical page: [ 14.637308] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029cc [ 14.637644] flags: 0x200000000000000(node=0|zone=2) [ 14.638064] page_type: f5(slab) [ 14.638222] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.638539] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.638789] page dumped because: kasan: bad access detected [ 14.638968] [ 14.639038] Memory state around the buggy address: [ 14.639195] ffff8881029cc500: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.639479] ffff8881029cc580: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.639886] >ffff8881029cc600: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.640201] ^ [ 14.640476] ffff8881029cc680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.640851] ffff8881029cc700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.641129] ==================================================================