Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.691605] ================================================================== [ 16.691723] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 16.691832] Write of size 2 at addr fff00000c78d9077 by task kunit_try_catch/172 [ 16.691935] [ 16.691999] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 16.693087] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.693193] Hardware name: linux,dummy-virt (DT) [ 16.693298] Call trace: [ 16.693436] show_stack+0x20/0x38 (C) [ 16.693651] dump_stack_lvl+0x8c/0xd0 [ 16.693798] print_report+0x118/0x608 [ 16.694012] kasan_report+0xdc/0x128 [ 16.694465] kasan_check_range+0x100/0x1a8 [ 16.694575] __asan_memset+0x34/0x78 [ 16.694786] kmalloc_oob_memset_2+0x150/0x2f8 [ 16.695009] kunit_try_run_case+0x170/0x3f0 [ 16.695113] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.695356] kthread+0x328/0x630 [ 16.695723] ret_from_fork+0x10/0x20 [ 16.695904] [ 16.696010] Allocated by task 172: [ 16.696092] kasan_save_stack+0x3c/0x68 [ 16.696184] kasan_save_track+0x20/0x40 [ 16.696585] kasan_save_alloc_info+0x40/0x58 [ 16.696906] __kasan_kmalloc+0xd4/0xd8 [ 16.697024] __kmalloc_cache_noprof+0x15c/0x3c0 [ 16.697234] kmalloc_oob_memset_2+0xb0/0x2f8 [ 16.697340] kunit_try_run_case+0x170/0x3f0 [ 16.697518] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.697687] kthread+0x328/0x630 [ 16.698019] ret_from_fork+0x10/0x20 [ 16.698205] [ 16.698253] The buggy address belongs to the object at fff00000c78d9000 [ 16.698253] which belongs to the cache kmalloc-128 of size 128 [ 16.698458] The buggy address is located 119 bytes inside of [ 16.698458] allocated 120-byte region [fff00000c78d9000, fff00000c78d9078) [ 16.698736] [ 16.698804] The buggy address belongs to the physical page: [ 16.698863] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d9 [ 16.699202] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.699378] page_type: f5(slab) [ 16.699550] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.699668] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.699840] page dumped because: kasan: bad access detected [ 16.699934] [ 16.700186] Memory state around the buggy address: [ 16.700495] fff00000c78d8f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.700687] fff00000c78d8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.700938] >fff00000c78d9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.701134] ^ [ 16.701241] fff00000c78d9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.701430] fff00000c78d9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.701564] ==================================================================
[ 16.689413] ================================================================== [ 16.689903] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 16.690585] Write of size 2 at addr ffff888102b42577 by task kunit_try_catch/189 [ 16.691311] [ 16.691544] CPU: 1 UID: 0 PID: 189 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 16.691649] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.691675] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.691718] Call Trace: [ 16.691743] <TASK> [ 16.691774] dump_stack_lvl+0x73/0xb0 [ 16.691838] print_report+0xd1/0x650 [ 16.691886] ? __virt_addr_valid+0x1db/0x2d0 [ 16.691934] ? kmalloc_oob_memset_2+0x166/0x330 [ 16.691980] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.692029] ? kmalloc_oob_memset_2+0x166/0x330 [ 16.692076] kasan_report+0x141/0x180 [ 16.692124] ? kmalloc_oob_memset_2+0x166/0x330 [ 16.692182] kasan_check_range+0x10c/0x1c0 [ 16.692228] __asan_memset+0x27/0x50 [ 16.692284] kmalloc_oob_memset_2+0x166/0x330 [ 16.692315] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 16.692341] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 16.692367] kunit_try_run_case+0x1a5/0x480 [ 16.692394] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.692416] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.692442] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.692464] ? __kthread_parkme+0x82/0x180 [ 16.692486] ? preempt_count_sub+0x50/0x80 [ 16.692511] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.692535] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.692558] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.692581] kthread+0x337/0x6f0 [ 16.692601] ? trace_preempt_on+0x20/0xc0 [ 16.692626] ? __pfx_kthread+0x10/0x10 [ 16.692647] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.692677] ? calculate_sigpending+0x7b/0xa0 [ 16.692724] ? __pfx_kthread+0x10/0x10 [ 16.692746] ret_from_fork+0x116/0x1d0 [ 16.692766] ? __pfx_kthread+0x10/0x10 [ 16.692787] ret_from_fork_asm+0x1a/0x30 [ 16.692819] </TASK> [ 16.692833] [ 16.704819] Allocated by task 189: [ 16.705166] kasan_save_stack+0x45/0x70 [ 16.705787] kasan_save_track+0x18/0x40 [ 16.706040] kasan_save_alloc_info+0x3b/0x50 [ 16.706297] __kasan_kmalloc+0xb7/0xc0 [ 16.706504] __kmalloc_cache_noprof+0x189/0x420 [ 16.706902] kmalloc_oob_memset_2+0xac/0x330 [ 16.707234] kunit_try_run_case+0x1a5/0x480 [ 16.707526] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.707812] kthread+0x337/0x6f0 [ 16.708124] ret_from_fork+0x116/0x1d0 [ 16.708483] ret_from_fork_asm+0x1a/0x30 [ 16.708874] [ 16.709000] The buggy address belongs to the object at ffff888102b42500 [ 16.709000] which belongs to the cache kmalloc-128 of size 128 [ 16.709752] The buggy address is located 119 bytes inside of [ 16.709752] allocated 120-byte region [ffff888102b42500, ffff888102b42578) [ 16.710647] [ 16.710851] The buggy address belongs to the physical page: [ 16.711171] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b42 [ 16.711708] flags: 0x200000000000000(node=0|zone=2) [ 16.712074] page_type: f5(slab) [ 16.712401] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.712775] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.713241] page dumped because: kasan: bad access detected [ 16.713643] [ 16.713791] Memory state around the buggy address: [ 16.714185] ffff888102b42400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.714599] ffff888102b42480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.715088] >ffff888102b42500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.715574] ^ [ 16.716070] ffff888102b42580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.716502] ffff888102b42600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.716977] ==================================================================