Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.924420] ================================================================== [ 23.925504] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 23.926324] Read of size 1 at addr fff00000c41f1818 by task kunit_try_catch/245 [ 23.927162] [ 23.927527] CPU: 1 UID: 0 PID: 245 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 23.927746] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.927787] Hardware name: linux,dummy-virt (DT) [ 23.927830] Call trace: [ 23.927861] dump_backtrace+0x9c/0x128 [ 23.928540] show_stack+0x20/0x38 [ 23.928649] dump_stack_lvl+0x8c/0xd0 [ 23.928754] print_report+0x118/0x5f0 [ 23.928874] kasan_report+0xdc/0x128 [ 23.928985] __asan_report_load1_noabort+0x20/0x30 [ 23.929050] memcmp+0x198/0x1d8 [ 23.929096] kasan_memcmp+0x170/0x310 [ 23.929147] kunit_try_run_case+0x170/0x3f0 [ 23.929198] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.929255] kthread+0x24c/0x2d0 [ 23.929305] ret_from_fork+0x10/0x20 [ 23.929358] [ 23.937476] Allocated by task 245: [ 23.938573] kasan_save_stack+0x3c/0x68 [ 23.939075] kasan_save_track+0x20/0x40 [ 23.940198] kasan_save_alloc_info+0x40/0x58 [ 23.940933] __kasan_kmalloc+0xd4/0xd8 [ 23.941591] __kmalloc_cache_noprof+0x154/0x320 [ 23.942307] kasan_memcmp+0xbc/0x310 [ 23.942933] kunit_try_run_case+0x170/0x3f0 [ 23.943659] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.944684] kthread+0x24c/0x2d0 [ 23.945623] ret_from_fork+0x10/0x20 [ 23.946288] [ 23.946600] The buggy address belongs to the object at fff00000c41f1800 [ 23.946600] which belongs to the cache kmalloc-32 of size 32 [ 23.947885] The buggy address is located 0 bytes to the right of [ 23.947885] allocated 24-byte region [fff00000c41f1800, fff00000c41f1818) [ 23.949562] [ 23.949946] The buggy address belongs to the physical page: [ 23.950569] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1041f1 [ 23.951671] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.952856] page_type: f5(slab) [ 23.953326] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 23.954237] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 23.954955] page dumped because: kasan: bad access detected [ 23.955712] [ 23.956104] Memory state around the buggy address: [ 23.956816] fff00000c41f1700: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 23.957579] fff00000c41f1780: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.958335] >fff00000c41f1800: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.959072] ^ [ 23.959567] fff00000c41f1880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.960325] fff00000c41f1900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.961632] ==================================================================
[ 20.611880] ================================================================== [ 20.612566] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 20.613444] Read of size 1 at addr ffff888102af7398 by task kunit_try_catch/262 [ 20.615421] [ 20.616303] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 20.616380] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.616398] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.616429] Call Trace: [ 20.616486] <TASK> [ 20.616537] dump_stack_lvl+0x73/0xb0 [ 20.616600] print_report+0xd1/0x640 [ 20.616636] ? __virt_addr_valid+0x1db/0x2d0 [ 20.616672] ? memcmp+0x1b4/0x1d0 [ 20.616700] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.616732] ? memcmp+0x1b4/0x1d0 [ 20.616760] kasan_report+0x140/0x180 [ 20.616793] ? memcmp+0x1b4/0x1d0 [ 20.616850] __asan_report_load1_noabort+0x18/0x20 [ 20.616889] memcmp+0x1b4/0x1d0 [ 20.616921] kasan_memcmp+0x190/0x390 [ 20.616954] ? __pfx_kasan_memcmp+0x10/0x10 [ 20.616984] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 20.617023] ? __pfx_kasan_memcmp+0x10/0x10 [ 20.617060] kunit_try_run_case+0x1a6/0x480 [ 20.617090] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.617118] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 20.617145] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.617180] ? __kthread_parkme+0x82/0x160 [ 20.617207] ? preempt_count_sub+0x50/0x80 [ 20.617265] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.617295] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.617332] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.617369] kthread+0x257/0x310 [ 20.617392] ? __pfx_kthread+0x10/0x10 [ 20.617419] ret_from_fork+0x41/0x80 [ 20.617472] ? __pfx_kthread+0x10/0x10 [ 20.617584] ret_from_fork_asm+0x1a/0x30 [ 20.617647] </TASK> [ 20.617662] [ 20.638836] Allocated by task 262: [ 20.639848] kasan_save_stack+0x45/0x70 [ 20.640837] kasan_save_track+0x18/0x40 [ 20.641566] kasan_save_alloc_info+0x3b/0x50 [ 20.642304] __kasan_kmalloc+0xb7/0xc0 [ 20.643020] __kmalloc_cache_noprof+0x168/0x350 [ 20.643429] kasan_memcmp+0xb8/0x390 [ 20.644196] kunit_try_run_case+0x1a6/0x480 [ 20.644628] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.645325] kthread+0x257/0x310 [ 20.645688] ret_from_fork+0x41/0x80 [ 20.646017] ret_from_fork_asm+0x1a/0x30 [ 20.647023] [ 20.647291] The buggy address belongs to the object at ffff888102af7380 [ 20.647291] which belongs to the cache kmalloc-32 of size 32 [ 20.648752] The buggy address is located 0 bytes to the right of [ 20.648752] allocated 24-byte region [ffff888102af7380, ffff888102af7398) [ 20.650033] [ 20.650292] The buggy address belongs to the physical page: [ 20.651031] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af7 [ 20.652080] flags: 0x200000000000000(node=0|zone=2) [ 20.652669] page_type: f5(slab) [ 20.653061] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 20.653929] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 20.654671] page dumped because: kasan: bad access detected [ 20.655166] [ 20.655429] Memory state around the buggy address: [ 20.656279] ffff888102af7280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.656847] ffff888102af7300: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.657388] >ffff888102af7380: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.657903] ^ [ 20.658559] ffff888102af7400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.659241] ffff888102af7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.660427] ==================================================================