Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.785939] ================================================================== [ 24.786164] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 24.786324] Write of size 16 at addr fff00000c76cf269 by task kunit_try_catch/180 [ 24.786544] [ 24.786735] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.786958] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.787025] Hardware name: linux,dummy-virt (DT) [ 24.787102] Call trace: [ 24.787205] show_stack+0x20/0x38 (C) [ 24.787328] dump_stack_lvl+0x8c/0xd0 [ 24.787471] print_report+0x118/0x608 [ 24.787725] kasan_report+0xdc/0x128 [ 24.787835] kasan_check_range+0x100/0x1a8 [ 24.787945] __asan_memset+0x34/0x78 [ 24.788112] kmalloc_oob_memset_16+0x150/0x2f8 [ 24.788244] kunit_try_run_case+0x170/0x3f0 [ 24.788510] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.788767] kthread+0x328/0x630 [ 24.788970] ret_from_fork+0x10/0x20 [ 24.789125] [ 24.789221] Allocated by task 180: [ 24.789291] kasan_save_stack+0x3c/0x68 [ 24.789515] kasan_save_track+0x20/0x40 [ 24.789617] kasan_save_alloc_info+0x40/0x58 [ 24.789721] __kasan_kmalloc+0xd4/0xd8 [ 24.789817] __kmalloc_cache_noprof+0x16c/0x3c0 [ 24.789929] kmalloc_oob_memset_16+0xb0/0x2f8 [ 24.790040] kunit_try_run_case+0x170/0x3f0 [ 24.790150] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.790270] kthread+0x328/0x630 [ 24.790374] ret_from_fork+0x10/0x20 [ 24.792186] [ 24.792302] The buggy address belongs to the object at fff00000c76cf200 [ 24.792302] which belongs to the cache kmalloc-128 of size 128 [ 24.793230] The buggy address is located 105 bytes inside of [ 24.793230] allocated 120-byte region [fff00000c76cf200, fff00000c76cf278) [ 24.793426] [ 24.793475] The buggy address belongs to the physical page: [ 24.793541] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076cf [ 24.793653] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.794068] page_type: f5(slab) [ 24.794332] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 24.794625] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.794773] page dumped because: kasan: bad access detected [ 24.794846] [ 24.794889] Memory state around the buggy address: [ 24.794961] fff00000c76cf100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.795102] fff00000c76cf180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.795214] >fff00000c76cf200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.795300] ^ [ 24.795427] fff00000c76cf280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.795519] fff00000c76cf300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.795601] ==================================================================
[ 17.448425] ================================================================== [ 17.450810] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 17.451299] Write of size 16 at addr ffff88810a06f769 by task kunit_try_catch/199 [ 17.452625] [ 17.453092] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 17.453243] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.453286] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.453343] Call Trace: [ 17.453381] <TASK> [ 17.453426] dump_stack_lvl+0x73/0xb0 [ 17.453502] print_report+0xd1/0x650 [ 17.453578] ? __virt_addr_valid+0x1db/0x2d0 [ 17.453670] ? kmalloc_oob_memset_16+0x166/0x330 [ 17.453821] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.453879] ? kmalloc_oob_memset_16+0x166/0x330 [ 17.453918] kasan_report+0x141/0x180 [ 17.453953] ? kmalloc_oob_memset_16+0x166/0x330 [ 17.453993] kasan_check_range+0x10c/0x1c0 [ 17.454021] __asan_memset+0x27/0x50 [ 17.454049] kmalloc_oob_memset_16+0x166/0x330 [ 17.454083] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 17.454116] ? __schedule+0x10cc/0x2b60 [ 17.454147] ? __pfx_read_tsc+0x10/0x10 [ 17.454176] ? ktime_get_ts64+0x86/0x230 [ 17.454212] kunit_try_run_case+0x1a5/0x480 [ 17.454278] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.454314] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.454349] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.454381] ? __kthread_parkme+0x82/0x180 [ 17.454412] ? preempt_count_sub+0x50/0x80 [ 17.454446] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.454480] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.454512] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.454544] kthread+0x337/0x6f0 [ 17.454566] ? trace_preempt_on+0x20/0xc0 [ 17.454621] ? __pfx_kthread+0x10/0x10 [ 17.454693] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.454769] ? calculate_sigpending+0x7b/0xa0 [ 17.454842] ? __pfx_kthread+0x10/0x10 [ 17.454912] ret_from_fork+0x41/0x80 [ 17.454959] ? __pfx_kthread+0x10/0x10 [ 17.454986] ret_from_fork_asm+0x1a/0x30 [ 17.455028] </TASK> [ 17.455042] [ 17.474378] Allocated by task 199: [ 17.474751] kasan_save_stack+0x45/0x70 [ 17.475130] kasan_save_track+0x18/0x40 [ 17.475646] kasan_save_alloc_info+0x3b/0x50 [ 17.476087] __kasan_kmalloc+0xb7/0xc0 [ 17.476545] __kmalloc_cache_noprof+0x189/0x420 [ 17.476953] kmalloc_oob_memset_16+0xac/0x330 [ 17.477334] kunit_try_run_case+0x1a5/0x480 [ 17.477935] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.478516] kthread+0x337/0x6f0 [ 17.479016] ret_from_fork+0x41/0x80 [ 17.479419] ret_from_fork_asm+0x1a/0x30 [ 17.479848] [ 17.480080] The buggy address belongs to the object at ffff88810a06f700 [ 17.480080] which belongs to the cache kmalloc-128 of size 128 [ 17.481401] The buggy address is located 105 bytes inside of [ 17.481401] allocated 120-byte region [ffff88810a06f700, ffff88810a06f778) [ 17.482474] [ 17.482851] The buggy address belongs to the physical page: [ 17.483320] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a06f [ 17.484117] flags: 0x200000000000000(node=0|zone=2) [ 17.484949] page_type: f5(slab) [ 17.485328] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 17.486009] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.486851] page dumped because: kasan: bad access detected [ 17.487329] [ 17.487552] Memory state around the buggy address: [ 17.487967] ffff88810a06f600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.488503] ffff88810a06f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.489136] >ffff88810a06f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.490282] ^ [ 17.490978] ffff88810a06f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.491587] ffff88810a06f800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.492146] ==================================================================