Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp453765lqs; Thu, 13 Jun 2024 15:35:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUarHTteEWBRYfNI2PeJxecsvLaN91iPevNWGLJeMXT0aQczdvrdrLkdgq9gmyNxDXTxI7V1homZ2ygU+oVNKEl+Rv35qAkHtJtpCrJKw== X-Google-Smtp-Source: AGHT+IGBqr18x0wYsZabhkHZ9UOPSEKGefw5IWPIXRuz7z9QfRT8pYGH1pv4fI632VbgPKpc1KvM X-Received: by 2002:a50:c308:0:b0:57a:4c22:c0 with SMTP id 4fb4d7f45d1cf-57cbd6825a4mr751411a12.10.1718318137193; Thu, 13 Jun 2024 15:35:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718318137; cv=pass; d=google.com; s=arc-20160816; b=PpznwZy8//GYaz/sH/z+9qrkMiJcqSYQHpKDqWhSe8dJ+OFERDEynsvDe/5fkYae/i 77RpmuY8JyDpG18i07UdS+UOT1FCqDWY+d+RbDO2B65FGjdzUNHE2VlMjIEIo2hswcg0 dsxR72RRo18KztBOJ1NPJOKRR9ijjbt9Re821iLuDaNsZHUFU2iVdHGJfhUAD37q/Mw6 t7NvPPvdkvaNCnQGsbfwuznV9HcG6D3S2uwLRDu7aMqo1W4KKGgPfi2pZQh7AJoumvXG N6i8rRxAQ0+x9md/6fSYxRe3b75HTXZ0gjr4Ct7w0W6WD1JRr9WK/rsNbp4H8cGrRDg/ SnYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7cPl6Yscjf/pvqaRna8+Ohe1af2nSM+PD57q/BqOyGU=; fh=2vBk/bjSFRXYoW/LMr906ZXJjB6jzIXAhp8Y/I5Tl0c=; b=S4MY/YqpIuQHspgqjvkx4HD5OASVzpX8P4gtLLcIjxhAqvB8zOUm/Q15ZwH0yHmKSP Vx96qiEcAddY+3B8QZS8Tc4YiwLjLJMabG0lxtmDfCyPT2he7CeVXEi/MmBxYKE56OJj QcT1psD+CN/2F0AYMdcx38kg0vAtAmXEdh4xN4bnrQ/D4xRHAvMVVcS3zCQueit9/KIA 8trWyQ9haZ8p2/eKyCdeRHw/OQit+zGJEMaKXHTVHsczbGcL90Mn8UycP7p9emDIfEdR dm7cMZW5t7W2zF+Lz9HVmvBNvBcJuG/q4/kvW12k4CsZL9/m/+0qguwecn08ke9Cfdsa httQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TZJFn8FF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb744105esi1130894a12.371.2024.06.13.15.35.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 15:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TZJFn8FF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E38991F21D93 for ; Thu, 13 Jun 2024 22:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CC4714C5B5; Thu, 13 Jun 2024 22:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TZJFn8FF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 990351411C3; Thu, 13 Jun 2024 22:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718318126; cv=none; b=gdG6L4k8uyGnlBvYXHxTdAAvkmBI/4fH4LQ3UgOYHf+xPJ5Yz4y2Ox9GTDLaxpEQstBLT3BzBYjQ5XjhcOXx4czrKpW0Peg/+dpDjbd8r4j9o37RI+UYM8rDWiJFv+zXBLwrVqyPXtwmGJ3ZZTtdikbY+PkuxwU1E0rNsSeUg3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718318126; c=relaxed/simple; bh=p+VwQhv5G5CYvaf+I9sazjD4wTWlRzKTz9+GDqPyq38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CVCvSs7u/hYGEdUn59sWDzX6CuaKRooQZsNAO2RS1uh+gi0pWW+FPB2cFp5kgt/NAXN4RLaJND/YWmN/TORH9avAob2WivLHKoZPWL6eRVZlcXQKxip6AzxuI3L2Si4r47RLFRY3tgrHOFZzXtdULOe8MExXHAMuMyIYuoQuuIU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TZJFn8FF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1322C2BBFC; Thu, 13 Jun 2024 22:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718318126; bh=p+VwQhv5G5CYvaf+I9sazjD4wTWlRzKTz9+GDqPyq38=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TZJFn8FFLtDllkEQfxJ9kmP6cm2LJADJXIuh4dWKR2L6D1gmcq535DcLm4ILeSoMK j3T+KyxIUCa1o1IBySiyVxushNMc+7F3+72NyFG1bE0bKS3hNqDyKGFuoIzABi03he nX5LMBLtIqjTb3td27LRsRQAs0KnDjwiRlvtU5X7lq+l8C7hY2MFbxJ2n51zvBRDiU IGBWaxfQbmekfiZLftmONNSVRaKIKhcXjPoa9KcInwDj2rnEjxA0AThLm1ktqZuv8j 9YKIYpWy+EL54RiNB75HCp0BTx+5XXq0f/8N8LX0TvS6HGAwmYZuc+dljPLorULz3Q utC1PoKU7hXhQ== Date: Thu, 13 Jun 2024 15:35:23 -0700 From: Nathan Chancellor To: Naresh Kamboju 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, linux@roeck-us.net, 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, conor@kernel.org, allen.lkml@gmail.com, broonie@kernel.org, Anders Roxell , Guo Ren , Guo Ren , Palmer Dabbelt , clang-built-linux Subject: Re: [PATCH 5.10 000/317] 5.10.219-rc1 review Message-ID: <20240613223523.GB1849801@thelio-3990X> References: <20240613113247.525431100@linuxfoundation.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jun 13, 2024 at 08:43:41PM +0530, Naresh Kamboju wrote: > On Thu, 13 Jun 2024 at 17:43, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.10.219 release. > > There are 317 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 Sat, 15 Jun 2024 11:31:50 +0000. > > Anything received after that time might be too late. > > > > The whole patch series can be found in one patch at: > > https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.219-rc1.gz > > or in the git tree and branch at: > > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y > > and the diffstat can be found below. > > > > thanks, > > > > greg k-h > > > The following build errors are noticed on riscv with clang-18 toolchain > but gcc-12 builds pass. > > However, compared with older releases this is a build regression on > stable-rc 5.10. > > Reported-by: Linux Kernel Functional Testing > > riscv: > defconfig - gcc-12 - PASS > defconfig - clang-18 - FAILED > > Build error: > ------ > arch/riscv/kernel/stacktrace.c:75:52: error: incompatible pointer to > integer conversion passing 'void *' to parameter of type 'unsigned > long' [-Wint-conversion] > 75 | if > (unlikely(!__kernel_text_address(pc) || !fn(arg, pc))) > | > ^~~ > include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' > 78 | # define unlikely(x) __builtin_expect(!!(x), 0) > | ^ > arch/riscv/kernel/stacktrace.c:75:57: error: incompatible integer to > pointer conversion passing 'unsigned long' to parameter of type 'void > *' [-Wint-conversion] > 75 | if > (unlikely(!__kernel_text_address(pc) || !fn(arg, pc))) > | > ^~ > include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' > 78 | # define unlikely(x) __builtin_expect(!!(x), 0) > | ^ > 2 errors generated. > make[3]: *** [scripts/Makefile.build:286: > arch/riscv/kernel/stacktrace.o] Error 1 It looks like either commit 9dd97064e21f ("riscv: Make stack walk callback consistent with generic code") should be applied with the straight from upstream copy of commit 7ecdadf7f8c6 ("riscv: stacktrace: Make walk_stackframe cross pt_regs frame") or the latter commit's 5.10 backport should be modified to match the linux-5.10.y order of the arguments: diff --git a/arch/riscv/kernel/stacktrace.c b/arch/riscv/kernel/stacktrace.c index c38b20caad7c..010e4c881c8b 100644 --- a/arch/riscv/kernel/stacktrace.c +++ b/arch/riscv/kernel/stacktrace.c @@ -72,7 +72,7 @@ void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs, pc = ftrace_graph_ret_addr(current, NULL, frame->ra, &frame->ra); if (pc == (unsigned long)ret_from_exception) { - if (unlikely(!__kernel_text_address(pc) || !fn(arg, pc))) + if (unlikely(!__kernel_text_address(pc) || !fn(pc, arg))) break; pc = ((struct pt_regs *)sp)->epc; Cheers, Nathan