Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp487720lqt; Mon, 18 Mar 2024 13:53:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPx1NCE0EngnBpqx/kB0phGOuquHry2dPXs+NurRR8ufQ8zJ697M7iGdIbV68NEj9vwwJZD0wO0Dew3Hkn15zr98Ht7BbqRe7FWJd2SQ== X-Google-Smtp-Source: AGHT+IEbDSlRzgGbymsHL/ceuSQOFcnc49v4g1WthJS583ERH1i/0IIrurF0GxAP5CBm/yFAmFe6 X-Received: by 2002:a05:6214:4c08:b0:68f:709d:a47f with SMTP id qh8-20020a0562144c0800b0068f709da47fmr11395406qvb.47.1710795236153; Mon, 18 Mar 2024 13:53:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710795236; cv=pass; d=google.com; s=arc-20160816; b=bCE2DMtCYwPFD4LyrlxK3msGXz5CuaCfBZIEFhQTyVdGmZEPAWB9VaYJ1LHqSruskF ODiEbzvsCPP1yKHmVDjM3CLbYaukQULXDBjp1hT3Cui/28/H3P2w/tUNVePexQRVvh3h feO80unVIwcMMWg3sidkEo2VzxoSqeJJzvXSM7QaZoSh/aSELcqP6aednvM/J+hgpzzU 2qAv3lqgEMlESFZsDBDFmMvyoureZuB0XLAFtbK4X/5DkPyiOGNVNQHjaOnxiklBGMjV ryO88UGMQGmd7P7GHyj/+pLiStaRhYqbVVxP2I1rkoLW4rkYTI7aA0p4WW3UtBL2wDOH x0gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=YU+BRt7lVIqDExOvWIBnr5GmQ5LoH5ECPGoAnNVFPv8=; fh=w6fiTHlYarkdeQihA+WV4Uw1KkucrAtmAsOFTI9bnvQ=; b=ncMc5S5C/2J9W7iw5xmif4zwe1cBqodz5dYP5e+V979mxlc0YcqsZd636FQ6x85bWU d8Rrpe+615SrsQxE8u+LcIossQEbSiO7mPs3e6B/nzt1LGo2neDzrYqxJ3NwNgnv73QC YQwuRdugoCmSmFiwbSzKVxLaf7dMO8GMeD90MZImKkyd3V2mIUPZLCVbc0KXR2DOE6En 5TDmicxN35cMPDtyx7DshoNl4KJp6qIa+9N58k5W4HGd3dGqjWdEsXTXLXjnZ29TWaSv LFkUFXw/9udZ7cHTmiSLPwLmTtxgJZiSFF7z25xpSbIDVVWrZDW4pc2qi+piD3/LKijg Dtmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ghiti.fr); spf=pass (google.com: domain of linux-kernel+bounces-106656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106656-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ey3-20020a0562140b6300b00690be4c0571si10337715qvb.186.2024.03.18.13.53.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 13:53:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ghiti.fr); spf=pass (google.com: domain of linux-kernel+bounces-106656-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106656-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DCABD1C213B0 for ; Mon, 18 Mar 2024 20:53:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6837C56B8C; Mon, 18 Mar 2024 20:53:50 +0000 (UTC) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 546E726AC7 for ; Mon, 18 Mar 2024 20:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710795229; cv=none; b=nzrdIuEniUST5mxGcl7ZZRwhGwbt8guTjU7DTm1UCbDJZZwIyoehkgzM4alznGXoszpiw9P06QseRD2PmHZ66dLDoX1lrqGIvw/qQmj1Wd+Hf+u9A6a3+i1L2q7vUIKCr4eNWScRvp24cTVGA6AyGExOKGj0ln3PH+gwNR14388= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710795229; c=relaxed/simple; bh=SIy/tUuY7q66cY1sM9aARvm5DKIXY/vZ/C96YA2Pv7c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eSvsiYedeBFFwXsKL6v/f0v+vonlqV1MScMLsplBsLmBRC0dXC9YKJLIvlhpT3A0Ipt5i7wbeD4qgqgIbdkeICx4FoPjPMz+jLYgelZZdfSf22bXCkNHdvBc56nkJCLZslYUShBOHTzMwIM+kZjIXbh8LMdiNQZhuYF0PON+Vys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr; spf=pass smtp.mailfrom=ghiti.fr; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ghiti.fr Received: by mail.gandi.net (Postfix) with ESMTPSA id EA8C01BF205; Mon, 18 Mar 2024 20:53:42 +0000 (UTC) Message-ID: <1a1bf141-9fbf-4d30-bdd3-fd20f6170c3f@ghiti.fr> Date: Mon, 18 Mar 2024 21:53:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] riscv: compat_vdso: install compat_vdso.so.dbg to /lib/modules/*/vdso/ Content-Language: en-US To: Masahiro Yamada Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231117125807.1058477-1-masahiroy@kernel.org> From: Alexandre Ghiti In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: alex@ghiti.fr Hi Masahiro, On 15/03/2024 05:06, Masahiro Yamada wrote: > On Thu, Mar 7, 2024 at 5:12 AM Alexandre Ghiti wrote: >> Hi Masahiro, >> >> On 24/02/2024 04:37, Masahiro Yamada wrote: >>> Ping x 2 ? >>> >>> >>> >>> >>> >>> On Sun, Jan 21, 2024 at 6:48 AM Masahiro Yamada wrote: >>>> On Fri, Nov 17, 2023 at 9:58 PM Masahiro Yamada wrote: >>>>> 'make vdso_install' installs debug vdso files to /lib/modules/*/vdso/. >>>>> >>>>> Only for the compat vdso on riscv, the installation destination differs; >>>>> compat_vdso.so.dbg is installed to /lib/module/*/compat_vdso/. >>>>> >>>>> To follow the standard install destination and simplify the vdso_install >>>>> logic, change the install destination to standard /lib/modules/*/vdso/. >>>>> >>>>> Signed-off-by: Masahiro Yamada >>>>> --- >>>> Ping? >>>> (in case "yet more RISC-V updates" happens) >>>> >>>> >>>> >>>> >>>>> arch/riscv/Makefile | 2 +- >>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>> >>>>> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile >>>>> index a74be78678eb..5cbe596345c1 100644 >>>>> --- a/arch/riscv/Makefile >>>>> +++ b/arch/riscv/Makefile >>>>> @@ -146,7 +146,7 @@ endif >>>>> endif >>>>> >>>>> vdso-install-y += arch/riscv/kernel/vdso/vdso.so.dbg >>>>> -vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg:../compat_vdso/compat_vdso.so >>>>> +vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg >>>>> >>>>> ifneq ($(CONFIG_XIP_KERNEL),y) >>>>> ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy) >>>>> -- >>>>> 2.40.1 >>>>> >>>> -- >>>> Best Regards >>>> Masahiro Yamada >>> >>> -- >>> Best Regards >>> Masahiro Yamada >>> >>> _______________________________________________ >>> linux-riscv mailing list >>> linux-riscv@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-riscv >> >> Couldn't changing this library install path break some existing >> application? I mean it kind of breaks where the library is expected to >> be right? > > Do you have a particular library in mind? None in particular. > > > RISV-V is the only architecture that installs a debug vdso > to a different location than the > standard lib/modules/*/vdso/. > > > I regard this as a fix. You're probably right, I don't see why the search path would be different on riscv, unless it was fixed in userspace but I think this is the right thing to do, so: Reviewed-by: Alexandre Ghiti Thanks, Alex > > > > >