Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.136962] ================================================================== [ 19.137040] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 19.137105] Read of size 1 at addr fff00000c5a4d298 by task kunit_try_catch/257 [ 19.137238] [ 19.137282] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.137656] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.137802] Hardware name: linux,dummy-virt (DT) [ 19.137858] Call trace: [ 19.137922] show_stack+0x20/0x38 (C) [ 19.138124] dump_stack_lvl+0x8c/0xd0 [ 19.138235] print_report+0x118/0x608 [ 19.138563] kasan_report+0xdc/0x128 [ 19.138773] __asan_report_load1_noabort+0x20/0x30 [ 19.138946] memcmp+0x198/0x1d8 [ 19.139050] kasan_memcmp+0x16c/0x300 [ 19.139101] kunit_try_run_case+0x170/0x3f0 [ 19.139159] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.139217] kthread+0x328/0x630 [ 19.139264] ret_from_fork+0x10/0x20 [ 19.139325] [ 19.139381] Allocated by task 257: [ 19.139449] kasan_save_stack+0x3c/0x68 [ 19.139496] kasan_save_track+0x20/0x40 [ 19.139549] kasan_save_alloc_info+0x40/0x58 [ 19.139592] __kasan_kmalloc+0xd4/0xd8 [ 19.139639] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.139698] kasan_memcmp+0xbc/0x300 [ 19.139736] kunit_try_run_case+0x170/0x3f0 [ 19.139776] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.139824] kthread+0x328/0x630 [ 19.139868] ret_from_fork+0x10/0x20 [ 19.139906] [ 19.139933] The buggy address belongs to the object at fff00000c5a4d280 [ 19.139933] which belongs to the cache kmalloc-32 of size 32 [ 19.140000] The buggy address is located 0 bytes to the right of [ 19.140000] allocated 24-byte region [fff00000c5a4d280, fff00000c5a4d298) [ 19.140082] [ 19.140105] The buggy address belongs to the physical page: [ 19.140163] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a4d [ 19.140222] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.140277] page_type: f5(slab) [ 19.140329] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.141226] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.141306] page dumped because: kasan: bad access detected [ 19.141378] [ 19.141772] Memory state around the buggy address: [ 19.142217] fff00000c5a4d180: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 19.142297] fff00000c5a4d200: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.142359] >fff00000c5a4d280: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.142517] ^ [ 19.142686] fff00000c5a4d300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.143356] fff00000c5a4d380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.143501] ==================================================================
[ 14.364323] ================================================================== [ 14.364756] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 14.365246] Read of size 1 at addr ffff8881027b2658 by task kunit_try_catch/274 [ 14.365552] [ 14.365646] CPU: 1 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.365690] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.365701] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.365722] Call Trace: [ 14.365733] <TASK> [ 14.365746] dump_stack_lvl+0x73/0xb0 [ 14.365774] print_report+0xd1/0x650 [ 14.365796] ? __virt_addr_valid+0x1db/0x2d0 [ 14.365871] ? memcmp+0x1b4/0x1d0 [ 14.365892] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.365916] ? memcmp+0x1b4/0x1d0 [ 14.365935] kasan_report+0x141/0x180 [ 14.365956] ? memcmp+0x1b4/0x1d0 [ 14.365978] __asan_report_load1_noabort+0x18/0x20 [ 14.366004] memcmp+0x1b4/0x1d0 [ 14.366050] kasan_memcmp+0x18f/0x390 [ 14.366071] ? trace_hardirqs_on+0x37/0xe0 [ 14.366095] ? __pfx_kasan_memcmp+0x10/0x10 [ 14.366116] ? finish_task_switch.isra.0+0x153/0x700 [ 14.366139] ? __switch_to+0x47/0xf50 [ 14.366168] ? __pfx_read_tsc+0x10/0x10 [ 14.366189] ? ktime_get_ts64+0x86/0x230 [ 14.366213] kunit_try_run_case+0x1a5/0x480 [ 14.366238] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.366263] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.366286] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.366310] ? __kthread_parkme+0x82/0x180 [ 14.366330] ? preempt_count_sub+0x50/0x80 [ 14.366353] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.366379] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.366404] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.366430] kthread+0x337/0x6f0 [ 14.366448] ? trace_preempt_on+0x20/0xc0 [ 14.366470] ? __pfx_kthread+0x10/0x10 [ 14.366490] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.366512] ? calculate_sigpending+0x7b/0xa0 [ 14.366536] ? __pfx_kthread+0x10/0x10 [ 14.366557] ret_from_fork+0x116/0x1d0 [ 14.366576] ? __pfx_kthread+0x10/0x10 [ 14.366596] ret_from_fork_asm+0x1a/0x30 [ 14.366627] </TASK> [ 14.366636] [ 14.376723] Allocated by task 274: [ 14.376875] kasan_save_stack+0x45/0x70 [ 14.377544] kasan_save_track+0x18/0x40 [ 14.377726] kasan_save_alloc_info+0x3b/0x50 [ 14.378138] __kasan_kmalloc+0xb7/0xc0 [ 14.378420] __kmalloc_cache_noprof+0x189/0x420 [ 14.378747] kasan_memcmp+0xb7/0x390 [ 14.379008] kunit_try_run_case+0x1a5/0x480 [ 14.379349] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.379597] kthread+0x337/0x6f0 [ 14.379748] ret_from_fork+0x116/0x1d0 [ 14.380143] ret_from_fork_asm+0x1a/0x30 [ 14.380413] [ 14.380514] The buggy address belongs to the object at ffff8881027b2640 [ 14.380514] which belongs to the cache kmalloc-32 of size 32 [ 14.381503] The buggy address is located 0 bytes to the right of [ 14.381503] allocated 24-byte region [ffff8881027b2640, ffff8881027b2658) [ 14.382270] [ 14.382590] The buggy address belongs to the physical page: [ 14.383191] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027b2 [ 14.383514] flags: 0x200000000000000(node=0|zone=2) [ 14.383702] page_type: f5(slab) [ 14.383891] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.384582] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.385109] page dumped because: kasan: bad access detected [ 14.385452] [ 14.385553] Memory state around the buggy address: [ 14.386110] ffff8881027b2500: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.386534] ffff8881027b2580: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 14.387083] >ffff8881027b2600: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.387384] ^ [ 14.387742] ffff8881027b2680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.388285] ffff8881027b2700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.388588] ==================================================================