From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1F7780C02 for ; Sun, 21 Sep 2025 06:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758436721; cv=none; b=JwsVLe6BJYBjab6mwpJacsvFnx5ggNiI0Mig5qKDmwjnviqeEV0vB96VO979XasvReVukwb0nmGrOvFF9g4TlHcik3YF+vAk32qUPHPXq0t4jQz87b+OuIYv1Nf8eUQzMHY4Mepl4zb7IJH93yWwNgk4kszcVBT/I+DpUTQu5QY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758436721; c=relaxed/simple; bh=H4Ot4KWQ4odwUoO8ELKms5EE3HI2C9OqRG1UxbaCdIo=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=DRJo15s2ntTuyKtIhX271TvW8sBpLdA+wU9EyUEq4/j/jM/NC0oIP/7vGj/gTwYA+vec7YWlJWg1BnHkbeDAVZqaQEy/IWv5PiqrerSG+0lESKpsYOK+yp49slRXIkqysqXRQFcgy+DMRmxhm9czoO9/XBNUcaACNdKgtMz17rA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f197.google.com with SMTP id e9e14a558f8ab-4256ef4eea3so7804635ab.1 for ; Sat, 20 Sep 2025 23:38:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758436719; x=1759041519; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x3smCFnHu8cLZX6nG+oC3RhUJdxKlzt54IeLiOOTPNg=; b=klZ2XJkAVr4UnMhpO+70Jmuvl0kWcNdAJG4R9EZuLOTPkHGxLrXNKq41RTcHkyUr39 9BZce6sVa2fSbBWOYZK+LqeOEYuy/GK4TRxMjxFL0NamWka5QJjZbf6tNbHH3YZZAEjo mZirPuo16sMc+SonoHaWFbZU/vDM/b7ivnPVQ/6HK/dKWF8TldB7/hr6Ec8KP5Qu8YlX 8piqnF5js9Ndu/m9Ykv00HzPLUN3rs17b+7RPnGJKj5xSb0faRMgTQPWxfvsDzJhQ5m+ iz+um9gSt4Xf+rb+c0KO6KRXoUGdh4gkPk7RWpQI3vUYlbrbrNvOukd9OtzmALwn5fPs Iwrg== X-Forwarded-Encrypted: i=1; AJvYcCXRJphIZhukhXBuuQNAgC/7WAudw8kKYFHhteDbKSDlyX3W/j/qBKnHo9g3uUeOnXw1lw9SRFGWDNJPnc4=@vger.kernel.org X-Gm-Message-State: AOJu0YwoZrzLTJtO0S6ZXxSnSSgUXBSfPW5PEzPV9ApTwWPrqskpMiMP BpZscK0QvslQ29RfCLDRc/QUuuy1jth14r1MsMsbNlVMLBd4N92+sUGR3L6sfFezpHvrdwc+V51 zzJOoASAroj24/PCI5df1oxNoWvczEWUbNQp7OCQYSoZ2K5ZRulB0bv/qKc0= X-Google-Smtp-Source: AGHT+IHR9caueca30ZMhN4NpE0UHw9cQnQHY2AnjJAGioKFu5nGDcerVcWF4nvsBcoIOmJtMb+zRpLtAYtSEamwa2Lgz3TQ3e3wr Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:184a:b0:424:7f50:4e9c with SMTP id e9e14a558f8ab-4248194188cmr142348115ab.11.1758436719080; Sat, 20 Sep 2025 23:38:39 -0700 (PDT) Date: Sat, 20 Sep 2025 23:38:39 -0700 In-Reply-To: <20250920201138.402247-1-kriish.sharma2006@gmail.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <68cf9d6f.050a0220.13cd81.002c.GAE@google.com> Subject: [syzbot ci] Re: [PATCH v2] net: skb: guard kmalloc_reserve() against oversized allocations From: syzbot ci To: aleksander.lobakin@intel.com, almasrymina@google.com, davem@davemloft.net, ebiggers@google.com, edumazet@google.com, horms@kernel.org, kerneljasonxing@gmail.com, kriish.sharma2006@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, martin.lau@kernel.org, mhal@rbox.co, netdev@vger.kernel.org, pabeni@redhat.com, skhan@linuxfoundation.org, syzbot@syzkaller.appspotmail.com, willemb@google.com Cc: syzbot@lists.linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot ci has tested the following series [v1] [PATCH v2] net: skb: guard kmalloc_reserve() against oversized allocations https://lore.kernel.org/all/20250920201138.402247-1-kriish.sharma2006@gmail.com * [PATCH] [PATCH v2] net: skb: guard kmalloc_reserve() against oversized allocations and found the following issues: * WARNING in __alloc_skb * WARNING in pskb_expand_head Full report is available here: https://ci.syzbot.org/series/3048e542-7fa8-46b3-8e97-499b35ec361d *** WARNING in __alloc_skb tree: net-next URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/netdev/net-next.git base: 315f423be0d1ebe720d8fd4fa6bed68586b13d34 arch: amd64 compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 config: https://ci.syzbot.org/builds/3d048fda-1178-4af7-acb5-2eb1a391f26b/config C repro: https://ci.syzbot.org/findings/64757740-d6bb-483c-8261-a190a051189b/c_repro syz repro: https://ci.syzbot.org/findings/64757740-d6bb-483c-8261-a190a051189b/syz_repro ------------[ cut here ]------------ kmalloc_reserve: request size 2147480000 exceeds KMALLOC_MAX_SIZE (4194304) WARNING: CPU: 0 PID: 5990 at net/core/skbuff.c:598 kmalloc_reserve+0x2df/0x2f0 net/core/skbuff.c:596 Modules linked in: CPU: 0 UID: 0 PID: 5990 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:kmalloc_reserve+0x2df/0x2f0 net/core/skbuff.c:596 Code: ff e8 d5 4a 64 f8 c6 05 67 27 32 06 01 90 b9 00 00 40 00 48 c7 c7 a0 0b 94 8c 48 c7 c6 49 5a 96 8d 4c 89 ea e8 82 e7 27 f8 90 <0f> 0b 90 90 45 31 e4 e9 37 ff ff ff 0f 1f 44 00 00 90 90 90 90 90 RSP: 0018:ffffc90002c3f798 EFLAGS: 00010246 RAX: 6aef4e9a5451c800 RBX: dffffc0000000001 RCX: ffff8881079a5640 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: ffffc90002c3f7e4 R08: ffff88804b024253 R09: 1ffff1100960484a R10: dffffc0000000000 R11: ffffed100960484b R12: 000000007ffff080 R13: 000000007ffff1c0 R14: 0000000000000cc0 R15: 1ffff92000587efc FS: 00005555874d6500(0000) GS:ffff8880b8613000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000006038 CR3: 000000010b696000 CR4: 00000000000006f0 Call Trace: __alloc_skb+0x142/0x2d0 net/core/skbuff.c:677 alloc_skb include/linux/skbuff.h:1377 [inline] sock_wmalloc+0xb2/0x130 net/core/sock.c:2798 pppol2tp_sendmsg+0x183/0x5f0 net/l2tp/l2tp_ppp.c:275 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x52d/0x830 net/socket.c:2614 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668 __sys_sendmmsg+0x227/0x430 net/socket.c:2757 __do_sys_sendmmsg net/socket.c:2784 [inline] __se_sys_sendmmsg net/socket.c:2781 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2781 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f45f258eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffda5a883d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f45f27d5fa0 RCX: 00007f45f258eba9 RDX: 04000000000001ce RSI: 0000200000005f80 RDI: 0000000000000004 RBP: 00007f45f2611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008040 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f45f27d5fa0 R14: 00007f45f27d5fa0 R15: 0000000000000004 *** WARNING in pskb_expand_head tree: net-next URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/netdev/net-next.git base: 315f423be0d1ebe720d8fd4fa6bed68586b13d34 arch: amd64 compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8 config: https://ci.syzbot.org/builds/3d048fda-1178-4af7-acb5-2eb1a391f26b/config C repro: https://ci.syzbot.org/findings/951f3d6d-b4db-4f6e-b7e5-df8d3799b0ab/c_repro syz repro: https://ci.syzbot.org/findings/951f3d6d-b4db-4f6e-b7e5-df8d3799b0ab/syz_repro ------------[ cut here ]------------ kmalloc_reserve: request size 4194368 exceeds KMALLOC_MAX_SIZE (4194304) WARNING: CPU: 1 PID: 5991 at net/core/skbuff.c:598 kmalloc_reserve+0x2df/0x2f0 net/core/skbuff.c:596 Modules linked in: CPU: 1 UID: 0 PID: 5991 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:kmalloc_reserve+0x2df/0x2f0 net/core/skbuff.c:596 Code: ff e8 d5 4a 64 f8 c6 05 67 27 32 06 01 90 b9 00 00 40 00 48 c7 c7 a0 0b 94 8c 48 c7 c6 49 5a 96 8d 4c 89 ea e8 82 e7 27 f8 90 <0f> 0b 90 90 45 31 e4 e9 37 ff ff ff 0f 1f 44 00 00 90 90 90 90 90 RSP: 0018:ffffc90003b9f6d8 EFLAGS: 00010246 RAX: a130a6a821c6fc00 RBX: dffffc0000000001 RCX: ffff88802051b980 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc90003b9f794 R08: ffff888136624253 R09: 1ffff11026cc484a R10: dffffc0000000000 R11: ffffed1026cc484b R12: 00000000003fff00 R13: 0000000000400040 R14: 0000000000000820 R15: 1ffff92000773ef2 FS: 00005555572cd500(0000) GS:ffff8881a3c13000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30b63fff CR3: 0000000027cee000 CR4: 00000000000006f0 Call Trace: pskb_expand_head+0x18e/0x1150 net/core/skbuff.c:2248 __skb_cow include/linux/skbuff.h:3847 [inline] skb_cow_head include/linux/skbuff.h:3881 [inline] __vlan_insert_inner_tag include/linux/if_vlan.h:360 [inline] __vlan_insert_tag include/linux/if_vlan.h:406 [inline] skb_vlan_push+0x30a/0x8d0 net/core/skbuff.c:6390 ____bpf_skb_vlan_push net/core/filter.c:3209 [inline] bpf_skb_vlan_push+0x217/0x900 net/core/filter.c:3199 bpf_prog_db72096d6b827dfb+0x4c/0x55 bpf_dispatcher_nop_func include/linux/bpf.h:1335 [inline] __bpf_prog_run include/linux/filter.h:718 [inline] bpf_prog_run include/linux/filter.h:725 [inline] bpf_test_run+0x318/0x7b0 net/bpf/test_run.c:434 bpf_prog_test_run_skb+0xb30/0x1560 net/bpf/test_run.c:1099 bpf_prog_test_run+0x2c7/0x340 kernel/bpf/syscall.c:4590 __sys_bpf+0x581/0x870 kernel/bpf/syscall.c:6047 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:6137 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efd6458eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe070e5238 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007efd647d5fa0 RCX: 00007efd6458eba9 RDX: 0000000000000050 RSI: 0000200000000180 RDI: 000000000000000a RBP: 00007efd64611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efd647d5fa0 R14: 00007efd647d5fa0 R15: 0000000000000003 *** If these findings have caused you to resend the series or submit a separate fix, please add the following tag to your commit message: Tested-by: syzbot@syzkaller.appspotmail.com --- This report is generated by a bot. It may contain errors. syzbot ci engineers can be reached at syzkaller@googlegroups.com.