Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 22.816097] ================================================================== [ 22.817246] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 22.818333] Write of size 4 at addr fff00000c614cf75 by task kunit_try_catch/163 [ 22.819180] [ 22.819527] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 22.819733] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.819800] Hardware name: linux,dummy-virt (DT) [ 22.819878] Call trace: [ 22.819953] show_stack+0x20/0x38 (C) [ 22.820067] dump_stack_lvl+0x8c/0xd0 [ 22.820178] print_report+0x118/0x608 [ 22.820298] kasan_report+0xdc/0x128 [ 22.820429] kasan_check_range+0x100/0x1a8 [ 22.820555] __asan_memset+0x34/0x78 [ 22.820632] kmalloc_oob_memset_4+0x150/0x300 [ 22.820699] kunit_try_run_case+0x170/0x3f0 [ 22.820759] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.820822] kthread+0x318/0x620 [ 22.820876] ret_from_fork+0x10/0x20 [ 22.821111] [ 22.829097] Allocated by task 163: [ 22.830114] kasan_save_stack+0x3c/0x68 [ 22.830860] kasan_save_track+0x20/0x40 [ 22.831515] kasan_save_alloc_info+0x40/0x58 [ 22.832012] __kasan_kmalloc+0xd4/0xd8 [ 22.832455] __kmalloc_cache_noprof+0x16c/0x3c0 [ 22.833034] kmalloc_oob_memset_4+0xb0/0x300 [ 22.833587] kunit_try_run_case+0x170/0x3f0 [ 22.834376] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 22.835166] kthread+0x318/0x620 [ 22.835911] ret_from_fork+0x10/0x20 [ 22.836835] [ 22.837164] The buggy address belongs to the object at fff00000c614cf00 [ 22.837164] which belongs to the cache kmalloc-128 of size 128 [ 22.838916] The buggy address is located 117 bytes inside of [ 22.838916] allocated 120-byte region [fff00000c614cf00, fff00000c614cf78) [ 22.840081] [ 22.840406] The buggy address belongs to the physical page: [ 22.841005] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10614c [ 22.842586] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 22.843233] page_type: f5(slab) [ 22.843761] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 22.844568] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.845690] page dumped because: kasan: bad access detected [ 22.846224] [ 22.846796] Memory state around the buggy address: [ 22.847312] fff00000c614ce00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.847954] fff00000c614ce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.848613] >fff00000c614cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.849322] ^ [ 22.850331] fff00000c614cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.851456] fff00000c614d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.852214] ==================================================================
[ 17.702818] ================================================================== [ 17.703481] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x167/0x330 [ 17.704587] Write of size 4 at addr ffff888102971d75 by task kunit_try_catch/182 [ 17.705100] [ 17.705602] CPU: 1 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.14.11-rc1 #1 [ 17.705717] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.705789] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.705874] Call Trace: [ 17.705949] <TASK> [ 17.706012] dump_stack_lvl+0x73/0xb0 [ 17.706107] print_report+0xd1/0x650 [ 17.706165] ? __virt_addr_valid+0x1db/0x2d0 [ 17.706217] ? kmalloc_oob_memset_4+0x167/0x330 [ 17.706267] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.706400] ? kmalloc_oob_memset_4+0x167/0x330 [ 17.706690] kasan_report+0x140/0x180 [ 17.706726] ? kmalloc_oob_memset_4+0x167/0x330 [ 17.706759] kasan_check_range+0x10c/0x1c0 [ 17.706789] __asan_memset+0x27/0x50 [ 17.706817] kmalloc_oob_memset_4+0x167/0x330 [ 17.706845] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 17.706895] ? __schedule+0xce8/0x2840 [ 17.706929] ? __pfx_read_tsc+0x10/0x10 [ 17.706957] ? ktime_get_ts64+0x86/0x230 [ 17.706994] kunit_try_run_case+0x1a6/0x480 [ 17.707024] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.707050] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 17.707095] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.707125] ? __kthread_parkme+0x82/0x160 [ 17.707155] ? preempt_count_sub+0x50/0x80 [ 17.707185] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.707213] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.707245] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.707276] kthread+0x324/0x6e0 [ 17.707317] ? trace_preempt_on+0x20/0xc0 [ 17.707357] ? __pfx_kthread+0x10/0x10 [ 17.707385] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.707412] ? calculate_sigpending+0x7b/0xa0 [ 17.707455] ? __pfx_kthread+0x10/0x10 [ 17.707501] ret_from_fork+0x41/0x80 [ 17.707543] ? __pfx_kthread+0x10/0x10 [ 17.707579] ret_from_fork_asm+0x1a/0x30 [ 17.707621] </TASK> [ 17.707636] [ 17.724121] Allocated by task 182: [ 17.724830] kasan_save_stack+0x45/0x70 [ 17.725583] kasan_save_track+0x18/0x40 [ 17.726031] kasan_save_alloc_info+0x3b/0x50 [ 17.726291] __kasan_kmalloc+0xb7/0xc0 [ 17.727042] __kmalloc_cache_noprof+0x18a/0x420 [ 17.727641] kmalloc_oob_memset_4+0xad/0x330 [ 17.728226] kunit_try_run_case+0x1a6/0x480 [ 17.728853] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.729357] kthread+0x324/0x6e0 [ 17.729772] ret_from_fork+0x41/0x80 [ 17.730039] ret_from_fork_asm+0x1a/0x30 [ 17.730462] [ 17.730680] The buggy address belongs to the object at ffff888102971d00 [ 17.730680] which belongs to the cache kmalloc-128 of size 128 [ 17.731506] The buggy address is located 117 bytes inside of [ 17.731506] allocated 120-byte region [ffff888102971d00, ffff888102971d78) [ 17.732787] [ 17.733027] The buggy address belongs to the physical page: [ 17.733392] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102971 [ 17.734049] flags: 0x200000000000000(node=0|zone=2) [ 17.734732] page_type: f5(slab) [ 17.735029] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 17.735775] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.736734] page dumped because: kasan: bad access detected [ 17.737276] [ 17.737526] Memory state around the buggy address: [ 17.737837] ffff888102971c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.738621] ffff888102971c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.739262] >ffff888102971d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.739965] ^ [ 17.740745] ffff888102971d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.741221] ffff888102971e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.742189] ==================================================================