Date
July 24, 2025, 4:41 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.759882] ================================================================== [ 34.760117] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 34.760213] Read of size 1 at addr fff00000c9b90b58 by task kunit_try_catch/288 [ 34.760269] [ 34.760314] CPU: 1 UID: 0 PID: 288 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 34.760422] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.760489] Hardware name: linux,dummy-virt (DT) [ 34.760527] Call trace: [ 34.760555] show_stack+0x20/0x38 (C) [ 34.760611] dump_stack_lvl+0x8c/0xd0 [ 34.760808] print_report+0x118/0x5e8 [ 34.760861] kasan_report+0xdc/0x128 [ 34.760907] __asan_report_load1_noabort+0x20/0x30 [ 34.760959] memcmp+0x198/0x1d8 [ 34.761006] kasan_memcmp+0x16c/0x300 [ 34.761171] kunit_try_run_case+0x170/0x3f0 [ 34.761237] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.761310] kthread+0x328/0x630 [ 34.761359] ret_from_fork+0x10/0x20 [ 34.761416] [ 34.761445] Allocated by task 288: [ 34.761482] kasan_save_stack+0x3c/0x68 [ 34.761542] kasan_save_track+0x20/0x40 [ 34.761599] kasan_save_alloc_info+0x40/0x58 [ 34.761683] __kasan_kmalloc+0xd4/0xd8 [ 34.761740] __kmalloc_cache_noprof+0x16c/0x3c0 [ 34.761800] kasan_memcmp+0xbc/0x300 [ 34.761841] kunit_try_run_case+0x170/0x3f0 [ 34.761879] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.761925] kthread+0x328/0x630 [ 34.761960] ret_from_fork+0x10/0x20 [ 34.762000] [ 34.762022] The buggy address belongs to the object at fff00000c9b90b40 [ 34.762022] which belongs to the cache kmalloc-32 of size 32 [ 34.762116] The buggy address is located 0 bytes to the right of [ 34.762116] allocated 24-byte region [fff00000c9b90b40, fff00000c9b90b58) [ 34.762204] [ 34.762244] The buggy address belongs to the physical page: [ 34.762289] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b90 [ 34.762359] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.762414] page_type: f5(slab) [ 34.762459] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 34.762725] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 34.762832] page dumped because: kasan: bad access detected [ 34.762870] [ 34.762899] Memory state around the buggy address: [ 34.762935] fff00000c9b90a00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.763012] fff00000c9b90a80: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 34.763077] >fff00000c9b90b00: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 34.763193] ^ [ 34.763236] fff00000c9b90b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.763279] fff00000c9b90c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.763487] ==================================================================
[ 28.785393] ================================================================== [ 28.786663] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 28.787421] Read of size 1 at addr ffff888106048e18 by task kunit_try_catch/305 [ 28.788316] [ 28.788555] CPU: 1 UID: 0 PID: 305 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 28.788627] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 28.788641] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.788665] Call Trace: [ 28.788679] <TASK> [ 28.788700] dump_stack_lvl+0x73/0xb0 [ 28.788732] print_report+0xd1/0x640 [ 28.788783] ? __virt_addr_valid+0x1db/0x2d0 [ 28.788810] ? memcmp+0x1b4/0x1d0 [ 28.788829] ? kasan_complete_mode_report_info+0x2a/0x200 [ 28.788875] ? memcmp+0x1b4/0x1d0 [ 28.788895] kasan_report+0x141/0x180 [ 28.788942] ? memcmp+0x1b4/0x1d0 [ 28.788968] __asan_report_load1_noabort+0x18/0x20 [ 28.788992] memcmp+0x1b4/0x1d0 [ 28.789015] kasan_memcmp+0x18f/0x390 [ 28.789035] ? trace_hardirqs_on+0x37/0xe0 [ 28.789060] ? __pfx_kasan_memcmp+0x10/0x10 [ 28.789080] ? finish_task_switch.isra.0+0x153/0x700 [ 28.789102] ? __switch_to+0x47/0xf80 [ 28.789132] ? __pfx_read_tsc+0x10/0x10 [ 28.789155] ? ktime_get_ts64+0x86/0x230 [ 28.789180] kunit_try_run_case+0x1a5/0x480 [ 28.789206] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.789228] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 28.789253] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.789278] ? __kthread_parkme+0x82/0x180 [ 28.789298] ? preempt_count_sub+0x50/0x80 [ 28.789321] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.789344] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.789367] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.789391] kthread+0x337/0x6f0 [ 28.789410] ? trace_preempt_on+0x20/0xc0 [ 28.789450] ? __pfx_kthread+0x10/0x10 [ 28.789471] ? _raw_spin_unlock_irq+0x47/0x80 [ 28.789512] ? calculate_sigpending+0x7b/0xa0 [ 28.789537] ? __pfx_kthread+0x10/0x10 [ 28.789558] ret_from_fork+0x116/0x1d0 [ 28.789586] ? __pfx_kthread+0x10/0x10 [ 28.789607] ret_from_fork_asm+0x1a/0x30 [ 28.789639] </TASK> [ 28.789649] [ 28.802783] Allocated by task 305: [ 28.803203] kasan_save_stack+0x45/0x70 [ 28.803606] kasan_save_track+0x18/0x40 [ 28.804017] kasan_save_alloc_info+0x3b/0x50 [ 28.804437] __kasan_kmalloc+0xb7/0xc0 [ 28.804592] __kmalloc_cache_noprof+0x189/0x420 [ 28.804830] kasan_memcmp+0xb7/0x390 [ 28.805299] kunit_try_run_case+0x1a5/0x480 [ 28.805720] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.806257] kthread+0x337/0x6f0 [ 28.806392] ret_from_fork+0x116/0x1d0 [ 28.806520] ret_from_fork_asm+0x1a/0x30 [ 28.806666] [ 28.806731] The buggy address belongs to the object at ffff888106048e00 [ 28.806731] which belongs to the cache kmalloc-32 of size 32 [ 28.807833] The buggy address is located 0 bytes to the right of [ 28.807833] allocated 24-byte region [ffff888106048e00, ffff888106048e18) [ 28.808988] [ 28.809220] The buggy address belongs to the physical page: [ 28.809711] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106048 [ 28.810282] flags: 0x200000000000000(node=0|zone=2) [ 28.810453] page_type: f5(slab) [ 28.810569] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 28.810877] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 28.811559] page dumped because: kasan: bad access detected [ 28.812072] [ 28.812222] Memory state around the buggy address: [ 28.812786] ffff888106048d00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.813489] ffff888106048d80: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 28.814268] >ffff888106048e00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.814983] ^ [ 28.815128] ffff888106048e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.815355] ffff888106048f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.815561] ==================================================================