Skip to contentSkip to conversation

riscv: compat_vdso: install compat_vdso.so.dbg to /lib/modules/*/vdso/

PATCH Applied Masahiro Yamada 4 participants 9 messages Nov 17, 2023 – Mar 27, 2024 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: compat_vdso: install compat_vdso.so.dbg to /lib/modules/*/vdso/

'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/.

---

 arch/riscv/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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)
Signature · 1 line
2.40.1
#1 lore raw
Quoted 11 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 20 lines
 arch/riscv/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -2
index a74be78678eb..5cbe596345c1 100644
@@ -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

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

Ping x 2 ?

Quoted 36 lines · Masahiro Yamada
Quoted 11 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 15 lines
 arch/riscv/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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
 
Quoted 10 lines
Quoted 5 lines
arch/riscv/Makefile +0 -1
 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

#3 lore raw

Hi Masahiro,

Quoted 50 lines · Masahiro Yamada

Ping x 2 ?

Quoted 32 lines · Masahiro Yamada
Quoted 10 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 14 lines
  arch/riscv/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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
 
Quoted 9 lines
Quoted 5 lines
arch/riscv/Makefile +0 -1
  ifneq ($(CONFIG_XIP_KERNEL),y)
  ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy)
--

2.40.1

--
Best Regards
Masahiro Yamada

Quoted 8 lines

--
Best Regards
Masahiro Yamada

_______________________________________________
linux-riscv mailing list
[email protected]
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?

Thanks,

Alex

#4 lore raw
Quoted 64 lines · Alexandre Ghiti

Hi Masahiro,

Quoted 50 lines · Masahiro Yamada

Ping x 2 ?

Quoted 32 lines · Masahiro Yamada
Quoted 10 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 14 lines
  arch/riscv/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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
 
Quoted 9 lines
Quoted 5 lines
arch/riscv/Makefile +0 -1
  ifneq ($(CONFIG_XIP_KERNEL),y)
  ifeq ($(CONFIG_RISCV_M_MODE)$(CONFIG_ARCH_CANAAN),yy)
--

2.40.1

--
Best Regards
Masahiro Yamada

Quoted 8 lines

--
Best Regards
Masahiro Yamada

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Quoted 3 lines

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?

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.

Signature · 2 lines
Best Regards
Masahiro Yamada
reviewer Reviewed-by
#5 lore raw

Hi Masahiro,

Quoted 60 lines · Masahiro Yamada
Quoted 59 lines · Alexandre Ghiti

Hi Masahiro,

Quoted 55 lines · Masahiro Yamada

Ping x 2 ?

Quoted 31 lines · Masahiro Yamada
Quoted 10 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 14 lines
   arch/riscv/Makefile | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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
 
Quoted 8 lines
Quoted 5 lines
arch/riscv/Makefile +0 -1
   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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Quoted 5 lines
Quoted 3 lines

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.

Quoted 8 lines

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:

Thanks,

Alex

Quoted 5 lines
maintainer
#6 lore raw
Quoted 80 lines · On Mon, 18 Mar 2024 13:53:42 PDT (-0700), [email protected] wrote:

Hi Masahiro,

Quoted 60 lines · Masahiro Yamada
Quoted 59 lines · Alexandre Ghiti

Hi Masahiro,

Quoted 55 lines · Masahiro Yamada

Ping x 2 ?

Quoted 31 lines · Masahiro Yamada
Quoted 10 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 14 lines
   arch/riscv/Makefile | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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
 
Quoted 8 lines
Quoted 5 lines
arch/riscv/Makefile +0 -1
   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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Quoted 5 lines
Quoted 3 lines

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.

Quoted 7 lines

RISV-V is the only architecture that installs a debug vdso to a different location than the
standard lib/modules/*/vdso/.

Quoted 6 lines
Quoted 1 line

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:

We do have some weirdness with multlib paths, but I don't think that's related to the VDSO paths.

Quoted 13 lines

Thanks,

Alex

Quoted 5 lines
#7 lore raw
In reply to Masahiro Yamada

Hello Palmer,

Ping x 3. Any chance for this to land during the MW?

It has been 4 months since the submission.

Masahiro

Quoted 60 lines · Masahiro Yamada

Ping x 2 ?

Quoted 36 lines · Masahiro Yamada
Quoted 11 lines · Masahiro Yamada

'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/.

---

Ping?
(in case "yet more RISC-V updates" happens)

Quoted 15 lines
 arch/riscv/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Makefile +1 -1
index a74be78678eb..5cbe596345c1 100644
@@ -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
 
Quoted 10 lines
Quoted 5 lines
arch/riscv/Makefile +0 -1
 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

Signature · 2 lines
Best Regards
Masahiro Yamada
#8 lore raw
In reply to Masahiro Yamada
This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <[email protected]>:

Quoted 9 lines · On Fri, 17 Nov 2023 21:58:07 +0900 you 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/.

[...]

Here is the summary with links:
- riscv: compat_vdso: install compat_vdso.so.dbg to /lib/modules/*/vdso/

    https://git.kernel.org/riscv/c/4b0bf9a01270

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html