Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.657144] ================================================================== [ 18.658562] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 18.659501] Write of size 16 at addr fff00000c3e60640 by task kunit_try_catch/156 [ 18.659937] [ 18.660192] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 18.660382] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.660442] Hardware name: linux,dummy-virt (DT) [ 18.660516] Call trace: [ 18.660564] show_stack+0x20/0x38 (C) [ 18.660636] dump_stack_lvl+0x8c/0xd0 [ 18.660692] print_report+0x118/0x608 [ 18.660746] kasan_report+0xdc/0x128 [ 18.660798] __asan_report_store16_noabort+0x20/0x30 [ 18.660852] kmalloc_oob_16+0x3a0/0x3f8 [ 18.660902] kunit_try_run_case+0x170/0x3f0 [ 18.660956] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.661013] kthread+0x318/0x620 [ 18.661063] ret_from_fork+0x10/0x20 [ 18.661120] [ 18.668064] Allocated by task 156: [ 18.668320] kasan_save_stack+0x3c/0x68 [ 18.668567] kasan_save_track+0x20/0x40 [ 18.668798] kasan_save_alloc_info+0x40/0x58 [ 18.669040] __kasan_kmalloc+0xd4/0xd8 [ 18.670808] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.671377] kmalloc_oob_16+0xb4/0x3f8 [ 18.671868] kunit_try_run_case+0x170/0x3f0 [ 18.672251] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.672702] kthread+0x318/0x620 [ 18.673017] ret_from_fork+0x10/0x20 [ 18.673843] [ 18.674324] The buggy address belongs to the object at fff00000c3e60640 [ 18.674324] which belongs to the cache kmalloc-16 of size 16 [ 18.676139] The buggy address is located 0 bytes inside of [ 18.676139] allocated 13-byte region [fff00000c3e60640, fff00000c3e6064d) [ 18.677123] [ 18.677385] The buggy address belongs to the physical page: [ 18.677685] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103e60 [ 18.678600] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.679284] page_type: f5(slab) [ 18.679530] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.679891] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.680250] page dumped because: kasan: bad access detected [ 18.680521] [ 18.680662] Memory state around the buggy address: [ 18.680911] fff00000c3e60500: fa fb fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 18.683190] fff00000c3e60580: 00 02 fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 18.683570] >fff00000c3e60600: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 18.684354] ^ [ 18.685001] fff00000c3e60680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.685604] fff00000c3e60700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.686139] ==================================================================
[ 12.687108] ================================================================== [ 12.687496] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 12.687732] Write of size 16 at addr ffff888101b5ab60 by task kunit_try_catch/174 [ 12.687955] [ 12.688049] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 12.688087] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.688098] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.688119] Call Trace: [ 12.688130] <TASK> [ 12.688146] dump_stack_lvl+0x73/0xb0 [ 12.688170] print_report+0xd1/0x650 [ 12.688191] ? __virt_addr_valid+0x1db/0x2d0 [ 12.688213] ? kmalloc_oob_16+0x454/0x4a0 [ 12.688232] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.688256] ? kmalloc_oob_16+0x454/0x4a0 [ 12.688276] kasan_report+0x140/0x180 [ 12.688297] ? kmalloc_oob_16+0x454/0x4a0 [ 12.688320] __asan_report_store16_noabort+0x1b/0x30 [ 12.688343] kmalloc_oob_16+0x454/0x4a0 [ 12.688363] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.688383] ? __schedule+0xce8/0x2840 [ 12.688406] ? __pfx_read_tsc+0x10/0x10 [ 12.688427] ? ktime_get_ts64+0x86/0x230 [ 12.688452] kunit_try_run_case+0x1a6/0x480 [ 12.688475] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.688495] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.688518] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.688541] ? __kthread_parkme+0x82/0x160 [ 12.688562] ? preempt_count_sub+0x50/0x80 [ 12.688586] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.688608] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.688633] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.688659] kthread+0x324/0x6e0 [ 12.688679] ? trace_preempt_on+0x20/0xc0 [ 12.688701] ? __pfx_kthread+0x10/0x10 [ 12.688722] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.688744] ? calculate_sigpending+0x7b/0xa0 [ 12.688765] ? __pfx_kthread+0x10/0x10 [ 12.688786] ret_from_fork+0x41/0x80 [ 12.688805] ? __pfx_kthread+0x10/0x10 [ 12.688827] ret_from_fork_asm+0x1a/0x30 [ 12.688857] </TASK> [ 12.688867] [ 12.700262] Allocated by task 174: [ 12.700451] kasan_save_stack+0x45/0x70 [ 12.700737] kasan_save_track+0x18/0x40 [ 12.700902] kasan_save_alloc_info+0x3b/0x50 [ 12.701102] __kasan_kmalloc+0xb7/0xc0 [ 12.701263] __kmalloc_cache_noprof+0x18a/0x420 [ 12.701470] kmalloc_oob_16+0xa9/0x4a0 [ 12.701715] kunit_try_run_case+0x1a6/0x480 [ 12.701908] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.702134] kthread+0x324/0x6e0 [ 12.702301] ret_from_fork+0x41/0x80 [ 12.702445] ret_from_fork_asm+0x1a/0x30 [ 12.702723] [ 12.702822] The buggy address belongs to the object at ffff888101b5ab60 [ 12.702822] which belongs to the cache kmalloc-16 of size 16 [ 12.703268] The buggy address is located 0 bytes inside of [ 12.703268] allocated 13-byte region [ffff888101b5ab60, ffff888101b5ab6d) [ 12.703842] [ 12.703939] The buggy address belongs to the physical page: [ 12.704163] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101b5a [ 12.704488] flags: 0x200000000000000(node=0|zone=2) [ 12.704759] page_type: f5(slab) [ 12.704893] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.705127] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.705341] page dumped because: kasan: bad access detected [ 12.705646] [ 12.705750] Memory state around the buggy address: [ 12.705966] ffff888101b5aa00: 00 04 fc fc 00 04 fc fc 00 00 fc fc fa fb fc fc [ 12.706288] ffff888101b5aa80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 12.706621] >ffff888101b5ab00: fa fb fc fc fa fb fc fc 00 05 fc fc 00 05 fc fc [ 12.706902] ^ [ 12.707108] ffff888101b5ab80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.707341] ffff888101b5ac00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.707779] ==================================================================