[Bug 922201] New: rmmod confused by built-ins
by Red Hat Bugzilla
Product: Red Hat Enterprise Linux 7
https://bugzilla.redhat.com/show_bug.cgi?id=922201
Bug ID: 922201
Summary: rmmod confused by built-ins
Product: Red Hat Enterprise Linux 7
Version: 7.0
Component: kmod
Severity: medium
Priority: medium
Assignee: kay(a)redhat.com
Reporter: bmr(a)redhat.com
CC: gansalmon(a)Gmail.com, itamar(a)ispbrasil.com.br,
jonathan(a)jonmasters.org, kernel-maint(a)redhat.com,
kmod-maint(a)lists.fedoraproject.org,
madhu.chinakonda(a)gmail.com, msivak(a)redhat.com
Depends On: 922187
+++ This bug was initially created as a clone of Bug #922187 +++
Description of problem:
Attempting to rmmod something that's not actually built as a module now gives a
slightly confusing error:
# rmmod loop
libkmod: kmod_module_get_holders: could not open '/sys/module/loop/holders': No
such file or directory
Error: Module loop is in use
Previously rmmod from module-init-tools gave a still vague but better "not
found" message:
# rmmod ext2
ERROR: Module ext2 does not exist in /proc/modules
Version-Release number of selected component (if applicable):
kmod-*
How reproducible:
100%
Steps to Reproduce:
1. compile something that can be built as a module as a built-in
2. rmmod $thing
Actual results:
# rmmod loop
libkmod: kmod_module_get_holders: could not open '/sys/module/loop/holders': No
such file or directory
Error: Module loop is in use
Which isn't really true: it's not in use, it's simply built in to vmlinuz so
unloading makes no sense.
Expected results:
modprobe does the right thing:
# modprobe -r loop
FATAL: Module loop is builtin.
Additional info:
I know rmmod is the low-level tool and users should be using modprobe -r (or
just not messing with this in the first place.. :) but knowledge of modprobe to
load and rmmod to unload seems much more widespread among admins and the
current behaviour looks at first like a kernel bug (if you didn't realise that
there are paths directories missing in /sys/modules/$thing and the module name
isn't present in /proc/modules you might think some refcount was broken etc.).
--- Additional comment from Bryn M. Reeves on 2013-03-15 13:12:04 EDT ---
Error is slightly different from 0:12-1.fc18 but same basic problem:
# rmmod loop
rmmod: ERROR: could not open '/sys/module/loop/holders': No such file or
directory
rmmod: ERROR: Module loop is in use
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=NR8Odg50eP&a=cc_unsubscribe
9 years, 10 months
[Bug 907581] New: [abrt] kmod-10-1.fc18: elf_get_mem: Process /usr/bin/kmod was killed by signal 6 (SIGABRT)
by Red Hat Bugzilla
Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=907581
Bug ID: 907581
Summary: [abrt] kmod-10-1.fc18: elf_get_mem: Process
/usr/bin/kmod was killed by signal 6 (SIGABRT)
Product: Fedora
Version: 18
Component: kmod
Severity: unspecified
Priority: unspecified
Reporter: bug-zilla(a)o2.pl
Version-Release number of selected component:
kmod-10-1.fc18
Additional info:
backtrace_rating: 4
cmdline: /sbin/depmod -a 3.7.4-204.fc18.x86_64
crash_function: elf_get_mem
executable: /usr/bin/kmod
kernel: 3.7.2-204.fc18.x86_64
remote_result: NOTFOUND
uid: 0
var_log_messages: Feb 4 19:30:56 localhost abrt[12775]: Saved core dump of pid
12774 (/usr/bin/kmod) to /var/spool/abrt/ccpp-2013-02-04-19:30:56-12774
(3887104 bytes)
Truncated backtrace:
Thread no. 1 (7 frames)
#4 elf_get_mem at libkmod/libkmod-elf.c:207
#5 elf_get_uint at libkmod/libkmod-elf.c:142
#6 kmod_elf_new at libkmod/libkmod-elf.c:315
#7 kmod_module_get_symbols at libkmod/libkmod-module.c:2458
#8 depmod_load_symbols at tools/depmod.c:1543
#9 depmod_load at tools/depmod.c:1733
#10 do_depmod at tools/depmod.c:2751
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
10 years, 2 months
[kmod/f18] Main package should require -libs
by Václav Pavlín
commit 60de0f5788291bcd41d92d617abbec7e25c71adc
Author: Václav Pavlín <vpavlin(a)redhat.com>
Date: Fri Apr 19 13:36:32 2013 +0200
Main package should require -libs
kmod.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/kmod.spec b/kmod.spec
index cff2c18..77b50f8 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -1,6 +1,6 @@
Name: kmod
Version: 12
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Linux kernel module management utilities
Group: System Environment/Kernel
@@ -15,6 +15,8 @@ BuildRequires: zlib-devel
BuildRequires: xz-devel
BuildRequires: libxslt
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
Patch0: fix-rmmod-builtin.patch
Provides: module-init-tools = 4.0-1
@@ -104,6 +106,9 @@ mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
%{_libdir}/libkmod.so
%changelog
+* Fri Apr 19 2013 Václav Pavlín <vpavlin(a)redhat.com> - 12-3
+- Main package should require -libs
+
* Mon Mar 18 2013 Josh Boyer <jwboyer(a)redhat.com>
- Add patch to make rmmod understand built-in modules (rhbz 922187)
11 years
[kmod/f19] Main package should require -libs
by Václav Pavlín
commit bb9fb4ff8eb670557e1d6e82266db0c472b4866a
Author: Václav Pavlín <vpavlin(a)redhat.com>
Date: Fri Apr 19 13:05:17 2013 +0200
Main package should require -libs
kmod.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/kmod.spec b/kmod.spec
index f005510..962c134 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -1,6 +1,6 @@
Name: kmod
Version: 13
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Linux kernel module management utilities
Group: System Environment/Kernel
@@ -16,6 +16,8 @@ BuildRequires: zlib-devel
BuildRequires: xz-devel
BuildRequires: libxslt
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
Provides: module-init-tools = 4.0-1
Obsoletes: module-init-tools < 4.0-1
Provides: /sbin/modprobe
@@ -106,6 +108,9 @@ install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
%{_libdir}/libkmod.so
%changelog
+* Fri Apr 19 2013 Václav Pavlín <vpavlin(a)redhat.com> - 13-2
+- Main package should require -libs
+
* Wed Apr 10 2013 Josh Boyer <jwboyer(a)redhat.com> - 13-1
- Update to version 13
11 years
[kmod] Main package should require -libs
by Václav Pavlín
commit 64e1c4c9d06bb8e6764a3e1ac59cd65d5dabfe64
Author: Václav Pavlín <vpavlin(a)redhat.com>
Date: Fri Apr 19 13:05:17 2013 +0200
Main package should require -libs
kmod.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/kmod.spec b/kmod.spec
index f005510..962c134 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -1,6 +1,6 @@
Name: kmod
Version: 13
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Linux kernel module management utilities
Group: System Environment/Kernel
@@ -16,6 +16,8 @@ BuildRequires: zlib-devel
BuildRequires: xz-devel
BuildRequires: libxslt
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
Provides: module-init-tools = 4.0-1
Obsoletes: module-init-tools < 4.0-1
Provides: /sbin/modprobe
@@ -106,6 +108,9 @@ install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
%{_libdir}/libkmod.so
%changelog
+* Fri Apr 19 2013 Václav Pavlín <vpavlin(a)redhat.com> - 13-2
+- Main package should require -libs
+
* Wed Apr 10 2013 Josh Boyer <jwboyer(a)redhat.com> - 13-1
- Update to version 13
11 years
[kmod] Update to version 13
by Josh Boyer
commit fecd184ce60d75a8250d0084b5982e58a47129c0
Author: Josh Boyer <jwboyer(a)redhat.com>
Date: Wed Apr 10 08:19:18 2013 -0400
Update to version 13
.gitignore | 1 +
fix-rmmod-builtin.patch | 20 --------------------
kmod.spec | 10 +++++-----
sources | 2 +-
4 files changed, 7 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0efe1c2..ec06664 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/kmod-10.tar.xz
/kmod-11.tar.xz
/kmod-12.tar.xz
+/kmod-13.tar.xz
diff --git a/kmod.spec b/kmod.spec
index 1073f0d..f005510 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -1,6 +1,6 @@
Name: kmod
-Version: 12
-Release: 4%{?dist}
+Version: 13
+Release: 1%{?dist}
Summary: Linux kernel module management utilities
Group: System Environment/Kernel
@@ -16,8 +16,6 @@ BuildRequires: zlib-devel
BuildRequires: xz-devel
BuildRequires: libxslt
-Patch0: fix-rmmod-builtin.patch
-
Provides: module-init-tools = 4.0-1
Obsoletes: module-init-tools < 4.0-1
Provides: /sbin/modprobe
@@ -48,7 +46,6 @@ applications that wish to load or unload Linux kernel modules.
%prep
%setup -q
-%patch0 -p1
%build
export V=1
@@ -109,6 +106,9 @@ install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
%{_libdir}/libkmod.so
%changelog
+* Wed Apr 10 2013 Josh Boyer <jwboyer(a)redhat.com> - 13-1
+- Update to version 13
+
* Thu Mar 20 2013 Weiping Pan <wpan(a)redhat.com> - 12-3
- Pull in weak-modules for kABI from Jon Masters <jcm(a)redhat.com>
diff --git a/sources b/sources
index b938590..670faef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3d63b146c8ee5a04dfbef4be97f8226b kmod-12.tar.xz
+d5aba43b9370cd52f3cb35e82a1aa595 kmod-13.tar.xz
11 years
[kmod/f19] Update to version 13
by Josh Boyer
commit 20b3128e5affddd0f24df687c21a5e35bcc55363
Author: Josh Boyer <jwboyer(a)redhat.com>
Date: Wed Apr 10 08:19:18 2013 -0400
Update to version 13
.gitignore | 1 +
fix-rmmod-builtin.patch | 20 --------------------
kmod.spec | 10 +++++-----
sources | 2 +-
4 files changed, 7 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 0efe1c2..ec06664 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/kmod-10.tar.xz
/kmod-11.tar.xz
/kmod-12.tar.xz
+/kmod-13.tar.xz
diff --git a/kmod.spec b/kmod.spec
index 1073f0d..f005510 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -1,6 +1,6 @@
Name: kmod
-Version: 12
-Release: 4%{?dist}
+Version: 13
+Release: 1%{?dist}
Summary: Linux kernel module management utilities
Group: System Environment/Kernel
@@ -16,8 +16,6 @@ BuildRequires: zlib-devel
BuildRequires: xz-devel
BuildRequires: libxslt
-Patch0: fix-rmmod-builtin.patch
-
Provides: module-init-tools = 4.0-1
Obsoletes: module-init-tools < 4.0-1
Provides: /sbin/modprobe
@@ -48,7 +46,6 @@ applications that wish to load or unload Linux kernel modules.
%prep
%setup -q
-%patch0 -p1
%build
export V=1
@@ -109,6 +106,9 @@ install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
%{_libdir}/libkmod.so
%changelog
+* Wed Apr 10 2013 Josh Boyer <jwboyer(a)redhat.com> - 13-1
+- Update to version 13
+
* Thu Mar 20 2013 Weiping Pan <wpan(a)redhat.com> - 12-3
- Pull in weak-modules for kABI from Jon Masters <jcm(a)redhat.com>
diff --git a/sources b/sources
index b938590..670faef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3d63b146c8ee5a04dfbef4be97f8226b kmod-12.tar.xz
+d5aba43b9370cd52f3cb35e82a1aa595 kmod-13.tar.xz
11 years