Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 26.024796] ================================================================== [ 26.028137] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 26.032215] Read of size 1 at addr fff00000c64bc658 by task kunit_try_catch/246 [ 26.033643] [ 26.035459] CPU: 0 UID: 0 PID: 246 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 26.035665] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.035736] Hardware name: linux,dummy-virt (DT) [ 26.035817] Call trace: [ 26.035874] show_stack+0x20/0x38 (C) [ 26.036034] dump_stack_lvl+0x8c/0xd0 [ 26.036152] print_report+0x118/0x608 [ 26.036360] kasan_report+0xdc/0x128 [ 26.036481] __asan_report_load1_noabort+0x20/0x30 [ 26.036598] memcmp+0x198/0x1d8 [ 26.036708] kasan_memcmp+0x16c/0x300 [ 26.036822] kunit_try_run_case+0x170/0x3f0 [ 26.036964] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.037104] kthread+0x318/0x620 [ 26.037224] ret_from_fork+0x10/0x20 [ 26.037347] [ 26.050767] Allocated by task 246: [ 26.051172] kasan_save_stack+0x3c/0x68 [ 26.051586] kasan_save_track+0x20/0x40 [ 26.053710] kasan_save_alloc_info+0x40/0x58 [ 26.055312] __kasan_kmalloc+0xd4/0xd8 [ 26.055945] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.056378] kasan_memcmp+0xbc/0x300 [ 26.056742] kunit_try_run_case+0x170/0x3f0 [ 26.059500] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.060571] kthread+0x318/0x620 [ 26.061528] ret_from_fork+0x10/0x20 [ 26.062994] [ 26.063303] The buggy address belongs to the object at fff00000c64bc640 [ 26.063303] which belongs to the cache kmalloc-32 of size 32 [ 26.066501] The buggy address is located 0 bytes to the right of [ 26.066501] allocated 24-byte region [fff00000c64bc640, fff00000c64bc658) [ 26.067375] [ 26.067616] The buggy address belongs to the physical page: [ 26.069242] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064bc [ 26.071351] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.074498] page_type: f5(slab) [ 26.075393] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 26.077146] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 26.079550] page dumped because: kasan: bad access detected [ 26.080374] [ 26.080613] Memory state around the buggy address: [ 26.081805] fff00000c64bc500: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 26.084243] fff00000c64bc580: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 26.086158] >fff00000c64bc600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 26.086795] ^ [ 26.088718] fff00000c64bc680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.090621] fff00000c64bc700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.092427] ==================================================================
[ 20.146200] ================================================================== [ 20.147066] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 20.147807] Read of size 1 at addr ffff888102bd9498 by task kunit_try_catch/265 [ 20.148785] [ 20.149049] CPU: 0 UID: 0 PID: 265 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 20.149111] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.149129] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.149155] Call Trace: [ 20.149173] <TASK> [ 20.149196] dump_stack_lvl+0x73/0xb0 [ 20.149236] print_report+0xd1/0x650 [ 20.149268] ? __virt_addr_valid+0x1db/0x2d0 [ 20.149302] ? memcmp+0x1b4/0x1d0 [ 20.149345] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.149405] ? memcmp+0x1b4/0x1d0 [ 20.149455] kasan_report+0x140/0x180 [ 20.149509] ? memcmp+0x1b4/0x1d0 [ 20.149564] __asan_report_load1_noabort+0x18/0x20 [ 20.149621] memcmp+0x1b4/0x1d0 [ 20.149675] kasan_memcmp+0x190/0x390 [ 20.149726] ? trace_hardirqs_on+0x37/0xe0 [ 20.149773] ? __pfx_kasan_memcmp+0x10/0x10 [ 20.149817] ? finish_task_switch.isra.0+0x153/0x700 [ 20.149851] ? __switch_to+0x5d9/0xf60 [ 20.149912] ? __pfx_read_tsc+0x10/0x10 [ 20.149941] ? ktime_get_ts64+0x86/0x230 [ 20.149974] kunit_try_run_case+0x1a6/0x480 [ 20.150006] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.150033] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.150066] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.150094] ? __kthread_parkme+0x82/0x160 [ 20.150123] ? preempt_count_sub+0x50/0x80 [ 20.150152] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.150181] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.150214] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.150246] kthread+0x324/0x6e0 [ 20.150273] ? trace_preempt_on+0x20/0xc0 [ 20.150309] ? __pfx_kthread+0x10/0x10 [ 20.150347] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.150378] ? calculate_sigpending+0x7b/0xa0 [ 20.150436] ? __pfx_kthread+0x10/0x10 [ 20.150466] ret_from_fork+0x41/0x80 [ 20.150491] ? __pfx_kthread+0x10/0x10 [ 20.150520] ret_from_fork_asm+0x1a/0x30 [ 20.150560] </TASK> [ 20.150576] [ 20.166584] Allocated by task 265: [ 20.167204] kasan_save_stack+0x45/0x70 [ 20.167797] kasan_save_track+0x18/0x40 [ 20.168277] kasan_save_alloc_info+0x3b/0x50 [ 20.168746] __kasan_kmalloc+0xb7/0xc0 [ 20.168985] __kmalloc_cache_noprof+0x18a/0x420 [ 20.169172] kasan_memcmp+0xb8/0x390 [ 20.169335] kunit_try_run_case+0x1a6/0x480 [ 20.169617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.170478] kthread+0x324/0x6e0 [ 20.170921] ret_from_fork+0x41/0x80 [ 20.171331] ret_from_fork_asm+0x1a/0x30 [ 20.171788] [ 20.172047] The buggy address belongs to the object at ffff888102bd9480 [ 20.172047] which belongs to the cache kmalloc-32 of size 32 [ 20.173003] The buggy address is located 0 bytes to the right of [ 20.173003] allocated 24-byte region [ffff888102bd9480, ffff888102bd9498) [ 20.173881] [ 20.174104] The buggy address belongs to the physical page: [ 20.174593] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bd9 [ 20.175050] flags: 0x200000000000000(node=0|zone=2) [ 20.175595] page_type: f5(slab) [ 20.175986] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 20.176549] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.177009] page dumped because: kasan: bad access detected [ 20.177476] [ 20.177691] Memory state around the buggy address: [ 20.178173] ffff888102bd9380: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.178840] ffff888102bd9400: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.179339] >ffff888102bd9480: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.179908] ^ [ 20.180151] ffff888102bd9500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.180767] ffff888102bd9580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.181399] ==================================================================