linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Does vdso_install attempt to re-compile objects under root privilege?
@ 2019-04-03  5:17 Masahiro Yamada
  2019-04-23 18:47 ` Andy Lutomirski
  0 siblings, 1 reply; 7+ messages in thread
From: Masahiro Yamada @ 2019-04-03  5:17 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-arch
  Cc: Linus Torvalds, X86 ML, linux-arm-kernel

Hi.

I have a question about 'vdso_install'.


In my understanding, vdso is embedded in the kernel.
In addition, you can run 'make vdso_install'
to install an unstripped version of vdso.
(Mainly, debugging purpose?)

By default, 'make vdso_install' will install it to
/lib/modules/$(uname -r)/vdso/.


Since that directly is owned by root,
'make vdso_install' could potentially be
executed by root, isn't it?


Currently, 'vdso_install' depends on vdso,
so it may cause recompilation of objects
in the source tree.


This violates the basic rule:
"Installation targets must not modify the source tree".

We often miss this point. For example, see
commit 19514fc665ffbce624785f76ee7ad0ea6378a527


If this is a problem, I will fix Makefiles to
make 'vdso_install' not depend on vdso

Thanks.


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-04-24  6:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-03  5:17 Does vdso_install attempt to re-compile objects under root privilege? Masahiro Yamada
2019-04-23 18:47 ` Andy Lutomirski
2019-04-23 23:38   ` Linus Torvalds
2019-04-23 23:57     ` Andy Lutomirski
2019-04-24  4:06       ` Linus Torvalds
2019-04-24  3:40     ` Masahiro Yamada
2019-04-24  6:57     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).