Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2242223rwb; Wed, 5 Oct 2022 11:05:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gN2oAA0eYnKxcvmI39J/reFOJ1RlX/1zTfnFRd/OgsjqZc2HzvYjNEHiyCeOe1PUBheCQ X-Received: by 2002:a17:90b:1bce:b0:205:e4cd:612 with SMTP id oa14-20020a17090b1bce00b00205e4cd0612mr1012524pjb.32.1664993131199; Wed, 05 Oct 2022 11:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664993131; cv=none; d=google.com; s=arc-20160816; b=VN1LmWP/UEHKpQ/15swMJviF5jADsx/xuwQV+kKkiz7pfby8Sjz3gcDtkhoVXUbF9v cD3zhs1LqNphsS6uIpr/ofhriJcHaXtK8nYpw2PQ+VcIG7skcTm6mDJv2UMA/mdXzVrF 1jLZdpaQvbiqpFEAtUvCA0pGU4vNEZZeS1WGjyrGTQ2pvBYSJFARbCb9XQZjeq3ny5sw E3mjgtoMFfO1DeHqJtO86/t0nWJWBnGm0bDgqFCXsCLkt/46nWudM1prkR+HgedeYIfk EMbm4ojHEBGEwct8PvNHw5w0KJUd8g1WzsxtojfOw/oXFV/9rLs64JmtuQFNT8gjxKZx PFNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rsZ76Ip2EvmQeYsUzg+ffG1r7wWmuHmhZ9WxYfrqRII=; b=NvPJKDoatEPpo5K0ve+JaX4++1dtXfB3gaBFYOWGMyK05IrbXBqkDG5CA1pxWxpq7/ JssyZpnNtbmycZWH1lAi1frf9xLeUcH9um4+OxSlQ9zWWtCybELTUZ31uWohd5VZ17ol S5OB9r8TX5/EjBri77ESu4uIn5EtUiIdxTmJrzeKJlYoRVPI3bVu8eFqOLQ5fcrekDbz WuRKcOkOS+PXyE4NbFTn74rkbVuMm/smh2WR0v/oL1cP8evVnLbp+vOK8tVmVoogOXAI f7fh6dQ/4VtHoX+TLdLz2UBIvpfwBDIuUqd1sNcaklnRUiVNLGtuhYx9tY+ETeF5O3zv y2Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ivkwIvYr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a170902ce8d00b0017ef8bf8a91si12051928plg.439.2022.10.05.11.05.19; Wed, 05 Oct 2022 11:05:31 -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=@google.com header.s=20210112 header.b=ivkwIvYr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbiJEQzY (ORCPT + 99 others); Wed, 5 Oct 2022 12:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbiJEQzV (ORCPT ); Wed, 5 Oct 2022 12:55:21 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 337782CC82 for ; Wed, 5 Oct 2022 09:55:16 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id 207so17762719ybn.1 for ; Wed, 05 Oct 2022 09:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=rsZ76Ip2EvmQeYsUzg+ffG1r7wWmuHmhZ9WxYfrqRII=; b=ivkwIvYrCqQ6IpY0CnK+yUCDC/soMVnN3kz81qoGxIR67aP3W1K9R4LO56cmZWfM5X nm+yNBv2HCngwSDnlrrugt9tvA3k5rfL8gDDGe0w89NiJVDwIlALnZs914MiCosanslK VsERA6wG+lGhxfUoJ8gWuKZ/hZ4SzTA9wGNlbbctZht02b2gAKvF8mTa6qNFBXRVcLO3 xNKlWXR02h5IB78APzkYIOhEoy8oxI9+Hm9gJ/mSMzna0Cewu69YgjxMg9h01/RffvC9 /gOMJ2PsNnxUC9tuC+Uqf6wlwd6eedpMwE4inFUV+m4/DXkCidTrqJyidc7zdsQXeJcH TP4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=rsZ76Ip2EvmQeYsUzg+ffG1r7wWmuHmhZ9WxYfrqRII=; b=b8ZPCfV56+P/yxB8R8D0Z4X/x7tFgbmEpggfidAloXUYBmC7E+1fvLE7fY7c7jZmkx k+dTb6aaH3dIJ6KgNLpWOmTSP4Nckd0IhlcUacoZcjt1HhZnQnZl/baCgh2yQjd7zjGx /WYX02YuFyBNn+oLtMqO/xXIV1wsJREyjz0arAtxOzWZIDwpNeJbWfQfWFp7WQ2IOvG+ n8Ykui/IDRuwARhmrh9oW+782GQtokTOQaZLBtlYujHlSuNYBkMd+0ArqYP3M31H+Rca mYgCT9/ZpA8yRfAQ1xXjQvNBjXX0lxKObFY13RIpTIPZ2dUQ2Eatk/7oxyczrL1l7YGn vH6Q== X-Gm-Message-State: ACrzQf28Ma3mDAx4S/HssCRA14UZ35G6aTq/4u47GpDI+dvYnOo6Q4HG ev7JEDj1ydweVzmIkvuULiN7AQ+f78oRh0S8PrOcl1fHU9A= X-Received: by 2002:a5b:a44:0:b0:6b0:13b:c93b with SMTP id z4-20020a5b0a44000000b006b0013bc93bmr822944ybq.398.1664988915253; Wed, 05 Oct 2022 09:55:15 -0700 (PDT) MIME-Version: 1.0 References: <20221004204025.7be8a3be@canb.auug.org.au> <20221005173904.12540ffe@canb.auug.org.au> In-Reply-To: <20221005173904.12540ffe@canb.auug.org.au> From: Alexander Potapenko Date: Wed, 5 Oct 2022 18:54:38 +0200 Message-ID: Subject: Re: linux-next: manual merge of the mm-stable tree with the kspp tree To: Stephen Rothwell Cc: Andrew Morton , Kees Cook , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Wed, Oct 5, 2022 at 8:39 AM Stephen Rothwell wrot= e: > > Hi all, > > On Tue, 4 Oct 2022 20:40:25 +1100 Stephen Rothwell = wrote: > > > > Today's linux-next merge of the mm-stable tree got a conflict in: > > > > include/linux/fortify-string.h > > > > between commit: > > > > 9f7d69c5cd23 ("fortify: Convert to struct vs member helpers") > > > > from the kspp tree and commit: > > > > ff901d80fff6 ("x86: kmsan: use __msan_ string functions where possibl= e.") > > > > from the mm-stable tree. > > > > I fixed it up (see below) and can carry the fix as necessary. This > > is now fixed as far as linux-next is concerned, but any non trivial > > conflicts should be mentioned to your upstream maintainer when your tre= e > > is submitted for merging. You may also want to consider cooperating > > with the maintainer of the conflicting tree to minimise any particularl= y > > complex conflicts. Looks good, thanks for handling this! > > > > diff --cc include/linux/fortify-string.h > > index b62c90cfafaf,6c8a1a29d0b6..000000000000 > > --- a/include/linux/fortify-string.h > > +++ b/include/linux/fortify-string.h > > @@@ -325,11 -282,13 +325,13 @@@ __FORTIFY_INLINE void fortify_memset_ch > > }) > > > > /* > > - * __builtin_object_size() must be captured here to avoid evaluating = argument > > - * side-effects further into the macro layers. > > + * __struct_size() vs __member_size() must be captured here to avoid > > + * evaluating argument side-effects further into the macro layers. > > */ > > + #ifndef CONFIG_KMSAN > > #define memset(p, c, s) __fortify_memset_chk(p, c, s, = \ > > - __builtin_object_size(p, 0), __builtin_object_size(p, 1)) > > + __struct_size(p), __member_size(p)) > > + #endif > > > > /* > > * To make sure the compiler can enforce protection against buffer ov= erflows, > > This is now a conflict between the mm-stable tree and Linus' tree. Anything else we need to do specifically for Linus' tree? > -- > Cheers, > Stephen Rothwell --=20 Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Stra=C3=9Fe, 33 80636 M=C3=BCnchen Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Liana Sebastian Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg