Date
July 12, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.511180] ================================================================== [ 19.511384] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 19.511555] Write of size 8 at addr fff00000c4569f71 by task kunit_try_catch/177 [ 19.511682] [ 19.511782] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.512012] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.512075] Hardware name: linux,dummy-virt (DT) [ 19.512144] Call trace: [ 19.512197] show_stack+0x20/0x38 (C) [ 19.512322] dump_stack_lvl+0x8c/0xd0 [ 19.512451] print_report+0x118/0x608 [ 19.512558] kasan_report+0xdc/0x128 [ 19.512696] kasan_check_range+0x100/0x1a8 [ 19.512813] __asan_memset+0x34/0x78 [ 19.512931] kmalloc_oob_memset_8+0x150/0x2f8 [ 19.513039] kunit_try_run_case+0x170/0x3f0 [ 19.513179] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.513277] kthread+0x328/0x630 [ 19.513328] ret_from_fork+0x10/0x20 [ 19.513386] [ 19.513426] Allocated by task 177: [ 19.513466] kasan_save_stack+0x3c/0x68 [ 19.513518] kasan_save_track+0x20/0x40 [ 19.513560] kasan_save_alloc_info+0x40/0x58 [ 19.513603] __kasan_kmalloc+0xd4/0xd8 [ 19.513642] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.513684] kmalloc_oob_memset_8+0xb0/0x2f8 [ 19.513724] kunit_try_run_case+0x170/0x3f0 [ 19.513767] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.513812] kthread+0x328/0x630 [ 19.513929] ret_from_fork+0x10/0x20 [ 19.514017] [ 19.514064] The buggy address belongs to the object at fff00000c4569f00 [ 19.514064] which belongs to the cache kmalloc-128 of size 128 [ 19.514185] The buggy address is located 113 bytes inside of [ 19.514185] allocated 120-byte region [fff00000c4569f00, fff00000c4569f78) [ 19.514310] [ 19.514357] The buggy address belongs to the physical page: [ 19.514448] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104569 [ 19.514656] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.514794] page_type: f5(slab) [ 19.514909] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.515037] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.515157] page dumped because: kasan: bad access detected [ 19.515236] [ 19.515284] Memory state around the buggy address: [ 19.515379] fff00000c4569e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.515516] fff00000c4569e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.515650] >fff00000c4569f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.515746] ^ [ 19.515871] fff00000c4569f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.515971] fff00000c456a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.516675] ==================================================================
[ 12.768616] ================================================================== [ 12.769250] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 12.769546] Write of size 8 at addr ffff888102655371 by task kunit_try_catch/194 [ 12.769894] [ 12.770251] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.770298] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.770309] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.770327] Call Trace: [ 12.770340] <TASK> [ 12.770355] dump_stack_lvl+0x73/0xb0 [ 12.770393] print_report+0xd1/0x650 [ 12.770416] ? __virt_addr_valid+0x1db/0x2d0 [ 12.770439] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.770460] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.770483] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.770505] kasan_report+0x141/0x180 [ 12.770526] ? kmalloc_oob_memset_8+0x166/0x330 [ 12.770552] kasan_check_range+0x10c/0x1c0 [ 12.770576] __asan_memset+0x27/0x50 [ 12.770595] kmalloc_oob_memset_8+0x166/0x330 [ 12.770617] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 12.770640] ? __schedule+0x10cc/0x2b60 [ 12.770663] ? __pfx_read_tsc+0x10/0x10 [ 12.770683] ? ktime_get_ts64+0x86/0x230 [ 12.770708] kunit_try_run_case+0x1a5/0x480 [ 12.770731] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.770777] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.770802] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.770826] ? __kthread_parkme+0x82/0x180 [ 12.770846] ? preempt_count_sub+0x50/0x80 [ 12.770870] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.770894] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.770918] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.770943] kthread+0x337/0x6f0 [ 12.770962] ? trace_preempt_on+0x20/0xc0 [ 12.770985] ? __pfx_kthread+0x10/0x10 [ 12.771005] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.771027] ? calculate_sigpending+0x7b/0xa0 [ 12.771051] ? __pfx_kthread+0x10/0x10 [ 12.771072] ret_from_fork+0x116/0x1d0 [ 12.771090] ? __pfx_kthread+0x10/0x10 [ 12.771110] ret_from_fork_asm+0x1a/0x30 [ 12.771141] </TASK> [ 12.771151] [ 12.778437] Allocated by task 194: [ 12.778595] kasan_save_stack+0x45/0x70 [ 12.779066] kasan_save_track+0x18/0x40 [ 12.779276] kasan_save_alloc_info+0x3b/0x50 [ 12.779494] __kasan_kmalloc+0xb7/0xc0 [ 12.779784] __kmalloc_cache_noprof+0x189/0x420 [ 12.780022] kmalloc_oob_memset_8+0xac/0x330 [ 12.780272] kunit_try_run_case+0x1a5/0x480 [ 12.780442] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.780617] kthread+0x337/0x6f0 [ 12.780775] ret_from_fork+0x116/0x1d0 [ 12.781001] ret_from_fork_asm+0x1a/0x30 [ 12.781217] [ 12.781489] The buggy address belongs to the object at ffff888102655300 [ 12.781489] which belongs to the cache kmalloc-128 of size 128 [ 12.782404] The buggy address is located 113 bytes inside of [ 12.782404] allocated 120-byte region [ffff888102655300, ffff888102655378) [ 12.783766] [ 12.783951] The buggy address belongs to the physical page: [ 12.784427] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102655 [ 12.785123] flags: 0x200000000000000(node=0|zone=2) [ 12.785355] page_type: f5(slab) [ 12.785516] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.786083] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.786404] page dumped because: kasan: bad access detected [ 12.786641] [ 12.787137] Memory state around the buggy address: [ 12.787565] ffff888102655200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.788266] ffff888102655280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.788567] >ffff888102655300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.789359] ^ [ 12.789998] ffff888102655380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.790504] ffff888102655400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.791065] ==================================================================