Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.496578] ================================================================== [ 25.496771] BUG: KASAN: slab-out-of-bounds in memcmp+0x198/0x1d8 [ 25.496935] Read of size 1 at addr fff00000c7717f18 by task kunit_try_catch/261 [ 25.497069] [ 25.497163] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 25.497382] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.497546] Hardware name: linux,dummy-virt (DT) [ 25.497628] Call trace: [ 25.498056] show_stack+0x20/0x38 (C) [ 25.498962] dump_stack_lvl+0x8c/0xd0 [ 25.499737] print_report+0x118/0x608 [ 25.499868] kasan_report+0xdc/0x128 [ 25.500605] __asan_report_load1_noabort+0x20/0x30 [ 25.500936] memcmp+0x198/0x1d8 [ 25.501047] kasan_memcmp+0x16c/0x300 [ 25.501169] kunit_try_run_case+0x170/0x3f0 [ 25.501304] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.503193] kthread+0x328/0x630 [ 25.503562] ret_from_fork+0x10/0x20 [ 25.504306] [ 25.504438] Allocated by task 261: [ 25.504708] kasan_save_stack+0x3c/0x68 [ 25.504885] kasan_save_track+0x20/0x40 [ 25.504984] kasan_save_alloc_info+0x40/0x58 [ 25.505723] __kasan_kmalloc+0xd4/0xd8 [ 25.506365] __kmalloc_cache_noprof+0x16c/0x3c0 [ 25.506932] kasan_memcmp+0xbc/0x300 [ 25.507374] kunit_try_run_case+0x170/0x3f0 [ 25.507503] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.507998] kthread+0x328/0x630 [ 25.508128] ret_from_fork+0x10/0x20 [ 25.508373] [ 25.508549] The buggy address belongs to the object at fff00000c7717f00 [ 25.508549] which belongs to the cache kmalloc-32 of size 32 [ 25.508827] The buggy address is located 0 bytes to the right of [ 25.508827] allocated 24-byte region [fff00000c7717f00, fff00000c7717f18) [ 25.509326] [ 25.509394] The buggy address belongs to the physical page: [ 25.509496] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107717 [ 25.509641] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.509770] page_type: f5(slab) [ 25.509880] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 25.510347] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.510539] page dumped because: kasan: bad access detected [ 25.510704] [ 25.510782] Memory state around the buggy address: [ 25.511010] fff00000c7717e00: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 25.511253] fff00000c7717e80: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.511603] >fff00000c7717f00: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.511710] ^ [ 25.511792] fff00000c7717f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.512138] fff00000c7718000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.512376] ==================================================================
[ 15.822977] ================================================================== [ 15.823373] BUG: KASAN: slab-out-of-bounds in memcmp+0x1b4/0x1d0 [ 15.823591] Read of size 1 at addr ffff8881033b4718 by task kunit_try_catch/277 [ 15.824296] [ 15.824668] CPU: 0 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 15.824752] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.824768] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.824792] Call Trace: [ 15.824809] <TASK> [ 15.824830] dump_stack_lvl+0x73/0xb0 [ 15.824871] print_report+0xd1/0x650 [ 15.824900] ? __virt_addr_valid+0x1db/0x2d0 [ 15.824923] ? memcmp+0x1b4/0x1d0 [ 15.824941] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.824966] ? memcmp+0x1b4/0x1d0 [ 15.824983] kasan_report+0x141/0x180 [ 15.825005] ? memcmp+0x1b4/0x1d0 [ 15.825027] __asan_report_load1_noabort+0x18/0x20 [ 15.825048] memcmp+0x1b4/0x1d0 [ 15.825067] kasan_memcmp+0x18f/0x390 [ 15.825087] ? trace_hardirqs_on+0x37/0xe0 [ 15.825113] ? __pfx_kasan_memcmp+0x10/0x10 [ 15.825133] ? finish_task_switch.isra.0+0x153/0x700 [ 15.825158] ? __switch_to+0x5d9/0xf60 [ 15.825179] ? dequeue_task_fair+0x166/0x4e0 [ 15.825206] ? __pfx_read_tsc+0x10/0x10 [ 15.825226] ? ktime_get_ts64+0x86/0x230 [ 15.825251] kunit_try_run_case+0x1a5/0x480 [ 15.825277] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.825300] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.825323] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.825345] ? __kthread_parkme+0x82/0x180 [ 15.825367] ? preempt_count_sub+0x50/0x80 [ 15.825391] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.825414] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.825437] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.825459] kthread+0x337/0x6f0 [ 15.825475] ? trace_preempt_on+0x20/0xc0 [ 15.825498] ? __pfx_kthread+0x10/0x10 [ 15.825515] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.825535] ? calculate_sigpending+0x7b/0xa0 [ 15.825573] ? __pfx_kthread+0x10/0x10 [ 15.825595] ret_from_fork+0x41/0x80 [ 15.825617] ? __pfx_kthread+0x10/0x10 [ 15.825635] ret_from_fork_asm+0x1a/0x30 [ 15.825665] </TASK> [ 15.825678] [ 15.833161] Allocated by task 277: [ 15.833386] kasan_save_stack+0x45/0x70 [ 15.833495] kasan_save_track+0x18/0x40 [ 15.833596] kasan_save_alloc_info+0x3b/0x50 [ 15.833692] __kasan_kmalloc+0xb7/0xc0 [ 15.833777] __kmalloc_cache_noprof+0x189/0x420 [ 15.834183] kasan_memcmp+0xb7/0x390 [ 15.834477] kunit_try_run_case+0x1a5/0x480 [ 15.834918] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.835297] kthread+0x337/0x6f0 [ 15.835437] ret_from_fork+0x41/0x80 [ 15.835533] ret_from_fork_asm+0x1a/0x30 [ 15.835641] [ 15.836006] The buggy address belongs to the object at ffff8881033b4700 [ 15.836006] which belongs to the cache kmalloc-32 of size 32 [ 15.836995] The buggy address is located 0 bytes to the right of [ 15.836995] allocated 24-byte region [ffff8881033b4700, ffff8881033b4718) [ 15.837366] [ 15.837448] The buggy address belongs to the physical page: [ 15.838042] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1033b4 [ 15.838389] flags: 0x200000000000000(node=0|zone=2) [ 15.838502] page_type: f5(slab) [ 15.838607] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 15.838869] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 15.839487] page dumped because: kasan: bad access detected [ 15.839944] [ 15.840000] Memory state around the buggy address: [ 15.840107] ffff8881033b4600: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 15.840513] ffff8881033b4680: 00 00 00 04 fc fc fc fc 00 00 07 fc fc fc fc fc [ 15.840838] >ffff8881033b4700: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.840968] ^ [ 15.841059] ffff8881033b4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.841923] ffff8881033b4800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.842129] ==================================================================