Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.251836] ================================================================== [ 23.252878] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 23.253565] Read of size 1 at addr fff00000c605c658 by task kunit_try_catch/267 [ 23.253719] [ 23.253967] CPU: 0 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 23.254478] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.254557] Hardware name: linux,dummy-virt (DT) [ 23.254631] Call trace: [ 23.254687] show_stack+0x20/0x38 (C) [ 23.254814] dump_stack_lvl+0x8c/0xd0 [ 23.254912] print_report+0x118/0x608 [ 23.255029] kasan_report+0xdc/0x128 [ 23.255141] __asan_report_load1_noabort+0x20/0x30 [ 23.255697] memcmp+0x198/0x1d8 [ 23.256117] kasan_memcmp+0x16c/0x300 [ 23.256390] kunit_try_run_case+0x170/0x3f0 [ 23.257865] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.258076] kthread+0x328/0x630 [ 23.258194] ret_from_fork+0x10/0x20 [ 23.258326] [ 23.258385] Allocated by task 267: [ 23.258469] kasan_save_stack+0x3c/0x68 [ 23.258584] kasan_save_track+0x20/0x40 [ 23.258774] kasan_save_alloc_info+0x40/0x58 [ 23.258976] __kasan_kmalloc+0xd4/0xd8 [ 23.259328] __kmalloc_cache_noprof+0x16c/0x3c0 [ 23.259556] kasan_memcmp+0xbc/0x300 [ 23.259768] kunit_try_run_case+0x170/0x3f0 [ 23.259967] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.260566] kthread+0x328/0x630 [ 23.260989] ret_from_fork+0x10/0x20 [ 23.261097] [ 23.261149] The buggy address belongs to the object at fff00000c605c640 [ 23.261149] which belongs to the cache kmalloc-32 of size 32 [ 23.261313] The buggy address is located 0 bytes to the right of [ 23.261313] allocated 24-byte region [fff00000c605c640, fff00000c605c658) [ 23.261552] [ 23.261614] The buggy address belongs to the physical page: [ 23.261772] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10605c [ 23.262014] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.262427] page_type: f5(slab) [ 23.262587] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 23.262789] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 23.262925] page dumped because: kasan: bad access detected [ 23.263187] [ 23.263379] Memory state around the buggy address: [ 23.263517] fff00000c605c500: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.263737] fff00000c605c580: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 23.263970] >fff00000c605c600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.264095] ^ [ 23.264199] fff00000c605c680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.264370] fff00000c605c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.264630] ==================================================================
[ 13.035969] ================================================================== [ 13.036990] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 13.037640] Read of size 1 at addr ffff8881038fe1d8 by task kunit_try_catch/283 [ 13.037919] [ 13.037998] CPU: 1 UID: 0 PID: 283 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 13.038068] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.038081] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.038117] Call Trace: [ 13.038128] <TASK> [ 13.038144] dump_stack_lvl+0x73/0xb0 [ 13.038182] print_report+0xd1/0x650 [ 13.038552] ? __virt_addr_valid+0x1db/0x2d0 [ 13.038743] ? memcmp+0x1b4/0x1d0 [ 13.038765] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.038955] ? memcmp+0x1b4/0x1d0 [ 13.038977] kasan_report+0x141/0x180 [ 13.038999] ? memcmp+0x1b4/0x1d0 [ 13.039023] __asan_report_load1_noabort+0x18/0x20 [ 13.039046] memcmp+0x1b4/0x1d0 [ 13.039068] kasan_memcmp+0x18f/0x390 [ 13.039087] ? trace_hardirqs_on+0x37/0xe0 [ 13.039110] ? __pfx_kasan_memcmp+0x10/0x10 [ 13.039129] ? finish_task_switch.isra.0+0x153/0x700 [ 13.039150] ? __switch_to+0x47/0xf50 [ 13.039178] ? __pfx_read_tsc+0x10/0x10 [ 13.039199] ? ktime_get_ts64+0x86/0x230 [ 13.039233] kunit_try_run_case+0x1a5/0x480 [ 13.039256] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.039278] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.039299] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.039320] ? __kthread_parkme+0x82/0x180 [ 13.039339] ? preempt_count_sub+0x50/0x80 [ 13.039361] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.039384] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.039405] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.039427] kthread+0x337/0x6f0 [ 13.039445] ? trace_preempt_on+0x20/0xc0 [ 13.039466] ? __pfx_kthread+0x10/0x10 [ 13.039486] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.039505] ? calculate_sigpending+0x7b/0xa0 [ 13.039528] ? __pfx_kthread+0x10/0x10 [ 13.039548] ret_from_fork+0x116/0x1d0 [ 13.039565] ? __pfx_kthread+0x10/0x10 [ 13.039585] ret_from_fork_asm+0x1a/0x30 [ 13.039615] </TASK> [ 13.039625] [ 13.050808] Allocated by task 283: [ 13.050944] kasan_save_stack+0x45/0x70 [ 13.051430] kasan_save_track+0x18/0x40 [ 13.051753] kasan_save_alloc_info+0x3b/0x50 [ 13.051993] __kasan_kmalloc+0xb7/0xc0 [ 13.052391] __kmalloc_cache_noprof+0x189/0x420 [ 13.052796] kasan_memcmp+0xb7/0x390 [ 13.053160] kunit_try_run_case+0x1a5/0x480 [ 13.053385] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.054027] kthread+0x337/0x6f0 [ 13.054234] ret_from_fork+0x116/0x1d0 [ 13.054795] ret_from_fork_asm+0x1a/0x30 [ 13.054995] [ 13.055109] The buggy address belongs to the object at ffff8881038fe1c0 [ 13.055109] which belongs to the cache kmalloc-32 of size 32 [ 13.055872] The buggy address is located 0 bytes to the right of [ 13.055872] allocated 24-byte region [ffff8881038fe1c0, ffff8881038fe1d8) [ 13.056792] [ 13.056887] The buggy address belongs to the physical page: [ 13.057299] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038fe [ 13.057727] flags: 0x200000000000000(node=0|zone=2) [ 13.057949] page_type: f5(slab) [ 13.058102] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.058975] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.059333] page dumped because: kasan: bad access detected [ 13.059836] [ 13.059929] Memory state around the buggy address: [ 13.060365] ffff8881038fe080: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.060825] ffff8881038fe100: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 13.061318] >ffff8881038fe180: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.061712] ^ [ 13.062176] ffff8881038fe200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.062773] ffff8881038fe280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.063236] ==================================================================