[Bug 1844524] Re: text relocation of grep prevents its use under udevd
Thadeu Lima de Souza Cascardo
1844524 at bugs.launchpad.net
Wed Sep 18 16:28:30 UTC 2019
root at lewis:~# dpkg -s grep | grep Version
Version: 3.1-2build1
root at lewis:~# systemd-run -t --property MemoryDenyWriteExecute=yes grep -i crashkernel= /proc/cmdline
Running as unit: run-u73.service
Press ^] three times within 1s to disconnect TTY.
root=UUID=b995e70a-9241-4f98-b451-b3ecc7fa990c ro console=hvc0 crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
root at lewis:~#
** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/1844524
Title:
text relocation of grep prevents its use under udevd
Status in grep package in Ubuntu:
Invalid
Status in grep source package in Bionic:
Fix Committed
Bug description:
[Impact]
grep can't be used under udev, preventing kdump-tools to be used after a memory hotplug.
[Test case]
Run grep with systemd-run -t --property MemoryDenyWriteExecute=yes /bin/grep crashkernel /proc/cmdline
[Regression potential]
The fix is a simple rebuild, so should have minimal potential for regression.
-------------------------
# systemd-run -t --property MemoryDenyWriteExecute=yes /bin/grep crashkernel /proc/cmdline
Running as unit: run-u54.service
Press ^] three times within 1s to disconnect TTY.
/bin/grep: error while loading shared libraries: cannot restore segment prot after reloc: Operation not permitted
#
Under ppc64el, grep can't be used under udev, because it restricts
mapping to be Write+Execute, with MemoryDenyWriteExecute=yes. A
rebuild of grep under bionic fixes the issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/1844524/+subscriptions
More information about the foundations-bugs
mailing list