Date
April 22, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 17.678311] ================================================================== [ 17.678987] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 17.679155] Write of size 16 at addr fff00000c6256080 by task kunit_try_catch/168 [ 17.679329] [ 17.679399] CPU: 1 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 17.679592] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.679647] Hardware name: linux,dummy-virt (DT) [ 17.679947] Call trace: [ 17.680092] show_stack+0x20/0x38 (C) [ 17.680311] dump_stack_lvl+0x8c/0xd0 [ 17.680430] print_report+0x118/0x608 [ 17.680602] kasan_report+0xdc/0x128 [ 17.680699] __asan_report_store16_noabort+0x20/0x30 [ 17.680791] kmalloc_oob_16+0x3a0/0x3f8 [ 17.680900] kunit_try_run_case+0x170/0x3f0 [ 17.680990] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.681290] kthread+0x328/0x630 [ 17.681391] ret_from_fork+0x10/0x20 [ 17.681623] [ 17.681666] Allocated by task 168: [ 17.681747] kasan_save_stack+0x3c/0x68 [ 17.681866] kasan_save_track+0x20/0x40 [ 17.681949] kasan_save_alloc_info+0x40/0x58 [ 17.682078] __kasan_kmalloc+0xd4/0xd8 [ 17.682183] __kmalloc_cache_noprof+0x15c/0x3c0 [ 17.682286] kmalloc_oob_16+0xb4/0x3f8 [ 17.682369] kunit_try_run_case+0x170/0x3f0 [ 17.682450] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.682557] kthread+0x328/0x630 [ 17.682642] ret_from_fork+0x10/0x20 [ 17.682721] [ 17.682764] The buggy address belongs to the object at fff00000c6256080 [ 17.682764] which belongs to the cache kmalloc-16 of size 16 [ 17.682898] The buggy address is located 0 bytes inside of [ 17.682898] allocated 13-byte region [fff00000c6256080, fff00000c625608d) [ 17.683036] [ 17.683094] The buggy address belongs to the physical page: [ 17.683179] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106256 [ 17.683315] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.683471] page_type: f5(slab) [ 17.683559] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.683664] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.683780] page dumped because: kasan: bad access detected [ 17.683852] [ 17.683882] Memory state around the buggy address: [ 17.683944] fff00000c6255f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.684034] fff00000c6256000: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.684132] >fff00000c6256080: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 17.684235] ^ [ 17.684303] fff00000c6256100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.684390] fff00000c6256180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.684510] ==================================================================
[ 17.969956] ================================================================== [ 17.970789] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 17.971435] Write of size 16 at addr ffff8881021e3e60 by task kunit_try_catch/186 [ 17.972125] [ 17.972308] CPU: 1 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 17.972372] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.972388] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.972417] Call Trace: [ 17.972439] <TASK> [ 17.972890] dump_stack_lvl+0x73/0xb0 [ 17.973255] print_report+0xd1/0x650 [ 17.973301] ? __virt_addr_valid+0x1db/0x2d0 [ 17.973357] ? kmalloc_oob_16+0x452/0x4a0 [ 17.973389] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.973421] ? kmalloc_oob_16+0x452/0x4a0 [ 17.974032] kasan_report+0x141/0x180 [ 17.974076] ? kmalloc_oob_16+0x452/0x4a0 [ 17.974116] __asan_report_store16_noabort+0x1b/0x30 [ 17.974146] kmalloc_oob_16+0x452/0x4a0 [ 17.974176] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 17.974205] ? trace_hardirqs_on+0x37/0xe0 [ 17.974239] ? irqentry_exit+0x2a/0x60 [ 17.974265] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 17.974299] ? __pfx_read_tsc+0x10/0x10 [ 17.974327] ? ktime_get_ts64+0x86/0x230 [ 17.974363] kunit_try_run_case+0x1a5/0x480 [ 17.974396] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.974426] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.974534] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.974602] ? __kthread_parkme+0x82/0x180 [ 17.974636] ? preempt_count_sub+0x50/0x80 [ 17.974671] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.974703] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.974734] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.974764] kthread+0x337/0x6f0 [ 17.974793] ? trace_preempt_on+0x20/0xc0 [ 17.974823] ? __pfx_kthread+0x10/0x10 [ 17.974853] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.974885] ? calculate_sigpending+0x7b/0xa0 [ 17.974914] ? __pfx_kthread+0x10/0x10 [ 17.974944] ret_from_fork+0x41/0x80 [ 17.974972] ? __pfx_kthread+0x10/0x10 [ 17.975002] ret_from_fork_asm+0x1a/0x30 [ 17.975045] </TASK> [ 17.975059] [ 17.992069] Allocated by task 186: [ 17.992620] kasan_save_stack+0x45/0x70 [ 17.993047] kasan_save_track+0x18/0x40 [ 17.993890] kasan_save_alloc_info+0x3b/0x50 [ 17.994331] __kasan_kmalloc+0xb7/0xc0 [ 17.994994] __kmalloc_cache_noprof+0x189/0x420 [ 17.995474] kmalloc_oob_16+0xa8/0x4a0 [ 17.995880] kunit_try_run_case+0x1a5/0x480 [ 17.996702] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.997234] kthread+0x337/0x6f0 [ 17.997886] ret_from_fork+0x41/0x80 [ 17.998371] ret_from_fork_asm+0x1a/0x30 [ 17.999041] [ 17.999242] The buggy address belongs to the object at ffff8881021e3e60 [ 17.999242] which belongs to the cache kmalloc-16 of size 16 [ 18.000368] The buggy address is located 0 bytes inside of [ 18.000368] allocated 13-byte region [ffff8881021e3e60, ffff8881021e3e6d) [ 18.001695] [ 18.001904] The buggy address belongs to the physical page: [ 18.002374] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1021e3 [ 18.003627] flags: 0x200000000000000(node=0|zone=2) [ 18.004080] page_type: f5(slab) [ 18.004460] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 18.005287] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.006094] page dumped because: kasan: bad access detected [ 18.006540] [ 18.006758] Memory state around the buggy address: [ 18.007181] ffff8881021e3d00: 00 02 fc fc 00 05 fc fc 00 02 fc fc 00 02 fc fc [ 18.007845] ffff8881021e3d80: 00 02 fc fc 00 02 fc fc fa fb fc fc fa fb fc fc [ 18.008410] >ffff8881021e3e00: fa fb fc fc 00 05 fc fc fa fb fc fc 00 05 fc fc [ 18.009261] ^ [ 18.009995] ffff8881021e3e80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.010721] ffff8881021e3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.011237] ==================================================================
[ 19.692516] ================================================================== [ 19.693509] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 19.694150] Write of size 16 at addr ffff00000107ef00 by task kunit_try_catch/224 [ 19.694849] [ 19.695015] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 19.695065] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.695080] Hardware name: Radxa ROCK Pi 4B (DT) [ 19.695097] Call trace: [ 19.695109] show_stack+0x20/0x38 (C) [ 19.695143] dump_stack_lvl+0x8c/0xd0 [ 19.695174] print_report+0x118/0x608 [ 19.695203] kasan_report+0xdc/0x128 [ 19.695231] __asan_report_store16_noabort+0x20/0x30 [ 19.695266] kmalloc_oob_16+0x3a0/0x3f8 [ 19.695298] kunit_try_run_case+0x170/0x3f0 [ 19.695333] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.695371] kthread+0x328/0x630 [ 19.695405] ret_from_fork+0x10/0x20 [ 19.695438] [ 19.701010] Allocated by task 224: [ 19.701337] kasan_save_stack+0x3c/0x68 [ 19.701711] kasan_save_track+0x20/0x40 [ 19.702082] kasan_save_alloc_info+0x40/0x58 [ 19.702494] __kasan_kmalloc+0xd4/0xd8 [ 19.702857] __kmalloc_cache_noprof+0x15c/0x3c0 [ 19.703298] kmalloc_oob_16+0xb4/0x3f8 [ 19.703665] kunit_try_run_case+0x170/0x3f0 [ 19.704072] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.704596] kthread+0x328/0x630 [ 19.704919] ret_from_fork+0x10/0x20 [ 19.705268] [ 19.705422] The buggy address belongs to the object at ffff00000107ef00 [ 19.705422] which belongs to the cache kmalloc-16 of size 16 [ 19.706539] The buggy address is located 0 bytes inside of [ 19.706539] allocated 13-byte region [ffff00000107ef00, ffff00000107ef0d) [ 19.707658] [ 19.707812] The buggy address belongs to the physical page: [ 19.708328] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107e [ 19.709052] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 19.709663] page_type: f5(slab) [ 19.709976] raw: 03fffe0000000000 ffff000000402640 dead000000000122 0000000000000000 [ 19.710692] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 19.711398] page dumped because: kasan: bad access detected [ 19.711912] [ 19.712065] Memory state around the buggy address: [ 19.712513] ffff00000107ee00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 19.713178] ffff00000107ee80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 19.713844] >ffff00000107ef00: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 19.714505] ^ [ 19.714838] ffff00000107ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.715504] ffff00000107f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.716165] ==================================================================