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 89368C77B6E for ; Thu, 13 Apr 2023 14:08:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbjDMOIj (ORCPT ); Thu, 13 Apr 2023 10:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230312AbjDMOIh (ORCPT ); Thu, 13 Apr 2023 10:08:37 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBFC6B448; Thu, 13 Apr 2023 07:08:12 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 41DE76732D; Thu, 13 Apr 2023 16:08:10 +0200 (CEST) Date: Thu, 13 Apr 2023 16:08:10 +0200 From: Christoph Hellwig To: Kevin Brodsky Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Eric Dumazet , "David S. Miller" , Jakub Kicinski Subject: Re: [PATCH v2 1/3] net: Ensure ->msg_control_user is used for user buffers Message-ID: <20230413140810.GC16625@lst.de> References: <20230413114705.157046-1-kevin.brodsky@arm.com> <20230413114705.157046-2-kevin.brodsky@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230413114705.157046-2-kevin.brodsky@arm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 13, 2023 at 12:47:03PM +0100, Kevin Brodsky wrote: > Since commit 1f466e1f15cf ("net: cleanly handle kernel vs user > buffers for ->msg_control"), pointers to user buffers should be > stored in struct msghdr::msg_control_user, instead of the > msg_control field. Most users of msg_control have already been > converted (where user buffers are involved), but not all of them. > > This patch attempts to address the remaining cases. An exception is > made for null checks, as it should be safe to use msg_control > unconditionally for that purpose. Looks good: Reviewed-by: Christoph Hellwig although I would have expected this at the end of the series. Given that the patches don't overlap it shouldn't really matter in the end, though.