Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2010739ybg; Thu, 30 Jul 2020 08:13:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxItN5bXxEtd4NLCZeqxEcKmCqS9306itsC89O1HHuyX9yXoZAbAe3jZP0D5JS5LXiA3YpD X-Received: by 2002:a17:906:64d7:: with SMTP id p23mr2998865ejn.185.1596122031293; Thu, 30 Jul 2020 08:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596122031; cv=none; d=google.com; s=arc-20160816; b=paf+LGjHWWP+PWezVelq9P/CAlkAa4OqH4/fTk4sHEHeD9oz6Vfe4hPJYjmmKBMMX1 8hkr6dFMm5zRJ1xGPpXw1AcWRbWQ294JKZ7tuil0vpWyqN3zsnFQrkkbSkUcoBQvREXl jveMF8+vbz0Lg9nHopZOv5T6+2pwiaNbGbNoeYysQrZSNiRYBfgl9c2nLBLdAh5zFYpl zCWNinZKqUEkR2RD3E2OAJMeDaImHKJ2kuj49SYCItdLNbVYPaZ78BNs6bXalFV9G3Iv USHSvQZcDUgL0EijrZLKo+GdfgW0Nzbq3SLjbtPwJ06huIybZo9tn7wWEmSmVVhygkiI /Hlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vfXGH/CEwaBaC/kQBLI8IC/drfAO5muRPoqQ1huaXOI=; b=xVf/9ad09+V1u8mVUuiPTZ+vnAk7CMFKXO7gTHP43LZPVhX51y87PzNlco8aPMwcMH UPZik1jTFcA6nr1L8lYV+WznZcs2E+fT+li3ls/pGS5Od73jcKq36rhpxLB2bfLgBjDJ PZ9BSOvIpISNu7pimgalNb1XAFLKsxjem60fc5CyFTNrL3RtQXXKKLsza4BUe4k85XI8 ZA9zB5k2EMrcWJKLohqJKBGvs99XvfFRPnEuURUei4tE5HSaqEa+QFuSGhs+8J5ulxev gGKRn27UuB7TnffNt3AveuX6P4LxsRivnMJznI6emhbUy8A0v1puKSPu9z4ycuN3T+PZ EBgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=McJOS71U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si59560ejq.427.2020.07.30.08.13.28; Thu, 30 Jul 2020 08:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=McJOS71U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729655AbgG3PNT (ORCPT + 99 others); Thu, 30 Jul 2020 11:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728286AbgG3PNS (ORCPT ); Thu, 30 Jul 2020 11:13:18 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F2A2C061574 for ; Thu, 30 Jul 2020 08:13:18 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id f24so7849583ejx.6 for ; Thu, 30 Jul 2020 08:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vfXGH/CEwaBaC/kQBLI8IC/drfAO5muRPoqQ1huaXOI=; b=McJOS71UhOePjQddHfrQt53FnJHJC0kuVMQu/+RnujQmsJPvqSwPBy9z8zCkrYYY2T 9ZdqgPN5eXpDFXra002a1uwK/liS5BLPcUlejRgFdKW3LooogLoj/fjnfsXkdw8i5Vup f9PivRMEUHpTG9rhzJAdaWOlFMSurvCygaBEe0eBbeCKDY8s2kxeS+Rm2sdWUTIACFat UOxs1fCjkyUlRBca/MYzag7GDk3MvtA6RhKZzFYXtxGfQGKGvuSxhn/fzdUD/F341109 Chcye3SKwaQBxN/tHr/LWyEEx7wP9nkvRA1tU6nzUS10GF65XzNFLZKPbZ4E187wWFYU bKFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vfXGH/CEwaBaC/kQBLI8IC/drfAO5muRPoqQ1huaXOI=; b=kaMPT42d5OAtAF9GWHjh1fnRDT/H78qBiiLGFqCHlkhT0WBCeYFjeGCxNqGUcRijZW iqIMzM1yfHEw4H+xr7PTUjENJD0KEo/0pi5EefeShEkwlGRHPyDxnXDuwn/UpErwJHB9 SJqi6WjRNUyQ6Gp/eBi/UBo83l4HO/rwfwmuEMKkPxPWE/7+Ghn0385t5dENun28vX4R FZQPMfU6l0QIypdAW/pMZKpEbLhPzNewJyKrzEf9AMH50VHMgnoCKOC6kl1HytSx9KAJ KucROwmnTONChRj8Cdzk4gKMbO0bw0+WV7hyBnffhgF/Ce+pOWgWC7ewuBLZS28t6jf+ h+kA== X-Gm-Message-State: AOAM531/yraxbGdUeu3V/bH89cvN6FoG4uwS9n4Huitb26v9xb9gZdBt 0K6WPMgF/JhwbA3wAl1kMnzSKc2ApWEOmQqqrkJTpA== X-Received: by 2002:a17:906:694b:: with SMTP id c11mr2989856ejs.232.1596121996817; Thu, 30 Jul 2020 08:13:16 -0700 (PDT) MIME-Version: 1.0 References: <20200729215152.662225-1-samitolvanen@google.com> <20200730122201.GM25149@gaia> In-Reply-To: <20200730122201.GM25149@gaia> From: Sami Tolvanen Date: Thu, 30 Jul 2020 08:13:05 -0700 Message-ID: Subject: Re: [PATCH] arm64/alternatives: move length validation inside the subsection To: Catalin Marinas Cc: Will Deacon , Ard Biesheuvel , Nick Desaulniers , Kees Cook , linux-arm-kernel , LKML , clang-built-linux , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 5:22 AM Catalin Marinas wrote: > > On Wed, Jul 29, 2020 at 02:51:52PM -0700, Sami Tolvanen wrote: > > Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement > > sequences") breaks LLVM's integrated assembler, because due to its > > one-pass design, it cannot compute instruction sequence lengths before the > > layout for the subsection has been finalized. This change fixes the build > > by moving the .org directives inside the subsection, so they are processed > > after the subsection layout is known. > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/1078 > > Cc: # 4.14+ > > Commit f7b93d42945c went in 5.8-rc4. Why is this cc stable from 4.14? If > Will picks it up for 5.8, it doesn't even need a cc stable. Greg or Sasha can probably answer why, but this patch is in 4.14.189, 4.19.134, 5.4.53, and 5.7.10, which ended up breaking some downstream Android kernel builds. > Please add a Fixes: tag as well. Sure, I'll send v2 shortly with the tag. Thanks. Sami