Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.625590] ================================================================== [ 22.626600] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 22.628843] Write of size 16 at addr fff00000c570be00 by task kunit_try_catch/155 [ 22.629506] [ 22.629818] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 22.630036] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.630111] Hardware name: linux,dummy-virt (DT) [ 22.630211] Call trace: [ 22.630278] show_stack+0x20/0x38 (C) [ 22.630423] dump_stack_lvl+0x8c/0xd0 [ 22.630548] print_report+0x118/0x608 [ 22.630675] kasan_report+0xdc/0x128 [ 22.630811] __asan_report_store16_noabort+0x20/0x30 [ 22.631743] kmalloc_oob_16+0x3a0/0x3f8 [ 22.631810] kunit_try_run_case+0x170/0x3f0 [ 22.631872] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.631970] kthread+0x318/0x620 [ 22.632027] ret_from_fork+0x10/0x20 [ 22.632086] [ 22.640413] Allocated by task 155: [ 22.640926] kasan_save_stack+0x3c/0x68 [ 22.641483] kasan_save_track+0x20/0x40 [ 22.642464] kasan_save_alloc_info+0x40/0x58 [ 22.643287] __kasan_kmalloc+0xd4/0xd8 [ 22.643947] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.644604] kmalloc_oob_16+0xb4/0x3f8 [ 22.645497] kunit_try_run_case+0x170/0x3f0 [ 22.646225] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.647028] kthread+0x318/0x620 [ 22.647498] ret_from_fork+0x10/0x20 [ 22.648046] [ 22.648357] The buggy address belongs to the object at fff00000c570be00 [ 22.648357] which belongs to the cache kmalloc-16 of size 16 [ 22.649452] The buggy address is located 0 bytes inside of [ 22.649452] allocated 13-byte region [fff00000c570be00, fff00000c570be0d) [ 22.651233] [ 22.651502] The buggy address belongs to the physical page: [ 22.651964] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10570b [ 22.652751] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.654066] page_type: f5(slab) [ 22.654501] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 22.655273] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 22.656086] page dumped because: kasan: bad access detected [ 22.656634] [ 22.656973] Memory state around the buggy address: [ 22.658277] fff00000c570bd00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 22.659023] fff00000c570bd80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 22.659769] >fff00000c570be00: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 22.660954] ^ [ 22.661740] fff00000c570be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.662472] fff00000c570bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.663202] ==================================================================
[ 17.522887] ================================================================== [ 17.523465] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 17.524140] Write of size 16 at addr ffff8881024b0100 by task kunit_try_catch/174 [ 17.525250] [ 17.525539] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 17.525648] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.525681] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.525730] Call Trace: [ 17.525768] <TASK> [ 17.525808] dump_stack_lvl+0x73/0xb0 [ 17.525918] print_report+0xd1/0x650 [ 17.525970] ? __virt_addr_valid+0x1db/0x2d0 [ 17.526019] ? kmalloc_oob_16+0x454/0x4a0 [ 17.526062] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.526151] ? kmalloc_oob_16+0x454/0x4a0 [ 17.526204] kasan_report+0x140/0x180 [ 17.526261] ? kmalloc_oob_16+0x454/0x4a0 [ 17.526322] __asan_report_store16_noabort+0x1b/0x30 [ 17.526381] kmalloc_oob_16+0x454/0x4a0 [ 17.526429] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 17.526477] ? __schedule+0xce8/0x2840 [ 17.526531] ? __pfx_read_tsc+0x10/0x10 [ 17.526584] ? ktime_get_ts64+0x86/0x230 [ 17.526624] ? irqentry_exit+0x2a/0x60 [ 17.526653] kunit_try_run_case+0x1a6/0x480 [ 17.526686] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.526713] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 17.526744] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.526773] ? __kthread_parkme+0x82/0x160 [ 17.526802] ? preempt_count_sub+0x50/0x80 [ 17.526834] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.526883] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.526917] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.526950] kthread+0x324/0x6e0 [ 17.526976] ? trace_preempt_on+0x20/0xc0 [ 17.527009] ? __pfx_kthread+0x10/0x10 [ 17.527036] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.527071] ? calculate_sigpending+0x7b/0xa0 [ 17.527108] ? __pfx_kthread+0x10/0x10 [ 17.527137] ret_from_fork+0x41/0x80 [ 17.527161] ? __pfx_kthread+0x10/0x10 [ 17.527188] ret_from_fork_asm+0x1a/0x30 [ 17.527228] </TASK> [ 17.527243] [ 17.542969] Allocated by task 174: [ 17.543512] kasan_save_stack+0x45/0x70 [ 17.544092] kasan_save_track+0x18/0x40 [ 17.544528] kasan_save_alloc_info+0x3b/0x50 [ 17.545073] __kasan_kmalloc+0xb7/0xc0 [ 17.545529] __kmalloc_cache_noprof+0x18a/0x420 [ 17.546022] kmalloc_oob_16+0xa9/0x4a0 [ 17.546570] kunit_try_run_case+0x1a6/0x480 [ 17.546993] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.547654] kthread+0x324/0x6e0 [ 17.548086] ret_from_fork+0x41/0x80 [ 17.548531] ret_from_fork_asm+0x1a/0x30 [ 17.548738] [ 17.549001] The buggy address belongs to the object at ffff8881024b0100 [ 17.549001] which belongs to the cache kmalloc-16 of size 16 [ 17.549915] The buggy address is located 0 bytes inside of [ 17.549915] allocated 13-byte region [ffff8881024b0100, ffff8881024b010d) [ 17.550601] [ 17.550777] The buggy address belongs to the physical page: [ 17.551302] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024b0 [ 17.551770] flags: 0x200000000000000(node=0|zone=2) [ 17.552269] page_type: f5(slab) [ 17.552716] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 17.553219] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.554066] page dumped because: kasan: bad access detected [ 17.554697] [ 17.554844] Memory state around the buggy address: [ 17.555337] ffff8881024b0000: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.555992] ffff8881024b0080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.556549] >ffff8881024b0100: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 17.557545] ^ [ 17.557935] ffff8881024b0180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.558392] ffff8881024b0200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.559140] ==================================================================