lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon,  4 Jan 2021 20:00:21 -0500
From:   Sasha Levin <>
Cc:     Linus Torvalds <>,
        Sedat Dilek <>,
        Sasha Levin <>
Subject: [PATCH AUTOSEL 4.9 4/4] depmod: handle the case of /sbin/depmod without /sbin in PATH

From: Linus Torvalds <>

[ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ]

Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped
hard-coding the path of depmod, but in the process caused trouble for
distributions that had that /sbin location, but didn't have it in the
PATH (generally because /sbin is limited to the super-user path).

Work around it for now by just adding /sbin to the end of PATH in the script.

Reported-and-tested-by: Sedat Dilek <>
Signed-off-by: Linus Torvalds <>
Signed-off-by: Sasha Levin <>
 scripts/ | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/ b/scripts/
index baedaef53ca05..b0cb89e73bc56 100755
--- a/scripts/
+++ b/scripts/
@@ -14,6 +14,8 @@ if ! test -r ; then
 	exit 0
+# legacy behavior: "depmod" in /sbin, no /sbin in PATH
 if [ -z $(command -v $DEPMOD) ]; then
 	echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2
 	echo "This is probably in the kmod package." >&2

Powered by blists - more mailing lists