Date
July 8, 2025, 4:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.831179] ================================================================== [ 17.831241] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 17.831292] Write of size 16 at addr fff00000c5cff680 by task kunit_try_catch/168 [ 17.831354] [ 17.831384] CPU: 1 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT [ 17.832031] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.832085] Hardware name: linux,dummy-virt (DT) [ 17.832319] Call trace: [ 17.832595] show_stack+0x20/0x38 (C) [ 17.833016] dump_stack_lvl+0x8c/0xd0 [ 17.833114] print_report+0x118/0x608 [ 17.833160] kasan_report+0xdc/0x128 [ 17.833314] __asan_report_store16_noabort+0x20/0x30 [ 17.833385] kmalloc_oob_16+0x3a0/0x3f8 [ 17.833634] kunit_try_run_case+0x170/0x3f0 [ 17.833707] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.833850] kthread+0x328/0x630 [ 17.833927] ret_from_fork+0x10/0x20 [ 17.834005] [ 17.834025] Allocated by task 168: [ 17.834069] kasan_save_stack+0x3c/0x68 [ 17.834109] kasan_save_track+0x20/0x40 [ 17.834144] kasan_save_alloc_info+0x40/0x58 [ 17.834181] __kasan_kmalloc+0xd4/0xd8 [ 17.834215] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.834635] kmalloc_oob_16+0xb4/0x3f8 [ 17.834693] kunit_try_run_case+0x170/0x3f0 [ 17.835000] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.835056] kthread+0x328/0x630 [ 17.835129] ret_from_fork+0x10/0x20 [ 17.835165] [ 17.835185] The buggy address belongs to the object at fff00000c5cff680 [ 17.835185] which belongs to the cache kmalloc-16 of size 16 [ 17.835240] The buggy address is located 0 bytes inside of [ 17.835240] allocated 13-byte region [fff00000c5cff680, fff00000c5cff68d) [ 17.835310] [ 17.835418] The buggy address belongs to the physical page: [ 17.835448] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105cff [ 17.835499] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.835547] page_type: f5(slab) [ 17.835671] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.835940] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.836168] page dumped because: kasan: bad access detected [ 17.836309] [ 17.836329] Memory state around the buggy address: [ 17.836400] fff00000c5cff580: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.836442] fff00000c5cff600: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.836483] >fff00000c5cff680: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 17.836665] ^ [ 17.836702] fff00000c5cff700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.836818] fff00000c5cff780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.836855] ==================================================================
[ 11.229007] ================================================================== [ 11.229711] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.230220] Write of size 16 at addr ffff888102171580 by task kunit_try_catch/186 [ 11.230962] [ 11.231208] CPU: 1 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT(voluntary) [ 11.231253] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.231265] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.231288] Call Trace: [ 11.231300] <TASK> [ 11.231316] dump_stack_lvl+0x73/0xb0 [ 11.231344] print_report+0xd1/0x650 [ 11.231367] ? __virt_addr_valid+0x1db/0x2d0 [ 11.231388] ? kmalloc_oob_16+0x452/0x4a0 [ 11.231409] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.231432] ? kmalloc_oob_16+0x452/0x4a0 [ 11.231454] kasan_report+0x141/0x180 [ 11.231476] ? kmalloc_oob_16+0x452/0x4a0 [ 11.231502] __asan_report_store16_noabort+0x1b/0x30 [ 11.231537] kmalloc_oob_16+0x452/0x4a0 [ 11.231559] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.231590] ? __schedule+0x10cc/0x2b60 [ 11.231613] ? __pfx_read_tsc+0x10/0x10 [ 11.231633] ? ktime_get_ts64+0x86/0x230 [ 11.231659] kunit_try_run_case+0x1a5/0x480 [ 11.231680] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.231699] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.231723] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.231746] ? __kthread_parkme+0x82/0x180 [ 11.231768] ? preempt_count_sub+0x50/0x80 [ 11.231794] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.231814] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.231837] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.231860] kthread+0x337/0x6f0 [ 11.231887] ? trace_preempt_on+0x20/0xc0 [ 11.231910] ? __pfx_kthread+0x10/0x10 [ 11.231928] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.231950] ? calculate_sigpending+0x7b/0xa0 [ 11.231971] ? __pfx_kthread+0x10/0x10 [ 11.231989] ret_from_fork+0x41/0x80 [ 11.232010] ? __pfx_kthread+0x10/0x10 [ 11.232028] ret_from_fork_asm+0x1a/0x30 [ 11.232071] </TASK> [ 11.232082] [ 11.245673] Allocated by task 186: [ 11.245812] kasan_save_stack+0x45/0x70 [ 11.246250] kasan_save_track+0x18/0x40 [ 11.246607] kasan_save_alloc_info+0x3b/0x50 [ 11.247198] __kasan_kmalloc+0xb7/0xc0 [ 11.247647] __kmalloc_cache_noprof+0x189/0x420 [ 11.248192] kmalloc_oob_16+0xa8/0x4a0 [ 11.248603] kunit_try_run_case+0x1a5/0x480 [ 11.248849] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.249042] kthread+0x337/0x6f0 [ 11.249164] ret_from_fork+0x41/0x80 [ 11.249296] ret_from_fork_asm+0x1a/0x30 [ 11.249440] [ 11.249658] The buggy address belongs to the object at ffff888102171580 [ 11.249658] which belongs to the cache kmalloc-16 of size 16 [ 11.250914] The buggy address is located 0 bytes inside of [ 11.250914] allocated 13-byte region [ffff888102171580, ffff88810217158d) [ 11.252179] [ 11.252446] The buggy address belongs to the physical page: [ 11.253059] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102171 [ 11.253778] flags: 0x200000000000000(node=0|zone=2) [ 11.254433] page_type: f5(slab) [ 11.254907] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.255157] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.255385] page dumped because: kasan: bad access detected [ 11.255608] [ 11.255680] Memory state around the buggy address: [ 11.256072] ffff888102171480: 00 02 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 11.256734] ffff888102171500: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.257418] >ffff888102171580: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 11.258205] ^ [ 11.258525] ffff888102171600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.259155] ffff888102171680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.259650] ==================================================================