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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77FB6C433B4 for ; Thu, 20 May 2021 01:17:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 483936112F for ; Thu, 20 May 2021 01:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbhETBSW (ORCPT ); Wed, 19 May 2021 21:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbhETBSV (ORCPT ); Wed, 19 May 2021 21:18:21 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E1A8C061574 for ; Wed, 19 May 2021 18:16:59 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id z13so21911275lft.1 for ; Wed, 19 May 2021 18:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iHiclWwNmbkDjIZibew+dxVBlYyOj4Q9+62BbO0BElM=; b=y2AsBtabAqYS/8F7ubzaQsaboehJCfXK/Jma6HlQrHkC1dyhIJyKlr9Gtu1SBGcb4r gcjlgjcSrUJ8zDw9Duc3ENMnZeycri/xdm57gNVd/KGS1s1uQqRKfrqqWWJFz17dNdoe XKwnajO+joO4CoEy6wHBVmyNNkO6uSR3VdevohvlofIIRe6JZ52TPSZzV4ZcDpI5WhxG sur9BA6SUflvVRxc4j0QtzLHpSTkBEttoRlCC4FfY6XrGNuNqqrh2nrz9wbeWfcSWB6P 0bar0CWnCbqvf6lfUbJf31A8i6hpSWNc6hsw8H9t5y9+mPCGS9XidRxeCJyK3OTTsl5U kU+w== 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=iHiclWwNmbkDjIZibew+dxVBlYyOj4Q9+62BbO0BElM=; b=HYMXDGGwP3HAy/xUg9xYkUgA6KR2cY6POxXTkF/2pKA8jxLEH3UmaB8oJIjy79+kEz X57dVG6/nXz/5eH7NKwqbea+a3PBbWMZNQZAGQuPt/yyxUBwGOQn46A7W6Mib9Aw3Tqm UL/zQCVXKD8GEbUu8LMtQ0Qs7XuWDFrwzLrBsiSLGVTEcVxsEn6UCgeiyGF/HCU/pWBX 6qVD7lSfz15jqYRYrhvddd83VoBQ0DfKXxr0D0xfTnzksPl46zWFLk410sNe0pabpZSS J5m8/K7WP1MiKwMIE+HqZYtOqywMUrvmE8a/XFe2ISRJovq0s0fP+dzKgb/XRoy5gTz/ fgPg== X-Gm-Message-State: AOAM5331BFqKZ927evVZhqP5jNz7opW7zWQkab9Fwe3qlUjS/soSk61k 8PsN2TuOnOqdBO7bDiEl+q6yiUlHrSGlqCVTTAySSg== X-Google-Smtp-Source: ABdhPJwH+YPeaS6Ncl5QgzBWKO9hsVhZaSR5v8hWY6PP3fzTwtXY+pXJeF0WKCzuX5EIzu0Pyjw2p35Uj0VvjiLsrOE= X-Received: by 2002:a19:6a06:: with SMTP id u6mr1505228lfu.626.1621473417983; Wed, 19 May 2021 18:16:57 -0700 (PDT) MIME-Version: 1.0 References: <20210518084900.GA7412@willie-the-truck> In-Reply-To: <20210518084900.GA7412@willie-the-truck> From: John Stultz Date: Wed, 19 May 2021 18:16:46 -0700 Message-ID: Subject: Re: REGRESSION: kernel BUG at arch/arm64/kernel/alternative.c:157! To: Will Deacon Cc: Catalin Marinas , Kees Cook , Sami Tolvanen , linux-arm-kernel , Linux Kernel Mailing List , Bjorn Andersson , YongQin Liu , Amit Pundir , Mark Rutland , Mark Brown , Masahiro Yamada , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 18, 2021 at 1:49 AM Will Deacon wrote: > > Hi John, > > On Mon, May 17, 2021 at 02:52:59PM -0700, John Stultz wrote: > > With v5.13-rc2, I've been seeing an odd boot regression with the > > DragonBoard 845c: > > > > Unfortunately, trying to bisect it down (v5.13-rc1 works ok) is giving > > me inconsistent results so far. It feels a bit like maybe some config > > option gets enabled moving forward, and then sticks around when we go > > back. I'll take another swing at bisecting it later today, but I have > > to move on to some other work right now, so I figured I'd share (with > > folks who better know the recent __apply_alternatives changes) in case > > folks have a better idea: > > Please can you try reverting af44068c581c and 0c6c2d3615ef? Hey Will, I realized I didn't get back to you on this. As MarkR already noted it does seem to be coming from 0c6c2d3615ef. Jumping to 5.13-rc1, doing a make clean, building/booting then jumping to 5.13-rc2 + the two reverts above, building/booting, and the issue won't appear. If we just jump to 5.13-rc2 or 5.13-rc2 with af44068c581c reverted, after building and booting I'll be able to see the issue. Given it disappears after a make clean, I'm guessing this isn't a major issue, mostly just a concern for folks to accidently hit it bisecting things, so I'm not sure if there's anything else to do. Let me know if you'd like me to try anything else. thanks -john 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 X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D34F4C433B4 for ; Thu, 20 May 2021 01:19:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5342F6112F for ; Thu, 20 May 2021 01:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5342F6112F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YIiVmPngMlQIaKM6wn7wJFHUfxlK6qmfn48iDJmQd80=; b=GdNPE0R7XdC4gi1TqnjbBNwUG w6lcPkwKeThTw5nrg4xj6LC+E6FvKiZ/kmGFF2o+PhanGDkjQodkjDrrpofEZUEPtC/HhE+019a7b QQaoJeg4IsGRjDk1X2bv2mTiGhmCxh8xsF+90IHWG0ds0q+YxLZX9oJeHAUjUiLfmZwx3V5C1hh6R IHKUogFhbf8XI3aG6EGiR+wn6hn0UUAGzxn91j8jMHPmdSQLOWBjBRFkQ6sKRDgpsaFjS36vzdLm4 v/pf/dJo8nfvCUkWiiPWVAF5bw/+JROlgqrIiK2aArs3oPbVIAJBIhQnLYJqII+ktBBIVTrBQ6HBG +FXU28pOg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljXJD-005XHd-CU; Thu, 20 May 2021 01:17:08 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljXJA-005XHJ-1Z for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 01:17:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=iHiclWwNmbkDjIZibew+dxVBlYyOj4Q9+62BbO0BElM=; b=KmwqcDRl+wNoAG3cT4tGdeplal RMl8t9OHoEfI6O+FQPbmdj2pwdeUU3CWgwDe+A7FsI7Iaz39xYd1+9wGiiFrboMMNeEr05hymTmfN dgu9Qi19GdaxDjOE4dbgQjPPmAdTS8U6ZIQLrdre1jXWwQmOAQXd6zNH7XxBpSVW9HN5xT4dsAVZL YsieaeTCUEegKfQrS7mdcVp9L+AUUkpfsFJ9Q0QVTeVhVXz61hC3cafqVPEV83htt2ooU7n1krNqI XJjA5hpFqyvwNUz8zzyEQZ3iPnawjB69sqfgZqdCbB1qs5ruGiVUzgUaSCsu+9ANS+WGSmh/yMVrZ s0qMQqrg==; Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljXJ6-00FsZc-K5 for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 01:17:02 +0000 Received: by mail-lf1-x131.google.com with SMTP id b26so5905554lfq.4 for ; Wed, 19 May 2021 18:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iHiclWwNmbkDjIZibew+dxVBlYyOj4Q9+62BbO0BElM=; b=y2AsBtabAqYS/8F7ubzaQsaboehJCfXK/Jma6HlQrHkC1dyhIJyKlr9Gtu1SBGcb4r gcjlgjcSrUJ8zDw9Duc3ENMnZeycri/xdm57gNVd/KGS1s1uQqRKfrqqWWJFz17dNdoe XKwnajO+joO4CoEy6wHBVmyNNkO6uSR3VdevohvlofIIRe6JZ52TPSZzV4ZcDpI5WhxG sur9BA6SUflvVRxc4j0QtzLHpSTkBEttoRlCC4FfY6XrGNuNqqrh2nrz9wbeWfcSWB6P 0bar0CWnCbqvf6lfUbJf31A8i6hpSWNc6hsw8H9t5y9+mPCGS9XidRxeCJyK3OTTsl5U kU+w== 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=iHiclWwNmbkDjIZibew+dxVBlYyOj4Q9+62BbO0BElM=; b=BD8yQBO1WxP+XoZqInBejfCyysoz7rjTmzvDRF2LmyFW25vG6cNLehpY1eR3AnSBbT 5u2c/VxwFsKeT8r5xvFA7zBGX078/7VEhBBoKHAnZZmCTRj2LZvdUiGHwDqmk46ze9xV YYxz6cFcI3OmiqjkBSNENS6+JfxB60WsaeeWyOJc1ROnEwaC1pGEgqD8jfMXdlOwhjUp AFfjCfUCHdLTyAGZSEiIF+tqcy76vqt8IDPV5LamITlpqnbKskEexY54fmSg/C7uzdzo zN1KafMnotQF3WwSy0rK4tQlLn9T0hze+UNgLLzI8gU3B90rVowcZcL8ezNlH0nL2hN8 GUXQ== X-Gm-Message-State: AOAM5324Xniu+fOyRUYeHE6Kwxe2CMD2XgbuqFI38xlximfSRb8EG7lx z5UPweIzCZa+Wx7EgHogNRfftUaCpr3aop2Gsbqy6Q== X-Google-Smtp-Source: ABdhPJwH+YPeaS6Ncl5QgzBWKO9hsVhZaSR5v8hWY6PP3fzTwtXY+pXJeF0WKCzuX5EIzu0Pyjw2p35Uj0VvjiLsrOE= X-Received: by 2002:a19:6a06:: with SMTP id u6mr1505228lfu.626.1621473417983; Wed, 19 May 2021 18:16:57 -0700 (PDT) MIME-Version: 1.0 References: <20210518084900.GA7412@willie-the-truck> In-Reply-To: <20210518084900.GA7412@willie-the-truck> From: John Stultz Date: Wed, 19 May 2021 18:16:46 -0700 Message-ID: Subject: Re: REGRESSION: kernel BUG at arch/arm64/kernel/alternative.c:157! To: Will Deacon Cc: Catalin Marinas , Kees Cook , Sami Tolvanen , linux-arm-kernel , Linux Kernel Mailing List , Bjorn Andersson , YongQin Liu , Amit Pundir , Mark Rutland , Mark Brown , Masahiro Yamada , Marc Zyngier X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210519_181700_739401_437F1C34 X-CRM114-Status: GOOD ( 23.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 18, 2021 at 1:49 AM Will Deacon wrote: > > Hi John, > > On Mon, May 17, 2021 at 02:52:59PM -0700, John Stultz wrote: > > With v5.13-rc2, I've been seeing an odd boot regression with the > > DragonBoard 845c: > > > > Unfortunately, trying to bisect it down (v5.13-rc1 works ok) is giving > > me inconsistent results so far. It feels a bit like maybe some config > > option gets enabled moving forward, and then sticks around when we go > > back. I'll take another swing at bisecting it later today, but I have > > to move on to some other work right now, so I figured I'd share (with > > folks who better know the recent __apply_alternatives changes) in case > > folks have a better idea: > > Please can you try reverting af44068c581c and 0c6c2d3615ef? Hey Will, I realized I didn't get back to you on this. As MarkR already noted it does seem to be coming from 0c6c2d3615ef. Jumping to 5.13-rc1, doing a make clean, building/booting then jumping to 5.13-rc2 + the two reverts above, building/booting, and the issue won't appear. If we just jump to 5.13-rc2 or 5.13-rc2 with af44068c581c reverted, after building and booting I'll be able to see the issue. Given it disappears after a make clean, I'm guessing this isn't a major issue, mostly just a concern for folks to accidently hit it bisecting things, so I'm not sure if there's anything else to do. Let me know if you'd like me to try anything else. thanks -john _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel