Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.770491] ================================================================== [ 18.771321] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 18.771796] Write of size 8 at addr fff00000c59c2871 by task kunit_try_catch/165 [ 18.772499] [ 18.772840] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 18.773015] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.773081] Hardware name: linux,dummy-virt (DT) [ 18.773157] Call trace: [ 18.773212] show_stack+0x20/0x38 (C) [ 18.773359] dump_stack_lvl+0x8c/0xd0 [ 18.773449] print_report+0x118/0x608 [ 18.773552] kasan_report+0xdc/0x128 [ 18.773662] kasan_check_range+0x100/0x1a8 [ 18.773783] __asan_memset+0x34/0x78 [ 18.773896] kmalloc_oob_memset_8+0x150/0x2f8 [ 18.773982] kunit_try_run_case+0x170/0x3f0 [ 18.774042] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.774146] kthread+0x318/0x620 [ 18.774200] ret_from_fork+0x10/0x20 [ 18.774257] [ 18.781296] Allocated by task 165: [ 18.781703] kasan_save_stack+0x3c/0x68 [ 18.782143] kasan_save_track+0x20/0x40 [ 18.782515] kasan_save_alloc_info+0x40/0x58 [ 18.783758] __kasan_kmalloc+0xd4/0xd8 [ 18.784205] __kmalloc_cache_noprof+0x15c/0x3c0 [ 18.784806] kmalloc_oob_memset_8+0xb0/0x2f8 [ 18.785256] kunit_try_run_case+0x170/0x3f0 [ 18.785790] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.786386] kthread+0x318/0x620 [ 18.786876] ret_from_fork+0x10/0x20 [ 18.787317] [ 18.787561] The buggy address belongs to the object at fff00000c59c2800 [ 18.787561] which belongs to the cache kmalloc-128 of size 128 [ 18.788233] The buggy address is located 113 bytes inside of [ 18.788233] allocated 120-byte region [fff00000c59c2800, fff00000c59c2878) [ 18.789652] [ 18.789970] The buggy address belongs to the physical page: [ 18.790422] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059c2 [ 18.791999] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.792548] page_type: f5(slab) [ 18.792963] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.793618] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.794256] page dumped because: kasan: bad access detected [ 18.795156] [ 18.795391] Memory state around the buggy address: [ 18.795789] fff00000c59c2700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.796312] fff00000c59c2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.796985] >fff00000c59c2800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.797532] ^ [ 18.798189] fff00000c59c2880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.798926] fff00000c59c2900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.799761] ==================================================================
[ 12.547495] ================================================================== [ 12.548016] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x167/0x330 [ 12.548791] Write of size 8 at addr ffff888102ac8f71 by task kunit_try_catch/184 [ 12.549674] [ 12.549821] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 12.549881] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.549893] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.549917] Call Trace: [ 12.549933] <TASK> [ 12.549954] dump_stack_lvl+0x73/0xb0 [ 12.549987] print_report+0xd1/0x650 [ 12.550010] ? __virt_addr_valid+0x1db/0x2d0 [ 12.550040] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.550061] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.550086] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.550106] kasan_report+0x140/0x180 [ 12.550127] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.550161] kasan_check_range+0x10c/0x1c0 [ 12.550184] __asan_memset+0x27/0x50 [ 12.550206] kmalloc_oob_memset_8+0x167/0x330 [ 12.550227] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 12.550248] ? __schedule+0xce8/0x2840 [ 12.550274] ? __pfx_read_tsc+0x10/0x10 [ 12.550297] ? ktime_get_ts64+0x86/0x230 [ 12.550324] kunit_try_run_case+0x1a6/0x480 [ 12.550349] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.550369] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.550412] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.550437] ? __kthread_parkme+0x82/0x160 [ 12.550476] ? preempt_count_sub+0x50/0x80 [ 12.550501] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.550523] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.550548] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.550573] kthread+0x324/0x6e0 [ 12.550594] ? trace_preempt_on+0x20/0xc0 [ 12.550618] ? __pfx_kthread+0x10/0x10 [ 12.550640] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.550662] ? calculate_sigpending+0x7b/0xa0 [ 12.550683] ? __pfx_kthread+0x10/0x10 [ 12.550705] ret_from_fork+0x41/0x80 [ 12.550724] ? __pfx_kthread+0x10/0x10 [ 12.550745] ret_from_fork_asm+0x1a/0x30 [ 12.550777] </TASK> [ 12.550789] [ 12.563790] Allocated by task 184: [ 12.563966] kasan_save_stack+0x45/0x70 [ 12.564583] kasan_save_track+0x18/0x40 [ 12.564964] kasan_save_alloc_info+0x3b/0x50 [ 12.565506] __kasan_kmalloc+0xb7/0xc0 [ 12.565927] __kmalloc_cache_noprof+0x18a/0x420 [ 12.566464] kmalloc_oob_memset_8+0xad/0x330 [ 12.566878] kunit_try_run_case+0x1a6/0x480 [ 12.567325] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.567783] kthread+0x324/0x6e0 [ 12.567929] ret_from_fork+0x41/0x80 [ 12.568365] ret_from_fork_asm+0x1a/0x30 [ 12.568943] [ 12.569112] The buggy address belongs to the object at ffff888102ac8f00 [ 12.569112] which belongs to the cache kmalloc-128 of size 128 [ 12.570335] The buggy address is located 113 bytes inside of [ 12.570335] allocated 120-byte region [ffff888102ac8f00, ffff888102ac8f78) [ 12.570894] [ 12.570973] The buggy address belongs to the physical page: [ 12.571422] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ac8 [ 12.572263] flags: 0x200000000000000(node=0|zone=2) [ 12.572728] page_type: f5(slab) [ 12.573199] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.573801] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.574211] page dumped because: kasan: bad access detected [ 12.574723] [ 12.574901] Memory state around the buggy address: [ 12.575510] ffff888102ac8e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.576198] ffff888102ac8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.576422] >ffff888102ac8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.576634] ^ [ 12.576864] ffff888102ac8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.577203] ffff888102ac9000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.577497] ==================================================================