Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.791150] ================================================================== [ 18.791214] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 18.791273] Read of size 1 at addr fff00000c595c558 by task kunit_try_catch/257 [ 18.791867] [ 18.791971] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 18.792147] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.792277] Hardware name: linux,dummy-virt (DT) [ 18.792314] Call trace: [ 18.792338] show_stack+0x20/0x38 (C) [ 18.792393] dump_stack_lvl+0x8c/0xd0 [ 18.792454] print_report+0x118/0x5d0 [ 18.792980] kasan_report+0xdc/0x128 [ 18.793143] __asan_report_load1_noabort+0x20/0x30 [ 18.793300] memcmp+0x198/0x1d8 [ 18.793389] kasan_memcmp+0x16c/0x300 [ 18.793750] kunit_try_run_case+0x170/0x3f0 [ 18.793917] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.794053] kthread+0x328/0x630 [ 18.794130] ret_from_fork+0x10/0x20 [ 18.794299] [ 18.794378] Allocated by task 257: [ 18.794639] kasan_save_stack+0x3c/0x68 [ 18.794922] kasan_save_track+0x20/0x40 [ 18.795038] kasan_save_alloc_info+0x40/0x58 [ 18.795213] __kasan_kmalloc+0xd4/0xd8 [ 18.795455] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.795530] kasan_memcmp+0xbc/0x300 [ 18.795776] kunit_try_run_case+0x170/0x3f0 [ 18.795916] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.795976] kthread+0x328/0x630 [ 18.796067] ret_from_fork+0x10/0x20 [ 18.796237] [ 18.796261] The buggy address belongs to the object at fff00000c595c540 [ 18.796261] which belongs to the cache kmalloc-32 of size 32 [ 18.796479] The buggy address is located 0 bytes to the right of [ 18.796479] allocated 24-byte region [fff00000c595c540, fff00000c595c558) [ 18.796643] [ 18.796687] The buggy address belongs to the physical page: [ 18.797084] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10595c [ 18.797209] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.797388] page_type: f5(slab) [ 18.797474] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.797654] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.797727] page dumped because: kasan: bad access detected [ 18.798080] [ 18.798275] Memory state around the buggy address: [ 18.798400] fff00000c595c400: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.798816] fff00000c595c480: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.798996] >fff00000c595c500: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.799108] ^ [ 18.799155] fff00000c595c580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.799201] fff00000c595c600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.799381] ==================================================================
[ 14.506836] ================================================================== [ 14.507550] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.507826] Read of size 1 at addr ffff888103a5c418 by task kunit_try_catch/274 [ 14.508325] [ 14.508428] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.508476] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.508488] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.508510] Call Trace: [ 14.508522] <TASK> [ 14.508538] dump_stack_lvl+0x73/0xb0 [ 14.508583] print_report+0xd1/0x610 [ 14.508611] ? __virt_addr_valid+0x1db/0x2d0 [ 14.508638] ? memcmp+0x1b4/0x1d0 [ 14.508657] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.508682] ? memcmp+0x1b4/0x1d0 [ 14.508701] kasan_report+0x141/0x180 [ 14.508725] ? memcmp+0x1b4/0x1d0 [ 14.508748] __asan_report_load1_noabort+0x18/0x20 [ 14.508787] memcmp+0x1b4/0x1d0 [ 14.508807] kasan_memcmp+0x18f/0x390 [ 14.508828] ? trace_hardirqs_on+0x37/0xe0 [ 14.508855] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.508877] ? finish_task_switch.isra.0+0x153/0x700 [ 14.508903] ? __switch_to+0x47/0xf50 [ 14.508933] ? __pfx_read_tsc+0x10/0x10 [ 14.508956] ? ktime_get_ts64+0x86/0x230 [ 14.508982] kunit_try_run_case+0x1a5/0x480 [ 14.509013] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.509038] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.509134] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.509161] ? __kthread_parkme+0x82/0x180 [ 14.509184] ? preempt_count_sub+0x50/0x80 [ 14.509208] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.509235] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.509261] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.509287] kthread+0x337/0x6f0 [ 14.509308] ? trace_preempt_on+0x20/0xc0 [ 14.509331] ? __pfx_kthread+0x10/0x10 [ 14.509353] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.509375] ? calculate_sigpending+0x7b/0xa0 [ 14.509401] ? __pfx_kthread+0x10/0x10 [ 14.509424] ret_from_fork+0x116/0x1d0 [ 14.509451] ? __pfx_kthread+0x10/0x10 [ 14.509473] ret_from_fork_asm+0x1a/0x30 [ 14.509505] </TASK> [ 14.509516] [ 14.517179] Allocated by task 274: [ 14.517352] kasan_save_stack+0x45/0x70 [ 14.517516] kasan_save_track+0x18/0x40 [ 14.517655] kasan_save_alloc_info+0x3b/0x50 [ 14.517820] __kasan_kmalloc+0xb7/0xc0 [ 14.518016] __kmalloc_cache_noprof+0x189/0x420 [ 14.518238] kasan_memcmp+0xb7/0x390 [ 14.518420] kunit_try_run_case+0x1a5/0x480 [ 14.518646] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.518832] kthread+0x337/0x6f0 [ 14.518954] ret_from_fork+0x116/0x1d0 [ 14.519340] ret_from_fork_asm+0x1a/0x30 [ 14.519680] [ 14.519792] The buggy address belongs to the object at ffff888103a5c400 [ 14.519792] which belongs to the cache kmalloc-32 of size 32 [ 14.520537] The buggy address is located 0 bytes to the right of [ 14.520537] allocated 24-byte region [ffff888103a5c400, ffff888103a5c418) [ 14.521019] [ 14.521094] The buggy address belongs to the physical page: [ 14.521437] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a5c [ 14.521770] flags: 0x200000000000000(node=0|zone=2) [ 14.522127] page_type: f5(slab) [ 14.522284] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.522620] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.522894] page dumped because: kasan: bad access detected [ 14.523298] [ 14.523519] Memory state around the buggy address: [ 14.523683] ffff888103a5c300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.523916] ffff888103a5c380: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.524133] >ffff888103a5c400: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.525017] ^ [ 14.525235] ffff888103a5c480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.525644] ffff888103a5c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.525874] ==================================================================