Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2578857imm; Thu, 16 Aug 2018 11:50:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxqwQQfZJMyrhoC0sdcbuLWcJPXVWEg3rh3DedtG7tVi89uwXi9KJ6gwcqGsC3BHlkOdGBx X-Received: by 2002:a17:902:aa8f:: with SMTP id d15-v6mr30363256plr.64.1534445417253; Thu, 16 Aug 2018 11:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445417; cv=none; d=google.com; s=arc-20160816; b=PwibHCiIj/6p5KXJpwqeXY4ITcBkud4i2A2MAvKQLALrtRRbDrz/DODvmlb4VdI64k iUfzZyhD/nBnwTf18g6n6xjkSd85UKPBk+UsLLqBEpkbeuLS3dj69H5NmMGKRWyPoTd6 rvOqEEjLjMyJZifftZtfaS5jnanL8/mvOOl7/qJ3qpGJa8GYWsyWKVFGK43Oc3yBaNR4 RGUeITBH45l+qc/W4/kt9M/wFuTPngDHs6rJeAbLIdfNJkvRAeEPMvHs3WR8VE5oJ7N7 Dg1RnP+nDkEeELn0ipiKJdkpnMMQQkSbuua94uRQZOpPbYU/LTIPYmTxSes4wSyyZN7C 17aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0zsnfkWaz58RUVH1sQM1DY392SECihBxgIPXYEhpc5Q=; b=QKburk3+I/+V/odWV7CUL4dTxSZBZaim7/XNtbtqhv5us8F9ijrqdsCf0g7YpiV7sx s7KqqjG4V/b0zh3BXgWhSSh/U32wywrbux4w5hSDvk7zVG6Vl0kl4fQhTIbXjtzDRXw+ ABd/+6/ofQ+20EMtCkyQVQi3RWnaaC1yGlBL113ZuqqJ3oKAwzqbO0g8CEYb5xgyk8J5 ZwKl+8spWJ5EGQywO06T5FlJgz+6q7sTuMyk7X159ncY+OsBaSW1lJ0FFYIAqsMn1KfT kG4f7bSLiiwsLzs37x3VZs4kXYWO8gwU9fwuMDdhTxjEDiCjdNsyhfdSxrDsG7NkuULQ SPPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28-v6si5757pgm.362.2018.08.16.11.50.01; Thu, 16 Aug 2018 11:50:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728263AbeHPVmQ (ORCPT + 99 others); Thu, 16 Aug 2018 17:42:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56014 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728244AbeHPVmQ (ORCPT ); Thu, 16 Aug 2018 17:42:16 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7D483CE8; Thu, 16 Aug 2018 18:42:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Lucas De Marchi , Lucas De Marchi , Michal Marek , Jessica Yu , Chih-Wei Huang , Masahiro Yamada Subject: [PATCH 3.18 10/15] kbuild: verify that $DEPMOD is installed Date: Thu, 16 Aug 2018 20:41:47 +0200 Message-Id: <20180816171633.932203595@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180816171633.546734046@linuxfoundation.org> References: <20180816171633.546734046@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap commit 934193a654c1f4d0643ddbf4b2529b508cae926e upstream. Verify that 'depmod' ($DEPMOD) is installed. This is a partial revert of commit 620c231c7a7f ("kbuild: do not check for ancient modutils tools"). Also update Documentation/process/changes.rst to refer to kmod instead of module-init-tools. Fixes kernel bugzilla #198965: https://bugzilla.kernel.org/show_bug.cgi?id=198965 Signed-off-by: Randy Dunlap Cc: Lucas De Marchi Cc: Lucas De Marchi Cc: Michal Marek Cc: Jessica Yu Cc: Chih-Wei Huang Cc: stable@vger.kernel.org # any kernel since 2012 Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- Documentation/Changes | 17 ++++++----------- scripts/depmod.sh | 8 +++++++- 2 files changed, 13 insertions(+), 12 deletions(-) --- a/Documentation/Changes +++ b/Documentation/Changes @@ -25,7 +25,7 @@ o Gnu C 3.2 o Gnu make 3.80 # make --version o binutils 2.12 # ld -v o util-linux 2.10o # fdformat --version -o module-init-tools 0.9.10 # depmod -V +o kmod 13 # depmod -V o e2fsprogs 1.41.4 # e2fsck -V o jfsutils 1.1.3 # fsck.jfs -V o reiserfsprogs 3.6.3 # reiserfsck -V @@ -119,12 +119,6 @@ is not build with CONFIG_KALLSYMS and yo reproduce the Oops with that option, then you can still decode that Oops with ksymoops. -Module-Init-Tools ------------------ - -A new module loader is now in the kernel that requires module-init-tools -to use. It is backward compatible with the 2.4.x series kernels. - Mkinitrd -------- @@ -302,14 +296,15 @@ Util-linux ---------- o +Kmod +---- +o +o + Ksymoops -------- o -Module-Init-Tools ------------------ -o - Mkinitrd -------- o --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -10,10 +10,16 @@ DEPMOD=$1 KERNELRELEASE=$2 SYMBOL_PREFIX=$3 -if ! test -r System.map -a -x "$DEPMOD"; then +if ! test -r System.map ; then exit 0 fi +if [ -z $(command -v $DEPMOD) ]; then + echo "'make modules_install' requires $DEPMOD. Please install it." >&2 + echo "This is probably in the kmod package." >&2 + exit 1 +fi + # older versions of depmod don't support -P # support was added in module-init-tools 3.13 if test -n "$SYMBOL_PREFIX"; then