Re: [PATCH] RDMA/core: EPERM should be returned when # of pined pages is over ulimit
From: Gotou, Yasunori/五島 康文 <y-goto@jp.fujitsu.com>
Date: 2021-08-27 00:16:00
From: Gotou, Yasunori/五島 康文 <y-goto@jp.fujitsu.com>
Date: 2021-08-27 00:16:00
On 2021/08/26 22:32, Jason Gunthorpe wrote:
On Fri, Aug 20, 2021 at 05:45:54PM +0900, Yasunori Goto wrote:quoted
static struct page **sev_pin_memory(struct kvm *kvm, unsigned long uaddr, : : if (locked > lock_limit && !capable(CAP_IPC_LOCK)) { pr_err("SEV: %lu locked pages exceed the lock limit of %lu.\n", locked, lock_limit); return ERR_PTR(-ENOMEM); } I think it is better than nothing. How do you think?Unprivileged user space should not be allowed to cause the kernel to print messages.
Hmm... Ok. I see. Thank you for your answer! Bye, --- Yasunori Goto