Tested the interim version from [1]
TL;DR: with that it is working

base: 4.15.0-13
proposed fix: 4.15.0.16.17

## Base ##
$virsh attach-device cpaelzer-bionic hp512.xml
error: Failed to attach device from hp512.xml
error: cannot limit locked memory of process 10121 to 96468992: Permission 
denied

DMESG:
[1031564.759963] audit: type=1400 audit(1523946413.082:15731): 
apparmor="DENIED" operation="setrlimit" info="cap_sys_resource" error=-13 
profile="/usr/sbin/libvirtd" pid=8376 comm="libvirtd" rlimit=memlock 
value=96468992 peer="libvirt-70a586a2-ef34-4954-91ea-9a6ecab52da3"
[1031564.760010] audit: type=1400 audit(1523946413.082:15732): 
apparmor="DENIED" operation="setrlimit" info="cap_sys_resource" error=-13 
profile="/usr/sbin/libvirtd" pid=8376 comm="libvirtd" rlimit=memlock 
value=96468992 peer="libvirt-70a586a2-ef34-4954-91ea-9a6ecab52da3"

## proposed fixed kernel ##
$ virsh attach-device cpaelzer-bionic hp512.xml
Device attached successfully

No denies in log.
Guest log on attach:
[   48.652358] pseries-hotplug-mem: Attempting to hot-add 2 LMB(s) at index 
80000008
[   48.652996] lpar: Attempting to resize HPT to shift 21
[   48.771485] lpar: Hash collision while resizing HPT
[   48.771491] Unable to resize hash page table to target order 21: -28
[   48.785406] Built 1 zonelists, mobility grouping on.  Total pages: 28174
[   48.785409] Policy zone: Normal
[   48.785951] lpar: Attempting to resize HPT to shift 21
[   48.898213] lpar: Hash collision while resizing HPT
[   48.898218] Unable to resize hash page table to target order 21: -28
[   48.906304] pseries-hotplug-mem: Memory at 80000000 (drc index 80000008) was 
hot-added
[   48.906305] pseries-hotplug-mem: Memory at 90000000 (drc index 80000009) was 
hot-added

[1]: https://launchpad.net/~canonical-kernel-
team/+archive/ubuntu/unstable/+packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1679704

Title:
  libvirt profile is blocking global setrlimit despite having no rlimit
  rule

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1679704/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to