Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6424715rwr; Tue, 9 May 2023 15:16:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Xc7ZIBU4W+XFzHcgwjYBla/39Imb+t3miV1bJDUywxaaGiGgf3Pzjmu1Am5Z5dZ7ReHi/ X-Received: by 2002:a05:6a00:a15:b0:63b:8f08:9af3 with SMTP id p21-20020a056a000a1500b0063b8f089af3mr21679122pfh.7.1683670568982; Tue, 09 May 2023 15:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683670568; cv=none; d=google.com; s=arc-20160816; b=qn+ggi2jlekj0L3pzPzCoa22EacMH0NFI5RSN7mLmZsv6rQ/UY1qN+LAIq/oIWZujL WHRo+41loKkwDQyqc+JhEkvFMFMosOzS1dufeGNBY3MK6zADpM+XBTXxQMebd58VXGdu KzoEBMnWmss9xzopdHi7S0xicSZjATphTrgKdHR4C29RLvORh5yD2XKeFz3Mev8pQhyA l/KT1R313OQdQ0s93tPglo7ohoWXOrwPGj+comf0I9ge008H5DLF9nZvdjxyyXIkMQ68 4JDM874LW/j6qf2VRNEm72/K6aFGE2lAqOdQiTLy9vLnXViHF4RdDVogRp1cfcQdmUeE +JQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=pUcq0bug0o4ImBs4oiU3OPIPZpm1xhF2eAPPTNrxkAk=; b=X9C6qKy0T00lr8TT8rxPvaX4giXyc9yVK2YXcECDjjei9L959kDvbL31Qx03Ugym7T Kt5rAiHp9GwUPI1GwbCw/v/CHeMYvPy85kAyLlf1f3ygRE7OYZYhvPjvn9/z/MWB/BrD y1M21Qb0+NY4fuclXi4txMvIRgD6yJXHVhNC8qH0TWudXleASMfhE/VxELe88aoekwyR LtrEGkEGt/HM5Mdgcav0XoymrHcNZvmVjq0BlFYVamFJB22ajVWDp7W/6cencTVn4lg1 IRaL2gjcfLZvjUJZONAil5I8PG3LKFZbkiLtpJk28eGkEDuSyK8sliIGSOt+SsSRDJfg 4+UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mTO1MOwZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020aa79f08000000b00645edbb3916si3465178pfr.37.2023.05.09.15.15.55; Tue, 09 May 2023 15:16:08 -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=@gmail.com header.s=20221208 header.b=mTO1MOwZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233064AbjEIVSm (ORCPT + 99 others); Tue, 9 May 2023 17:18:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230124AbjEIVSj (ORCPT ); Tue, 9 May 2023 17:18:39 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A39C30F0; Tue, 9 May 2023 14:18:38 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-64359d9c531so4828391b3a.3; Tue, 09 May 2023 14:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683667118; x=1686259118; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=pUcq0bug0o4ImBs4oiU3OPIPZpm1xhF2eAPPTNrxkAk=; b=mTO1MOwZVXwTCILT7ASs1bZbgAz5iAd7xvGJizQL0B8U2kO/HmzCLBXh+OYgLzBugH VkCIe6nd1zPaJUCJ+rpEXWCcE30llVcBnc4wRcOemUHCt2q+P9Y1tvvWjPLy6sLfELoA y5g8GqzcfJsgpwcvhvegCCDAdaw/5fJdXK7583EEnCcoO1smzhIHKNRb5A0ZubQKl7Oa ccdsKBMNqJA6B/bLljJr0iTdMyiMopYYg8Lu/l+LIQ26LExUJHJETCwLrdxk8he1Ii4L YzHAPpWqFmaQ03l0gJTN5ER4IsI/XiZdVqRtqjqNkCu0crrkuuXelujdTITj45mNGfPY jIlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683667118; x=1686259118; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pUcq0bug0o4ImBs4oiU3OPIPZpm1xhF2eAPPTNrxkAk=; b=I+WZpFAHYaI6APdd415J13GTjA93caDdHyPBYhBlfi41SSG11+ItaWuYwYwGsUVAaU 1FWeA719vVwM4/PE2xt8Cl1XIOZwqFoUb77ll3XsAQlRKmlOv6pV2kdWMn60eZt6+ROz ynfrg+fOgYooC/wpK9fTrvoU7MbTIH+DGEiN7d5VA+KzZptRpkxpcR9iuUpUBFy/s9Lw Jpo7urh58ByEwfbUZaPXX9ao5vvj+AY4c2OOCPL0rXY+ol9uXQ3AHAyQ/o1hhD4zYj0a VmMyZ89rYUKY/Xba/SOyp0Q15SugBmZPonrf63c6EEIQg0Fuj/R6YCgAMEDjIa9Wk81v oKtA== X-Gm-Message-State: AC+VfDylSHTf2lrm9BnVoXf3VemdMnxgkXqzZopypi4NNiJ/dt++5s1a TL+wVt0z4c7N1XKB7ZylVA8= X-Received: by 2002:a05:6a20:72a1:b0:100:6a95:c289 with SMTP id o33-20020a056a2072a100b001006a95c289mr11390356pzk.5.1683667117935; Tue, 09 May 2023 14:18:37 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id p19-20020a63f453000000b005287b22ea8esm1800306pgk.88.2023.05.09.14.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 14:18:37 -0700 (PDT) Sender: Guenter Roeck Date: Tue, 9 May 2023 14:18:35 -0700 From: Guenter Roeck To: Conor Dooley Cc: Greg Kroah-Hartman , stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de Subject: Re: [PATCH 6.1 000/610] 6.1.28-rc2 review Message-ID: References: <20230509030653.039732630@linuxfoundation.org> <0837e157-8615-418a-a3d3-1c14af11aba5@roeck-us.net> <20230509-robust-crate-5fe128d00e6d@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509-robust-crate-5fe128d00e6d@spud> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, May 09, 2023 at 09:41:42PM +0100, Conor Dooley wrote: > On Tue, May 09, 2023 at 12:57:58PM -0700, Guenter Roeck wrote: > > On Tue, May 09, 2023 at 05:26:31AM +0200, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 6.1.28 release. > > > There are 610 patches in this series, all will be posted as a response > > > to this one. If anyone has any issues with these being applied, please > > > let me know. > > > > > > Responses should be made by Thu, 11 May 2023 03:05:05 +0000. > > > Anything received after that time might be too late. > > > > > > > Build results: > > total: 155 pass: 155 fail: 0 > > Qemu test results: > > total: 519 pass: 519 fail: 0 > > > > New persistent runtime warning when booting riscv32/64 images: > > You sure this is new? I seem to be able to reproduce for QEMU (which I New for my tests, yes. > don't usually test) in several versions of 6.1. Don't see it in (my) > hardware though, as the particular platform doesn't end up calling the > offending function. Out of curiosity, what's your QEMU invocation? Example boot from initrd: qemu-system-riscv64 -M virt -m 512M \ -no-reboot -kernel arch/riscv/boot/Image \ -initrd rootfs.cpio \ -device e1000,netdev=net0 \ -netdev user,id=net0 -bios default \ -append "panic=-1 rdinit=/sbin/init console=ttyS0,115200 earlycon=uart8250,mmio,0x10000000,115200" \ -nographic -monitor none qemu version is 8.0, but I don't think that makes a difference. What does your command line look like ? > > Anyways, looks like a partial backport is the cause. How's it look with: > > diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c > index 694267d1fe81..fd1238df6149 100644 > --- a/arch/riscv/kernel/cpufeature.c > +++ b/arch/riscv/kernel/cpufeature.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -316,8 +317,11 @@ void __init_or_module riscv_cpufeature_patch_func(struct alt_entry *begin, > } > > tmp = (1U << alt->errata_id); > - if (cpu_req_feature & tmp) > + if (cpu_req_feature & tmp) { > + mutex_lock(&text_mutex); > patch_text_nosync(alt->old_ptr, alt->alt_ptr, alt->alt_len); > + mutex_unlock(&text_mutex); > + } > } > } > #endif > This fixes the problem for me. Thanks, Guenter