Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.945636] ================================================================== [ 32.945741] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 32.945897] Read of size 1 at addr fff00000c9bb46d8 by task kunit_try_catch/288 [ 32.945955] [ 32.946251] CPU: 0 UID: 0 PID: 288 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 32.946482] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.946536] Hardware name: linux,dummy-virt (DT) [ 32.946636] Call trace: [ 32.946685] show_stack+0x20/0x38 (C) [ 32.946779] dump_stack_lvl+0x8c/0xd0 [ 32.946839] print_report+0x118/0x5d0 [ 32.947144] kasan_report+0xdc/0x128 [ 32.947216] __asan_report_load1_noabort+0x20/0x30 [ 32.947334] memcmp+0x198/0x1d8 [ 32.947409] kasan_memcmp+0x16c/0x300 [ 32.947460] kunit_try_run_case+0x170/0x3f0 [ 32.947575] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.947634] kthread+0x328/0x630 [ 32.947679] ret_from_fork+0x10/0x20 [ 32.947729] [ 32.947759] Allocated by task 288: [ 32.948048] kasan_save_stack+0x3c/0x68 [ 32.948168] kasan_save_track+0x20/0x40 [ 32.948211] kasan_save_alloc_info+0x40/0x58 [ 32.948254] __kasan_kmalloc+0xd4/0xd8 [ 32.948295] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.948672] kasan_memcmp+0xbc/0x300 [ 32.948743] kunit_try_run_case+0x170/0x3f0 [ 32.948944] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.949124] kthread+0x328/0x630 [ 32.949359] ret_from_fork+0x10/0x20 [ 32.949687] [ 32.949837] The buggy address belongs to the object at fff00000c9bb46c0 [ 32.949837] which belongs to the cache kmalloc-32 of size 32 [ 32.950003] The buggy address is located 0 bytes to the right of [ 32.950003] allocated 24-byte region [fff00000c9bb46c0, fff00000c9bb46d8) [ 32.950078] [ 32.950129] The buggy address belongs to the physical page: [ 32.950339] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109bb4 [ 32.950691] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.950835] page_type: f5(slab) [ 32.950926] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 32.951025] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 32.951313] page dumped because: kasan: bad access detected [ 32.951352] [ 32.951519] Memory state around the buggy address: [ 32.951562] fff00000c9bb4580: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 32.951666] fff00000c9bb4600: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 32.951725] >fff00000c9bb4680: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 32.951768] ^ [ 32.952223] fff00000c9bb4700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.952281] fff00000c9bb4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.952430] ==================================================================
[ 25.178893] ================================================================== [ 25.180614] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 25.182094] Read of size 1 at addr ffff888106092358 by task kunit_try_catch/306 [ 25.182995] [ 25.183400] CPU: 1 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 25.183466] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.183590] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.183620] Call Trace: [ 25.183637] <TASK> [ 25.183662] dump_stack_lvl+0x73/0xb0 [ 25.183699] print_report+0xd1/0x610 [ 25.183724] ? __virt_addr_valid+0x1db/0x2d0 [ 25.183747] ? memcmp+0x1b4/0x1d0 [ 25.183770] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.183797] ? memcmp+0x1b4/0x1d0 [ 25.183818] kasan_report+0x141/0x180 [ 25.183840] ? memcmp+0x1b4/0x1d0 [ 25.183873] __asan_report_load1_noabort+0x18/0x20 [ 25.183898] memcmp+0x1b4/0x1d0 [ 25.183921] kasan_memcmp+0x18f/0x390 [ 25.183942] ? trace_hardirqs_on+0x37/0xe0 [ 25.183966] ? __pfx_kasan_memcmp+0x10/0x10 [ 25.183986] ? finish_task_switch.isra.0+0x153/0x700 [ 25.184009] ? __switch_to+0x47/0xf80 [ 25.184039] ? __pfx_read_tsc+0x10/0x10 [ 25.184062] ? ktime_get_ts64+0x86/0x230 [ 25.184089] kunit_try_run_case+0x1a5/0x480 [ 25.184114] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.184137] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.184160] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.184183] ? __kthread_parkme+0x82/0x180 [ 25.184204] ? preempt_count_sub+0x50/0x80 [ 25.184227] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.184250] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.184276] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.184313] kthread+0x337/0x6f0 [ 25.184333] ? trace_preempt_on+0x20/0xc0 [ 25.184354] ? __pfx_kthread+0x10/0x10 [ 25.184434] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.184455] ? calculate_sigpending+0x7b/0xa0 [ 25.184493] ? __pfx_kthread+0x10/0x10 [ 25.184514] ret_from_fork+0x116/0x1d0 [ 25.184534] ? __pfx_kthread+0x10/0x10 [ 25.184555] ret_from_fork_asm+0x1a/0x30 [ 25.184587] </TASK> [ 25.184598] [ 25.195944] Allocated by task 306: [ 25.196097] kasan_save_stack+0x45/0x70 [ 25.197267] kasan_save_track+0x18/0x40 [ 25.197666] kasan_save_alloc_info+0x3b/0x50 [ 25.198196] __kasan_kmalloc+0xb7/0xc0 [ 25.198537] __kmalloc_cache_noprof+0x189/0x420 [ 25.198964] kasan_memcmp+0xb7/0x390 [ 25.199101] kunit_try_run_case+0x1a5/0x480 [ 25.199244] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.199440] kthread+0x337/0x6f0 [ 25.199559] ret_from_fork+0x116/0x1d0 [ 25.199712] ret_from_fork_asm+0x1a/0x30 [ 25.200358] [ 25.200542] The buggy address belongs to the object at ffff888106092340 [ 25.200542] which belongs to the cache kmalloc-32 of size 32 [ 25.201552] The buggy address is located 0 bytes to the right of [ 25.201552] allocated 24-byte region [ffff888106092340, ffff888106092358) [ 25.202701] [ 25.203072] The buggy address belongs to the physical page: [ 25.203482] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106092 [ 25.203863] flags: 0x200000000000000(node=0|zone=2) [ 25.204029] page_type: f5(slab) [ 25.204151] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.204785] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.205463] page dumped because: kasan: bad access detected [ 25.205687] [ 25.205754] Memory state around the buggy address: [ 25.205909] ffff888106092200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.206122] ffff888106092280: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 25.206344] >ffff888106092300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.206553] ^ [ 25.206826] ffff888106092380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.207153] ffff888106092400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.208196] ==================================================================