Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.117597] ================================================================== [ 19.118108] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 19.118247] Read of size 1 at addr fff00000c78329d8 by task kunit_try_catch/257 [ 19.118306] [ 19.118359] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 19.118687] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.118760] Hardware name: linux,dummy-virt (DT) [ 19.118965] Call trace: [ 19.119004] show_stack+0x20/0x38 (C) [ 19.119192] dump_stack_lvl+0x8c/0xd0 [ 19.119329] print_report+0x118/0x608 [ 19.119638] kasan_report+0xdc/0x128 [ 19.119959] __asan_report_load1_noabort+0x20/0x30 [ 19.120098] memcmp+0x198/0x1d8 [ 19.120166] kasan_memcmp+0x16c/0x300 [ 19.120242] kunit_try_run_case+0x170/0x3f0 [ 19.120341] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.120426] kthread+0x328/0x630 [ 19.120554] ret_from_fork+0x10/0x20 [ 19.120904] [ 19.120936] Allocated by task 257: [ 19.120973] kasan_save_stack+0x3c/0x68 [ 19.121037] kasan_save_track+0x20/0x40 [ 19.121708] kasan_save_alloc_info+0x40/0x58 [ 19.121836] __kasan_kmalloc+0xd4/0xd8 [ 19.121995] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.122187] kasan_memcmp+0xbc/0x300 [ 19.122444] kunit_try_run_case+0x170/0x3f0 [ 19.122639] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.122742] kthread+0x328/0x630 [ 19.122903] ret_from_fork+0x10/0x20 [ 19.123047] [ 19.123075] The buggy address belongs to the object at fff00000c78329c0 [ 19.123075] which belongs to the cache kmalloc-32 of size 32 [ 19.123191] The buggy address is located 0 bytes to the right of [ 19.123191] allocated 24-byte region [fff00000c78329c0, fff00000c78329d8) [ 19.123679] [ 19.123749] The buggy address belongs to the physical page: [ 19.123838] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107832 [ 19.124061] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.124327] page_type: f5(slab) [ 19.124499] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.124644] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.124795] page dumped because: kasan: bad access detected [ 19.124846] [ 19.124900] Memory state around the buggy address: [ 19.124960] fff00000c7832880: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.125043] fff00000c7832900: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 19.125089] >fff00000c7832980: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.125129] ^ [ 19.125333] fff00000c7832a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.125562] fff00000c7832a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.125663] ==================================================================
[ 13.298263] ================================================================== [ 13.298820] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 13.299122] Read of size 1 at addr ffff8881038e61d8 by task kunit_try_catch/275 [ 13.299748] [ 13.299937] CPU: 0 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.299987] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.299999] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.300020] Call Trace: [ 13.300032] <TASK> [ 13.300048] dump_stack_lvl+0x73/0xb0 [ 13.300074] print_report+0xd1/0x650 [ 13.300108] ? __virt_addr_valid+0x1db/0x2d0 [ 13.300210] ? memcmp+0x1b4/0x1d0 [ 13.300243] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.300266] ? memcmp+0x1b4/0x1d0 [ 13.300283] kasan_report+0x141/0x180 [ 13.300325] ? memcmp+0x1b4/0x1d0 [ 13.300358] __asan_report_load1_noabort+0x18/0x20 [ 13.300382] memcmp+0x1b4/0x1d0 [ 13.300402] kasan_memcmp+0x18f/0x390 [ 13.300433] ? trace_hardirqs_on+0x37/0xe0 [ 13.300456] ? __pfx_kasan_memcmp+0x10/0x10 [ 13.300476] ? finish_task_switch.isra.0+0x153/0x700 [ 13.300498] ? __switch_to+0x47/0xf50 [ 13.300551] ? __pfx_read_tsc+0x10/0x10 [ 13.300572] ? ktime_get_ts64+0x86/0x230 [ 13.300595] kunit_try_run_case+0x1a5/0x480 [ 13.300629] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.300650] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.300672] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.300694] ? __kthread_parkme+0x82/0x180 [ 13.300713] ? preempt_count_sub+0x50/0x80 [ 13.300736] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.300759] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.300782] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.300805] kthread+0x337/0x6f0 [ 13.300824] ? trace_preempt_on+0x20/0xc0 [ 13.300845] ? __pfx_kthread+0x10/0x10 [ 13.300865] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.300885] ? calculate_sigpending+0x7b/0xa0 [ 13.300908] ? __pfx_kthread+0x10/0x10 [ 13.300929] ret_from_fork+0x116/0x1d0 [ 13.300947] ? __pfx_kthread+0x10/0x10 [ 13.300966] ret_from_fork_asm+0x1a/0x30 [ 13.300996] </TASK> [ 13.301007] [ 13.314050] Allocated by task 275: [ 13.314375] kasan_save_stack+0x45/0x70 [ 13.314768] kasan_save_track+0x18/0x40 [ 13.315031] kasan_save_alloc_info+0x3b/0x50 [ 13.315389] __kasan_kmalloc+0xb7/0xc0 [ 13.315726] __kmalloc_cache_noprof+0x189/0x420 [ 13.315885] kasan_memcmp+0xb7/0x390 [ 13.316011] kunit_try_run_case+0x1a5/0x480 [ 13.316207] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.316826] kthread+0x337/0x6f0 [ 13.317202] ret_from_fork+0x116/0x1d0 [ 13.317710] ret_from_fork_asm+0x1a/0x30 [ 13.318120] [ 13.318309] The buggy address belongs to the object at ffff8881038e61c0 [ 13.318309] which belongs to the cache kmalloc-32 of size 32 [ 13.319065] The buggy address is located 0 bytes to the right of [ 13.319065] allocated 24-byte region [ffff8881038e61c0, ffff8881038e61d8) [ 13.320090] [ 13.320379] The buggy address belongs to the physical page: [ 13.320902] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038e6 [ 13.321590] flags: 0x200000000000000(node=0|zone=2) [ 13.321754] page_type: f5(slab) [ 13.321874] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.322110] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.322399] page dumped because: kasan: bad access detected [ 13.322692] [ 13.322785] Memory state around the buggy address: [ 13.322950] ffff8881038e6080: 00 00 07 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 13.323313] ffff8881038e6100: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 13.323712] >ffff8881038e6180: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.324072] ^ [ 13.324449] ffff8881038e6200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.324785] ffff8881038e6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.325166] ==================================================================