Date
July 18, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.636468] ================================================================== [ 17.636549] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 17.636687] Read of size 1 at addr fff00000c7848398 by task kunit_try_catch/257 [ 17.636747] [ 17.636807] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.636935] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.636965] Hardware name: linux,dummy-virt (DT) [ 17.637325] Call trace: [ 17.637405] show_stack+0x20/0x38 (C) [ 17.637630] dump_stack_lvl+0x8c/0xd0 [ 17.637826] print_report+0x118/0x5d0 [ 17.637955] kasan_report+0xdc/0x128 [ 17.638060] __asan_report_load1_noabort+0x20/0x30 [ 17.638196] memcmp+0x198/0x1d8 [ 17.638344] kasan_memcmp+0x16c/0x300 [ 17.638642] kunit_try_run_case+0x170/0x3f0 [ 17.638772] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.638832] kthread+0x328/0x630 [ 17.639150] ret_from_fork+0x10/0x20 [ 17.639267] [ 17.639550] Allocated by task 257: [ 17.639622] kasan_save_stack+0x3c/0x68 [ 17.639701] kasan_save_track+0x20/0x40 [ 17.640091] kasan_save_alloc_info+0x40/0x58 [ 17.640244] __kasan_kmalloc+0xd4/0xd8 [ 17.640727] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.640946] kasan_memcmp+0xbc/0x300 [ 17.641033] kunit_try_run_case+0x170/0x3f0 [ 17.641149] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.641246] kthread+0x328/0x630 [ 17.641343] ret_from_fork+0x10/0x20 [ 17.641403] [ 17.641427] The buggy address belongs to the object at fff00000c7848380 [ 17.641427] which belongs to the cache kmalloc-32 of size 32 [ 17.641497] The buggy address is located 0 bytes to the right of [ 17.641497] allocated 24-byte region [fff00000c7848380, fff00000c7848398) [ 17.641845] [ 17.641970] The buggy address belongs to the physical page: [ 17.642049] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107848 [ 17.642201] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.642618] page_type: f5(slab) [ 17.642707] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.642892] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.642967] page dumped because: kasan: bad access detected [ 17.643091] [ 17.643175] Memory state around the buggy address: [ 17.643311] fff00000c7848280: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 17.643380] fff00000c7848300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.643744] >fff00000c7848380: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.643883] ^ [ 17.643939] fff00000c7848400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.644059] fff00000c7848480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.644165] ==================================================================
[ 14.059548] ================================================================== [ 14.060851] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.061702] Read of size 1 at addr ffff8881030f6c98 by task kunit_try_catch/276 [ 14.062425] [ 14.062707] CPU: 1 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.062763] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.062775] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.062798] Call Trace: [ 14.062812] <TASK> [ 14.062829] dump_stack_lvl+0x73/0xb0 [ 14.062861] print_report+0xd1/0x610 [ 14.062886] ? __virt_addr_valid+0x1db/0x2d0 [ 14.062911] ? memcmp+0x1b4/0x1d0 [ 14.062928] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.062952] ? memcmp+0x1b4/0x1d0 [ 14.062971] kasan_report+0x141/0x180 [ 14.062992] ? memcmp+0x1b4/0x1d0 [ 14.063014] __asan_report_load1_noabort+0x18/0x20 [ 14.063170] memcmp+0x1b4/0x1d0 [ 14.063192] kasan_memcmp+0x18f/0x390 [ 14.063225] ? trace_hardirqs_on+0x37/0xe0 [ 14.063251] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.063309] ? finish_task_switch.isra.0+0x153/0x700 [ 14.063336] ? __switch_to+0x47/0xf50 [ 14.063367] ? __pfx_read_tsc+0x10/0x10 [ 14.063388] ? ktime_get_ts64+0x86/0x230 [ 14.063413] kunit_try_run_case+0x1a5/0x480 [ 14.063439] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.063462] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.063498] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.063522] ? __kthread_parkme+0x82/0x180 [ 14.063544] ? preempt_count_sub+0x50/0x80 [ 14.063568] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.063593] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.063618] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.063643] kthread+0x337/0x6f0 [ 14.063663] ? trace_preempt_on+0x20/0xc0 [ 14.063686] ? __pfx_kthread+0x10/0x10 [ 14.063707] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.063729] ? calculate_sigpending+0x7b/0xa0 [ 14.063753] ? __pfx_kthread+0x10/0x10 [ 14.063775] ret_from_fork+0x116/0x1d0 [ 14.063794] ? __pfx_kthread+0x10/0x10 [ 14.063815] ret_from_fork_asm+0x1a/0x30 [ 14.063846] </TASK> [ 14.063857] [ 14.078705] Allocated by task 276: [ 14.079072] kasan_save_stack+0x45/0x70 [ 14.079559] kasan_save_track+0x18/0x40 [ 14.080154] kasan_save_alloc_info+0x3b/0x50 [ 14.080619] __kasan_kmalloc+0xb7/0xc0 [ 14.080979] __kmalloc_cache_noprof+0x189/0x420 [ 14.081384] kasan_memcmp+0xb7/0x390 [ 14.081586] kunit_try_run_case+0x1a5/0x480 [ 14.082004] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.082480] kthread+0x337/0x6f0 [ 14.082830] ret_from_fork+0x116/0x1d0 [ 14.083175] ret_from_fork_asm+0x1a/0x30 [ 14.083386] [ 14.083546] The buggy address belongs to the object at ffff8881030f6c80 [ 14.083546] which belongs to the cache kmalloc-32 of size 32 [ 14.084621] The buggy address is located 0 bytes to the right of [ 14.084621] allocated 24-byte region [ffff8881030f6c80, ffff8881030f6c98) [ 14.085890] [ 14.085983] The buggy address belongs to the physical page: [ 14.086547] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1030f6 [ 14.087023] flags: 0x200000000000000(node=0|zone=2) [ 14.087215] page_type: f5(slab) [ 14.087553] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.088086] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.088571] page dumped because: kasan: bad access detected [ 14.089043] [ 14.089117] Memory state around the buggy address: [ 14.089463] ffff8881030f6b80: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.090078] ffff8881030f6c00: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.090714] >ffff8881030f6c80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.091333] ^ [ 14.091669] ffff8881030f6d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.092157] ffff8881030f6d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.092390] ==================================================================