Date
July 3, 2025, 10:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.486881] ================================================================== [ 38.497656] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 38.504453] Write of size 16 at addr ffff000098190180 by task kunit_try_catch/275 [ 38.512040] [ 38.513574] CPU: 3 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 38.513606] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.513614] Hardware name: Thundercomm Dragonboard 845c (DT) [ 38.513627] Call trace: [ 38.513633] show_stack+0x20/0x38 (C) [ 38.513651] dump_stack_lvl+0x8c/0xd0 [ 38.513672] print_report+0x118/0x608 [ 38.513691] kasan_report+0xdc/0x128 [ 38.513711] __asan_report_store16_noabort+0x20/0x30 [ 38.513730] kmalloc_oob_16+0x3a0/0x3f8 [ 38.513747] kunit_try_run_case+0x170/0x3f0 [ 38.513766] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.513788] kthread+0x328/0x630 [ 38.513803] ret_from_fork+0x10/0x20 [ 38.513820] [ 38.579351] Allocated by task 275: [ 38.582813] kasan_save_stack+0x3c/0x68 [ 38.586723] kasan_save_track+0x20/0x40 [ 38.590633] kasan_save_alloc_info+0x40/0x58 [ 38.594970] __kasan_kmalloc+0xd4/0xd8 [ 38.598792] __kmalloc_cache_noprof+0x16c/0x3c0 [ 38.603401] kmalloc_oob_16+0xb4/0x3f8 [ 38.607222] kunit_try_run_case+0x170/0x3f0 [ 38.611476] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.617046] kthread+0x328/0x630 [ 38.620338] ret_from_fork+0x10/0x20 [ 38.623977] [ 38.625507] The buggy address belongs to the object at ffff000098190180 [ 38.625507] which belongs to the cache kmalloc-16 of size 16 [ 38.638000] The buggy address is located 0 bytes inside of [ 38.638000] allocated 13-byte region [ffff000098190180, ffff00009819018d) [ 38.650494] [ 38.652030] The buggy address belongs to the physical page: [ 38.657679] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118190 [ 38.665793] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 38.672415] page_type: f5(slab) [ 38.675623] raw: 0bfffe0000000000 ffff000080002640 dead000000000122 0000000000000000 [ 38.683469] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 38.691310] page dumped because: kasan: bad access detected [ 38.696956] [ 38.698486] Memory state around the buggy address: [ 38.703346] ffff000098190080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 38.710663] ffff000098190100: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 38.717988] >ffff000098190180: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 38.725310] ^ [ 38.728856] ffff000098190200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.736181] ffff000098190280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.743496] ==================================================================
[ 31.022599] ================================================================== [ 31.022672] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 31.022887] Write of size 16 at addr fff00000c5a30c40 by task kunit_try_catch/198 [ 31.022938] [ 31.022968] CPU: 0 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 31.023051] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.023094] Hardware name: linux,dummy-virt (DT) [ 31.023127] Call trace: [ 31.023149] show_stack+0x20/0x38 (C) [ 31.023197] dump_stack_lvl+0x8c/0xd0 [ 31.023246] print_report+0x118/0x608 [ 31.023292] kasan_report+0xdc/0x128 [ 31.023337] __asan_report_store16_noabort+0x20/0x30 [ 31.023386] kmalloc_oob_16+0x3a0/0x3f8 [ 31.023449] kunit_try_run_case+0x170/0x3f0 [ 31.023501] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.023556] kthread+0x328/0x630 [ 31.023608] ret_from_fork+0x10/0x20 [ 31.023665] [ 31.023684] Allocated by task 198: [ 31.023711] kasan_save_stack+0x3c/0x68 [ 31.023754] kasan_save_track+0x20/0x40 [ 31.023795] kasan_save_alloc_info+0x40/0x58 [ 31.023832] __kasan_kmalloc+0xd4/0xd8 [ 31.024448] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.024533] kmalloc_oob_16+0xb4/0x3f8 [ 31.024749] kunit_try_run_case+0x170/0x3f0 [ 31.025206] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.025570] kthread+0x328/0x630 [ 31.025665] ret_from_fork+0x10/0x20 [ 31.025705] [ 31.025752] The buggy address belongs to the object at fff00000c5a30c40 [ 31.025752] which belongs to the cache kmalloc-16 of size 16 [ 31.025944] The buggy address is located 0 bytes inside of [ 31.025944] allocated 13-byte region [fff00000c5a30c40, fff00000c5a30c4d) [ 31.026167] [ 31.026483] The buggy address belongs to the physical page: [ 31.026604] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xfff00000c5a30be0 pfn:0x105a30 [ 31.026688] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.026737] page_type: f5(slab) [ 31.027087] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 31.027154] raw: fff00000c5a30be0 000000008080007f 00000000f5000000 0000000000000000 [ 31.027250] page dumped because: kasan: bad access detected [ 31.027319] [ 31.027338] Memory state around the buggy address: [ 31.027611] fff00000c5a30b00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.027824] fff00000c5a30b80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 31.027896] >fff00000c5a30c00: 00 04 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 31.028011] ^ [ 31.028066] fff00000c5a30c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.028428] fff00000c5a30d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.028621] ==================================================================
[ 23.146799] ================================================================== [ 23.147213] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 23.147720] Write of size 16 at addr ffff8881054e09c0 by task kunit_try_catch/215 [ 23.148041] [ 23.148143] CPU: 1 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) [ 23.148191] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.148205] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.148227] Call Trace: [ 23.148239] <TASK> [ 23.148255] dump_stack_lvl+0x73/0xb0 [ 23.148285] print_report+0xd1/0x650 [ 23.148306] ? __virt_addr_valid+0x1db/0x2d0 [ 23.148329] ? kmalloc_oob_16+0x452/0x4a0 [ 23.148348] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.148373] ? kmalloc_oob_16+0x452/0x4a0 [ 23.148393] kasan_report+0x141/0x180 [ 23.148413] ? kmalloc_oob_16+0x452/0x4a0 [ 23.148437] __asan_report_store16_noabort+0x1b/0x30 [ 23.148471] kmalloc_oob_16+0x452/0x4a0 [ 23.148491] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 23.148512] ? __schedule+0x10cc/0x2b60 [ 23.148537] ? __pfx_read_tsc+0x10/0x10 [ 23.148558] ? ktime_get_ts64+0x86/0x230 [ 23.148583] kunit_try_run_case+0x1a5/0x480 [ 23.148608] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.148631] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.148653] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.148677] ? __kthread_parkme+0x82/0x180 [ 23.148750] ? preempt_count_sub+0x50/0x80 [ 23.148773] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.148809] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.148833] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.148857] kthread+0x337/0x6f0 [ 23.148876] ? trace_preempt_on+0x20/0xc0 [ 23.148900] ? __pfx_kthread+0x10/0x10 [ 23.148921] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.148944] ? calculate_sigpending+0x7b/0xa0 [ 23.148980] ? __pfx_kthread+0x10/0x10 [ 23.149001] ret_from_fork+0x116/0x1d0 [ 23.149020] ? __pfx_kthread+0x10/0x10 [ 23.149040] ret_from_fork_asm+0x1a/0x30 [ 23.149071] </TASK> [ 23.149083] [ 23.158792] Allocated by task 215: [ 23.158965] kasan_save_stack+0x45/0x70 [ 23.159147] kasan_save_track+0x18/0x40 [ 23.159684] kasan_save_alloc_info+0x3b/0x50 [ 23.160001] __kasan_kmalloc+0xb7/0xc0 [ 23.160316] __kmalloc_cache_noprof+0x189/0x420 [ 23.160555] kmalloc_oob_16+0xa8/0x4a0 [ 23.160723] kunit_try_run_case+0x1a5/0x480 [ 23.160908] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.161126] kthread+0x337/0x6f0 [ 23.161381] ret_from_fork+0x116/0x1d0 [ 23.161553] ret_from_fork_asm+0x1a/0x30 [ 23.161726] [ 23.161808] The buggy address belongs to the object at ffff8881054e09c0 [ 23.161808] which belongs to the cache kmalloc-16 of size 16 [ 23.162373] The buggy address is located 0 bytes inside of [ 23.162373] allocated 13-byte region [ffff8881054e09c0, ffff8881054e09cd) [ 23.163941] [ 23.164170] The buggy address belongs to the physical page: [ 23.164705] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1054e0 [ 23.165363] flags: 0x200000000000000(node=0|zone=2) [ 23.165804] page_type: f5(slab) [ 23.166109] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122 [ 23.166885] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 23.167831] page dumped because: kasan: bad access detected [ 23.168144] [ 23.168452] Memory state around the buggy address: [ 23.168881] ffff8881054e0880: 00 06 fc fc 00 06 fc fc 00 06 fc fc fa fb fc fc [ 23.169428] ffff8881054e0900: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 23.169716] >ffff8881054e0980: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 23.170007] ^ [ 23.170669] ffff8881054e0a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.171110] ffff8881054e0a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.171610] ==================================================================