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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7723C63709 for ; Thu, 8 Dec 2022 02:34:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbiLHCet (ORCPT ); Wed, 7 Dec 2022 21:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiLHCer (ORCPT ); Wed, 7 Dec 2022 21:34:47 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0D8F93A52; Wed, 7 Dec 2022 18:34:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 576C4B821FF; Thu, 8 Dec 2022 02:34:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51241C433D7; Thu, 8 Dec 2022 02:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670466884; bh=RvsfLC8WqgtbeeVSmrxsvGGOXLI1778nLXkBGvQAYvg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=elFqximTvljjIGzE9M0r4NCZQ2laKz5qzv89J0gAIeHSEPQSBryiDwAw85e/s+1jz 63CICI5rEJEiNv0PXKDAoZXd6DWe3G7P83FvjLKCcGhUVjiGEsoqMyM/j0cnavEH7i P0GUNj2guTwNw5YZqxezHqqa6LKj+8l8JzKjrT2b1P30MywojkPK5+rf7zApxqPn/9 YqQtLg5JznswXGYFSu2i5bNOkDKH8R+RX43Jq824jblu3wmoxUn8M3GuABrFPcGIFY pTZHfGQjkgr8OcLwNqR74ANhyLDB7+vooVne5jpBzrLs9A7MXtAoK3JryrYIq1q5l9 9EcIqSbi9eoxQ== Date: Wed, 7 Dec 2022 18:34:40 -0800 From: Jakub Kicinski To: Kees Cook Cc: syzbot+fda18eaa8c12534ccb3b@syzkaller.appspotmail.com, Eric Dumazet , "David S. Miller" , Paolo Abeni , Pavel Begunkov , pepsipu , Vlastimil Babka , kasan-dev , Andrii Nakryiko , ast@kernel.org, bpf , Daniel Borkmann , Hao Luo , Jesper Dangaard Brouer , John Fastabend , jolsa@kernel.org, KP Singh , martin.lau@linux.dev, Stanislav Fomichev , song@kernel.org, Yonghong Song , netdev@vger.kernel.org, LKML , Rasesh Mody , Ariel Elior , Manish Chopra , Menglong Dong , David Ahern , Richard Gobert , David Rientjes , Andrey Konovalov , GR-Linux-NIC-Dev@marvell.com, linux-hardening@vger.kernel.org Subject: Re: [PATCH net-next v2] skbuff: Introduce slab_build_skb() Message-ID: <20221207183440.4c80918b@kernel.org> In-Reply-To: <20221208000209.gonna.368-kees@kernel.org> References: <20221208000209.gonna.368-kees@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 7 Dec 2022 16:02:13 -0800 Kees Cook wrote: > Is this what you had in mind for this kind of change? nice, thanks a lot! the only thing left to do is kdoc updates: - the existing kdocs should no longer mention frag_size == 0 - kdoc on the slab_build_skb() should say: /* build_skb() variant which can operate on slab buffers. * Note that this should be used sparingly as slab buffers * cannot be combined efficiently by GRO! */ But this can all be done by us in a follow up, there's probably more cleaning we can do in those kdocs. > v2: introduce separate helper (kuba) > v1: https://lore.kernel.org/netdev/20221206231659.never.929-kees@kernel.org/