Article View: linux.kernel.netdev
Article #26742Re: [PATCH net-next] sctp: improve memory allocation patterns
From: patchwork-bot+netdevbpf
Date: Fri, 04 Dec 2026 05:00
Date: Fri, 04 Dec 2026 05:00
25 lines
8847 bytes
8847 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Willem de Bruijn <willemb@google.com>:
On Tue, 1 Dec 2026 16:39:37 +1100 you wrote:
> Much of SCTP was written before helpers such as kmalloc_flex() for
> safely allocating structs with Flexible Array Members.
>
> There are also some instances of allocating an object using the object's
> literal type as the size, rather than dereferencing the object type.
>
> Use modern alloc wrappers and dereference types where appropriate.
>
> [...]
Here is the summary with links:
- [net-next] sctp: improve memory allocation patterns
https://git.kernel.org/netdev/net-next/c/2bd980c0dac3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179636042765.834438.7023894799623343687.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377071-linux-kernel-netdev=dewy.ruReferences:
<610167b27c7b303afe9650a950161becf890b48f.1796103100.git.jamie.bainbridge@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377071-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] sctp: improve memory allocation patterns Date: Fri, 04 Dec 2026 05:00:27 +0000 Organization: Usenet Network Message-ID: <179636042765.834438.7023894799623343687.git-patchwork-notify@kernel.org> References: <610167b27c7b303afe9650a950161becf890b48f.1796103100.git.jamie.bainbridge@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2679437"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:W/6DmTgzyCi7QYZ7tIYO0NBqlT8= sha256:A2t9TJgn6lnDJWpjahjYUXp9jzG6iO4mM6uN2TuMf10= sha1:gJQXngSmgX4pW8Pt8gqfmCGXxb8= sha256:heIrwtv3j8zeL6OTVmKm8Y3jCMNLVnT3U357cTiE7oM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1F48F117B0E; Fri, 4 Dec 2026 08:01:12 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J7uaJ1MbhcRA; Fri, 4 Dec 2026 08:01:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-377071-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 0DA1E117B01; Fri, 4 Dec 2026 08:01:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id D699D2315C; Fri, 4 Dec 2026 05:00:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796360435; b=NbKBop6IoMz99J7NvY7MqJbn5UVTMabHUZb4IQOlXx07dTl7q0Tum0slgLxoa+edILSt nmttWT/Sxl3WrEy8M+1gEsWaDnMdB5SteHHH80UVvfwZ5CMiozr0Y/sKKbBCGdEoXQc0e eVLr5WupTzIn6ozh1Bc5jmFA1U6Zkd3IvBFYB/xquJBP68vqEdNRim3uPjBTu2WHmXQiY EyY5DTLaoA9LW4pL0aSJs5KgOyBsIA0QBcabwLPS4YbFFzUFxNDk6KBXUWmGBFbSxrwiW Ajs3MFXsBKh6fy948L8KiwXdao8Fb2RFlhEq2cA6OHvp74XMsmXfLdcxbN6joah4lGg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796360435; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=FU7LMdhr0LBywtcHmD3nXIB5ez8LpG+jeXplY05T87M=; b=ZoDRHeVNOakvDGjoePS2UigQGOIgzqBx4jNho0umWrlxDT6y5q/bRpU1JFrDCx8FlZJu jl0eVRrUux++yTiQ4UPBQXwEri5XkK7OFUitrgvLmghTwLMDDzEfrwuAh2k/hSdXi9M+N AbBlIq64Ij2Zd9snXEyj1VKuNFmbINU7kxAJACs832JJ83IPOUlONoZOTyp/Gq5ozfKOr 2dOWcy24op5XinFeiksHqvNA0K6pRrKxc4DFq/o9o84P6HIboetY54intGsUaCqDo2r5l dUNlvu5wgkrNTmj5m0xMzXWcd5vtGtZpg0/U5Gfnlavgy4Z/9mNJ1RNxHKZ5f3Y0bcA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kHaXoIgF; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74E7F606A68C; Fri, 4 Dec 2026 05:00:35 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kHaXoIgF X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796360429; b=rn6H6z1HdxNjJFgZptMDkSytNzhUq0tGefCDzzsiiHHW40KZTusEKIaPY59mxjtLTcGZ mg8njeLq52YooB2EFxgygj37AkrB/evRp8uV01bEM++WpwYWAR4Dp79c0hNeQ18NPhKDP 8Yq9mobT6LSkq5ccqvSdXzXWTaxcxOegONsCw+RTqMhpTm8TsNMJRxid2qU1U1ZocqEDB F469sFwOYjSv8Zh6/CDXkznzK2m6WdK25Z4umD0rhKtit8EtqMBtCkLjuGctab5EXfUNQ /p+PQs+G9jT36/mCs3BYgShj4SYs6mgwDtOuKz+PtSIJPnSQNxhZIFhxBk72goCHgcg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796360429; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=FU7LMdhr0LBywtcHmD3nXIB5ez8LpG+jeXplY05T87M=; b=m/oYxdYIgTA4kMYlsf2wLWGJH+syVIOUt+kKpzbPPGaq4bzZ47sZwz5po7fiUOBGR18B rTp1cQiGaQpUG4mcvv1oozgGEEGp+gpUZMT9FT2XN5582JYfBaby+cqngJuGzqFcszmhE VAUqnBrMVrGHOdUIKzjb/QjQaev1vIn3ORSqz63dJaqlkvTQPEkywWnFwAsORS6YeQor9 kbSddf/Pxp47SQwLdFNki2yY7miGDzi/kFwLYzPrQ4mq7ZHWNqZnaXQ+UTxHW1g8+25HT D9t8NZxg2zmlutC9G4WWQ0JfK0KqWkkW9AC4bTv/SC2w2iLOnMwokooqMK2Zr1yBRbw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kHaXoIgF; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95493606A6A2; Fri, 4 Dec 2026 05:00:29 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 297671F00933; Fri, 4 Dec 2026 05:00:29 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796360429; bh=FU7LMdhr0LBywtcHmD3nXIB5ez8LpG+jeXplY05T87M=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=kHaXoIgFKXeip5yrHvstD6XpWqxNwtvJS+ntu3H99RKypnuU16uPtf5NPQd1J6+92 V03Ad3W8tqK68iqzQWpVSDUd3S7cKv0+mo1NXKclWX+d5pXvRMconG3yAMEcyrf+tJ kPuhXBbRacxgwzzzyc7wT6JSe861nM7ptgvzA2SAG/HIHePTAWZpzKJqYA98uUyDlJ XtzDv2J5UwOio95lNI7SRtWV33wwjXCAqgV5EpFtL2g6/oHSZCLJ8BzB03jn3N1YUP 6B4wQjLM1kVnvV4M2vT+gmn48/5b9+6M0EKjmOkaZqnzqKI2YpfE6JRoq5hSooTxTp p4kDtQydW7fiQ== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 1CB8B3924A7A; Fri, 4 Dec 2026 05:00:29 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <610167b27c7b303afe9650a950161becf890b48f.1796103100.git.jamie.bainbridge@gmail.com> X-Cc: marcelo.leitner@gmail.com, lucien.xin@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, kees@kernel.org, gustavoars@kernel.org, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org