From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D96A1CF8872 for ; Sat, 5 Oct 2024 07:56:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 547856B009D; Sat, 5 Oct 2024 03:56:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A7956B00B0; Sat, 5 Oct 2024 03:56:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2D5856B00AF; Sat, 5 Oct 2024 03:56:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 05E086B03A8 for ; Sat, 5 Oct 2024 03:56:23 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 0D2FF1208E0 for ; Sat, 5 Oct 2024 07:56:23 +0000 (UTC) X-FDA: 82638791046.24.5376DC1 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by imf03.hostedemail.com (Postfix) with ESMTP id 66C5A20008 for ; Sat, 5 Oct 2024 07:56:20 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; spf=pass (imf03.hostedemail.com: domain of 3I_EAZwkbAEg289ukvvo1kzzsn.qyyqvo42o1myx3ox3.myw@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.198 as permitted sender) smtp.mailfrom=3I_EAZwkbAEg289ukvvo1kzzsn.qyyqvo42o1myx3ox3.myw@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728114848; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=z/w9tB55nUaOYadIWJ08slDlEGe2WJjvuC6OCwtHkxI=; b=HniD3hLnt+CxYYIOmbazZrVMovaHFmCENO57zVdbZotJmnUqlfxSaTARlJKPRY009Ba2Av /cdonzdo7Ck/QLUSuWvZ0EkYA3AJOjdwtTwnTWlh8tluJvDmVzQs9Mhfdfa+CgRrlyGSUu c1z83uQ+M07c/ObB2SCREHkwswWPbZ4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728114848; a=rsa-sha256; cv=none; b=TH6W+rUjdo6N/7VwPlSrkp3uGQuhYZbuWOpIV5h26OuC2TA4t0ZOJcJtmpXrYN21Pl3Ya6 qV70gQ1w63jsVNk2FBAAHMROqOciVMWPYEctxbx3g60LRGM2OqKkQTZ70DHgNPawAzA2ul auEJUN9CPXbO6YEvEt7pe29d5kup55U= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; spf=pass (imf03.hostedemail.com: domain of 3I_EAZwkbAEg289ukvvo1kzzsn.qyyqvo42o1myx3ox3.myw@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.198 as permitted sender) smtp.mailfrom=3I_EAZwkbAEg289ukvvo1kzzsn.qyyqvo42o1myx3ox3.myw@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-3a342e872a7so32836765ab.3 for ; Sat, 05 Oct 2024 00:56:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728114979; x=1728719779; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z/w9tB55nUaOYadIWJ08slDlEGe2WJjvuC6OCwtHkxI=; b=gL63dbgIj4LaZvaxSQcybK0yi5fYmBHb8tU5vCGOISSBQXrM8ynS8ul6C2WUmRFRJt tnF9lwcEFd7dZ8GqwqUN3nHgj7zTNHA4CHhFXIhMF0R8hoFlIhDl+ARBIjl+C2+y1t6d dOwUgJ0+ZNSpPGqwmn0DahhRgokN9yIxyT4FxiwuqAW0NgL8RdN70M+eybbemqyHJ6pg z+kq1Oc12jpo8UZDIPaeqr1ExDC3n2Xmvb4F3TKdBBRCRH2ss29ROISG+yKHCHN7DX20 gun1fYMNmrzl60nKRM2mxNFNLABEEWVvd+iMxBhBd/Z6ORTZXPTqGfrx+teab6u8NSAG b36A== X-Forwarded-Encrypted: i=1; AJvYcCVflB4zR4t52U20oO4qc7P6N+OQZyhugUG5L9VphcIt8aGpN3JUokXpD3+8cyni/MILR9nH4PbwQA==@kvack.org X-Gm-Message-State: AOJu0YxwHbkbhSUfc/CMMsln8QIm79ssbxb5ECJq1Htt3rGx/sEYtqAP Vb6dup8wSoYp+lNaxqyR5I13hbgKp/aleU2/JtfFovraFHf2BrCP36np5b0h3vC2ZqSAwHRvN0A XKSoaSDdbFI/blgnxDYZc9v7ED/SKj5Q+/7geJgXWMS64CF6f8C1fKm0= X-Google-Smtp-Source: AGHT+IGyIMB5w+1FHfclmeKJk0ZAq4C6cLWrUWDucl/v1tfND5hVxxBqjLbkVcPuuqLy5rSLmFz3XrsKTgTrSPRmGozvZJVIasth MIME-Version: 1.0 X-Received: by 2002:a05:6e02:17c8:b0:39d:25f4:bed3 with SMTP id e9e14a558f8ab-3a37597d61bmr50375185ab.5.1728114979411; Sat, 05 Oct 2024 00:56:19 -0700 (PDT) Date: Sat, 05 Oct 2024 00:56:19 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6700f123.050a0220.49194.04b5.GAE@google.com> Subject: [syzbot] [bpf?] [net?] KFENCE: memory corruption in pskb_expand_head From: syzbot To: 42.hyeyoo@gmail.com, akpm@linux-foundation.org, andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, cl@linux.com, daniel@iogearbox.net, davem@davemloft.net, eddyz87@gmail.com, edumazet@google.com, feng.tang@intel.com, haoluo@google.com, iamjoonsoo.kim@lge.com, john.fastabend@gmail.com, jolsa@kernel.org, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, martin.lau@linux.dev, netdev@vger.kernel.org, pabeni@redhat.com, penberg@kernel.org, rientjes@google.com, roman.gushchin@linux.dev, sdf@fomichev.me, song@kernel.org, syzkaller-bugs@googlegroups.com, vbabka@suse.cz, yonghong.song@linux.dev Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: 17531qezfs3gtqyk6bkzbshcbart9m73 X-Rspamd-Queue-Id: 66C5A20008 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1728114980-492538 X-HE-Meta: U2FsdGVkX19imGMXrRlqXTBdvJh00bNbo+wwohMV132jp4txD/Fbi6eVtTkZLh6mLnpUKfSCg+78Fs/o8H+X74N3jfQYDvamPZc/TiqB11HYlo1MEmPU2EPgbhMRHOGQd6QtcDhYzG6EQV7nSb5v7g3xpyfxj+w7h7sTZYiZXxxq+J6hBL7vMbNZgwfphI3dfSp7esPPBreQWfyfRkc7pAbMpk13cfmYD9m7aPcmVETVgxNl2cEIsIGekqGWo/S+IXqKo/71R4yKw7gor9T5mPEIvvMc3jfPOAUFSxFYocq79Of3YnJ189kdSr+pS4hDe2XfjhkCgXW6IZCKRWV7PeetFqs/5fab72OeEyiubBdl2CmCVK4MWDopzvKaIo+152TViXzY89hnI7MI2gUciewgmh43Ammes1kwO68ce1Umm5hdzwsIEybX2lQ23+gWe785Gj8wx6DG6ZlTP6CWW7ljEH1cuXJojEV/i5CHXjTvD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kijNZmLy1zfSslhdGOdtLj05ozhogtjimiNdUzgL5MebCGSd74dM1AtCLKtTbN2fiWe2n1s6WI8sAqFdpfQaj5mxl6EcBtSkz/KT424FJuZKAx+bMAjWLVhkkgEftZDAiZ98y5rziZmfcX/uGZYbCSbwdyPIvU8MUp7k/eAyxCCaUTY4O/W5xkFmSTWJUoYravfUkWjfO5lNYjimaIm0zCN/ZjlADqWvA/HjWIiDGufaExSJJblgORuDv4YHS8/iAEXzKmkDmIqleK9MPa6fmJDQnAPkQLUYTjSjSHFzZdrm6meiUItW3FhP26z3bZMXaiOPK0BmqB90F9NgvxVl/cCLTQEAZ1JlH2UULHBKaeVwqyOt3wAAFPhoZ7aRDqxktfNCssoSF476s HDIKvJ8S 4cxDsS16D1SS+B34E6V+dDTWBsxBvj4xyno1fTBMoR//jF1x3LEw1CE9UmujmTDcgQpEJW8PZuucze3hq4jA3nNFr/Brw4gqKOQ+N/aCGNmgH521kS6d/QRVrH8anXfgGrspAtYdI8BicRU/l5HS7OZkxGin5S5I5uYMtNOTxoBymHns4PEQ07h0LoUXTpRenzPb3IZ0a86K9P9WtEjO1PaHBwzIQ472Z+3vJDXKREnGECLSqnzvH60PftNeD1NU6FbXkrntbww+U8pDZzRX32GqqdG2SmAY/h0jC3qL9XmmEPm9/L0SJBPHKJEr3mZEQaLtVUvJ7s+oDYYnKFmRYXdvsBGNsa51mqbjvFdi6AefaWqnEjila3H8OyDdhfSiEiRS5XJREtHEJqZmfPMdlYAXa8Bpgpd4hdn00+4n6to/C+bu7kIkJf4GdT1n2O+IQZtLGNOfSixHZNN/NMaWF4f+E7MkN9/KMvPzs1R8csqUbCcYfFhSqO3N7XbGfBjh X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hello, syzbot found the following issue on: HEAD commit: c02d24a5af66 Add linux-next specific files for 20241003 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=1404ab9f980000 kernel config: https://syzkaller.appspot.com/x/.config?x=94f9caf16c0af42d dashboard link: https://syzkaller.appspot.com/bug?extid=80b36e60457a005e0530 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10f633d0580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1204ab9f980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/641e642c9432/disk-c02d24a5.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/98aaf20c29e0/vmlinux-c02d24a5.xz kernel image: https://storage.googleapis.com/syzbot-assets/c23099f2d86b/bzImage-c02d24a5.xz The issue was bisected to: commit d0a38fad51cc70ab3dd3c59b54d8079ac19220b9 Author: Feng Tang Date: Wed Sep 11 06:45:34 2024 +0000 mm/slub: Improve redzone check and zeroing for krealloc() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16da4d27980000 final oops: https://syzkaller.appspot.com/x/report.txt?x=15da4d27980000 console output: https://syzkaller.appspot.com/x/log.txt?x=11da4d27980000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+80b36e60457a005e0530@syzkaller.appspotmail.com Fixes: d0a38fad51cc ("mm/slub: Improve redzone check and zeroing for krealloc()") ================================================================== BUG: KFENCE: memory corruption in skb_kfree_head net/core/skbuff.c:1086 [inline] BUG: KFENCE: memory corruption in skb_free_head net/core/skbuff.c:1098 [inline] BUG: KFENCE: memory corruption in pskb_expand_head+0x4fc/0x1380 net/core/skbuff.c:2307 Corrupted memory at 0xffff88823be221c0 [ 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ] (in kfence-#16): skb_kfree_head net/core/skbuff.c:1086 [inline] skb_free_head net/core/skbuff.c:1098 [inline] pskb_expand_head+0x4fc/0x1380 net/core/skbuff.c:2307 __skb_cow include/linux/skbuff.h:3702 [inline] skb_cow_head include/linux/skbuff.h:3736 [inline] __vlan_insert_inner_tag include/linux/if_vlan.h:354 [inline] __vlan_insert_tag include/linux/if_vlan.h:400 [inline] skb_vlan_push+0x319/0x8d0 net/core/skbuff.c:6324 ____bpf_skb_vlan_push net/core/filter.c:3193 [inline] bpf_skb_vlan_push+0x215/0x8e0 net/core/filter.c:3183 bpf_prog_73b0c961a278ad0e+0x5b/0x60 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] bpf_test_run+0x4f0/0xa90 net/bpf/test_run.c:433 bpf_prog_test_run_skb+0xc97/0x1820 net/bpf/test_run.c:1094 bpf_prog_test_run+0x2e4/0x360 kernel/bpf/syscall.c:4247 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5652 __do_sys_bpf kernel/bpf/syscall.c:5741 [inline] __se_sys_bpf kernel/bpf/syscall.c:5739 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5739 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f kfence-#16: 0xffff88823be22000-0xffff88823be221bf, size=448, cache=kmalloc-512 allocated by task 5407 on cpu 0 at 90.755534s (0.100574s ago): kmalloc_noprof include/linux/slab.h:882 [inline] kzalloc_noprof include/linux/slab.h:1014 [inline] bpf_test_init+0xe1/0x180 net/bpf/test_run.c:669 bpf_prog_test_run_skb+0x2bb/0x1820 net/bpf/test_run.c:1000 bpf_prog_test_run+0x2e4/0x360 kernel/bpf/syscall.c:4247 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5652 __do_sys_bpf kernel/bpf/syscall.c:5741 [inline] __se_sys_bpf kernel/bpf/syscall.c:5739 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5739 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f freed by task 5407 on cpu 0 at 90.755621s (0.144394s ago): skb_kfree_head net/core/skbuff.c:1086 [inline] skb_free_head net/core/skbuff.c:1098 [inline] pskb_expand_head+0x4fc/0x1380 net/core/skbuff.c:2307 __skb_cow include/linux/skbuff.h:3702 [inline] skb_cow_head include/linux/skbuff.h:3736 [inline] __vlan_insert_inner_tag include/linux/if_vlan.h:354 [inline] __vlan_insert_tag include/linux/if_vlan.h:400 [inline] skb_vlan_push+0x319/0x8d0 net/core/skbuff.c:6324 ____bpf_skb_vlan_push net/core/filter.c:3193 [inline] bpf_skb_vlan_push+0x215/0x8e0 net/core/filter.c:3183 bpf_prog_73b0c961a278ad0e+0x5b/0x60 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] bpf_test_run+0x4f0/0xa90 net/bpf/test_run.c:433 bpf_prog_test_run_skb+0xc97/0x1820 net/bpf/test_run.c:1094 bpf_prog_test_run+0x2e4/0x360 kernel/bpf/syscall.c:4247 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5652 __do_sys_bpf kernel/bpf/syscall.c:5741 [inline] __se_sys_bpf kernel/bpf/syscall.c:5739 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5739 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 5407 Comm: syz-executor182 Not tainted 6.12.0-rc1-next-20241003-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup