Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1942722rdb; Tue, 5 Sep 2023 09:24:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXdvuF3ykHqByREBw0MHSGZPlEEjFtM+iIHJXUeJG6r7U6UvzmBZB7wSHWekZbxfVGBO9r X-Received: by 2002:a05:6512:239d:b0:500:bf56:cca6 with SMTP id c29-20020a056512239d00b00500bf56cca6mr308804lfv.53.1693931059835; Tue, 05 Sep 2023 09:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693931059; cv=none; d=google.com; s=arc-20160816; b=nDfdGJkYzij3hB6MYe7jNY3FZLgP8e2vQg1MFcq4V63v0FFvPjyXp/aF4c5UfAB+x1 UL7bUAWzXwNxy8Mp22Vt+iKyrcqdRZ8w/gzq0zdUSaNb5uIYyLJRQycs92cHdcfHf0th REkKGZPo2LIvsmbOsuz26zJDSmOaXJEqcHFwpg4CjFPP24m3bUdqbIZiiSYt/RY7NPpA meM9E1c1vo8PHKeByr4v0tOH2OIDQhJM+HoO2Xku5bKT6yIr/68j8u2JWY3gsE3EsP6Z b/33NOyQrmkhZHHxPYgvROxvogq6iwDGqdQwZN4Mrd060Gvzz9hSWyPy7b6SOoY7tXDJ 6K7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=1TIPZiS5WiygpRoovt73Dy9nOHlU7oscs2x344MogyU=; fh=I5QKYd5319R4B+4Mf3kw/UNQ9c9L07QrVXAq1PE0My8=; b=Mq0ms1YZOCzDXPNcKdHAaEbNp8L/JHaBKb9kxGjtvnCHPVYzY5jgvZWAnVmsCXh2eo T7M98d0OfAEj3yiPaIa1YZsVPcEQHTqYacLx9o35CqoHIbtcG66GAsulEuF0Ajt+7u3q K81OrIT/zxDaPL4foBh8U9CWo6DkHnpH/tGt+mlU5jOtoa8q6Va93OBtIFxZx9oPKV7Y 69IO/gS9Htqvk3uhAFLbsTTp4HJYxsrZfQRycWbL3MakBFxxwCSRW1UFGpolfFWRljtW WeOHhaewBVGulqS1o/LjzUCzT0wPXrPZEiN//Kc7nSRJVqQEptZ5w/QsxL2rOq+9hf5w QjJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QM8qKAGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020aa7d58c000000b005236b471170si7794189edq.96.2023.09.05.09.24.14; Tue, 05 Sep 2023 09:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QM8qKAGK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346217AbjHaMR5 (ORCPT + 8 others); Thu, 31 Aug 2023 08:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240724AbjHaMRx (ORCPT ); Thu, 31 Aug 2023 08:17:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 692C4E49 for ; Thu, 31 Aug 2023 05:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693484219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1TIPZiS5WiygpRoovt73Dy9nOHlU7oscs2x344MogyU=; b=QM8qKAGK9IbMC12Q/AkAwOOUxhcHEkaJE44UypwcxBVT3DZHx0zXKuJ8AqFpG+w2l1TOI7 iBg4q95YWZKhKSkF2Wbr3fZ0ka5huN5LZP2C6jfRQUVLBCPRPK9lNTXmlV3aQl68PCnK0L Nzv6NTkmOEWsl0c0ltb8bjVSKkcoOJ0= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-591-g01vupYTM3SnAGfM531CbA-1; Thu, 31 Aug 2023 08:16:57 -0400 X-MC-Unique: g01vupYTM3SnAGfM531CbA-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-401b91039b4so1308635e9.0 for ; Thu, 31 Aug 2023 05:16:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693484216; x=1694089016; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1TIPZiS5WiygpRoovt73Dy9nOHlU7oscs2x344MogyU=; b=dYi+bP5FtJtPVXYYLe89kGZlpteo582/Ff+SpmULaAXLrW8PFXyvw6i5KTcOQ5p3Pt newFVWQECniO5hrKvVOSDgrNwXgfWr77IfHGI8olWJZhyFAgAcPB7PvyGDAvGDtLkcC2 k5SyUDxfWlQRJ+Pkxybqo9TtTdz1WaYraU0GFfhwhZXwVNg1APMlyRRAl/dpSM3gBpax DUJQczv2TBzp5Zs73arUO+jipYTtpsUbke42bm7wchYoQngiK9dZNBQjwOGcamhh0R3C AxIAsJXjlHOth6lBCCnPCbzpOEQme1G6Ue2cJMJHhP5NmKO/jXA/1WpDBrm+Y5pX+W9j o0eA== X-Gm-Message-State: AOJu0YzrTSVJ5mmjHhixzw9U5qFGe85ZhAdde/YhQPMluy9MmqoZ5m+K aw/NX1rB5xwQuH6yD9dFiC/gZADI4jcN6JUU8CJ2GKXlNxulP37GjgllO3gJ8+mbypm8XgjLSmC GxFGNJfc4G0vw+kq/79BvrS/8 X-Received: by 2002:a05:600c:5113:b0:401:c392:d28d with SMTP id o19-20020a05600c511300b00401c392d28dmr4029833wms.2.1693484216704; Thu, 31 Aug 2023 05:16:56 -0700 (PDT) X-Received: by 2002:a05:600c:5113:b0:401:c392:d28d with SMTP id o19-20020a05600c511300b00401c392d28dmr4029795wms.2.1693484216302; Thu, 31 Aug 2023 05:16:56 -0700 (PDT) Received: from [10.32.64.120] (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id z17-20020a7bc7d1000000b003fbdbd0a7desm4922787wmk.27.2023.08.31.05.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 05:16:55 -0700 (PDT) Message-ID: <98bf616420e4ef3c7c18a1f52fda7cd410137f7d.camel@redhat.com> Subject: Re: [PATCH 1/5] string.h: add array-wrappers for (v)memdup_user() From: Philipp Stanner To: Andy Shevchenko Cc: Kees Cook , Andy Shevchenko , Eric Biederman , Christian Brauner , David Disseldorp , Luis Chamberlain , Siddh Raman Pant , Nick Alcock , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Zack Rusin , VMware Graphics Reviewers , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-hardening@vger.kernel.org, David Airlie Date: Thu, 31 Aug 2023 14:16:54 +0200 In-Reply-To: References: <46f667e154393a930a97d2218d8e90286d93a062.1693386602.git.pstanner@redhat.com> <721a70c347d82931d12e5b75b19d132f82ee5ed2.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2023-08-31 at 11:59 +0300, Andy Shevchenko wrote: > On Wed, Aug 30, 2023 at 10:15=E2=80=AFPM wrote: > > On Wed, 2023-08-30 at 17:29 +0300, Andy Shevchenko wrote: > > > On Wed, Aug 30, 2023 at 5:19=E2=80=AFPM wrote: > > > > On Wed, 2023-08-30 at 17:11 +0300, Andy Shevchenko wrote: > > > > > On Wed, Aug 30, 2023 at 4:46=E2=80=AFPM Philipp Stanner > > > > > > > > Alphabetical. > > >=20 > > > compiler.h > > > err.h > > > overflow.h > > > ...the rest that is a bit unordered... > > >=20 > > > > > > =C2=A0#include > > > > > > =C2=A0#include > >=20 > > I mean I could include my own in a sorted manner =E2=80=93 but the exis= ting > > ones are not sorted: >=20 > I know, that's why I put "(to some extent)" in my initial comment. >=20 > > We could sort them all, but I'd prefer to do that in a separate > > patch > > so that this commit does not make the impression of doing anything > > else > > than including the two new headers >=20 > But you can do your stuff first with better ordering than you > proposed > initially, so there will be less churn for any additional change > (either that simply unifies the thing or something else). >=20 >=20 I'll take care of those points in a v2 once I gathered some more feedback from the other parties. P.