mm: introduce secretmemfd system call to create "secret" memory areas
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines · Mike Rapoport
Hi,
Quoted 5 lines · Josh Triplett
Quoted 1 line · kernel test robot
commit:
22dd199a7221932b194badb999181ca3fa2e62e2(mm: introduce secretmemfd system call to create "secret" memory areas)Unrelated to the size, I'm wondering: why have this as a separate syscall, rather than just a flag to
memfd_create?Kirill asked the same question but the other way around:
https://lore.kernel.org/linux-mm/20200713105812.dnwtdhsuyj3xbh4f(a)box/
Quoted 7 lines
I feel we are going to bikesched about it for a while :)
More seruously, the commonality with
memfd_createend at the fact that this a file descriptor for memory.Having this as separate syscall will be less confusing to the users, and I beleive, more flexible for future changes.
Fair enough. I'm not going to express a further opinion on the bikeshed paint color.
That said, please by all means make sure that "make tinyconfig" doesn't get any bigger with this patch (which *should* be the case as long as it's a Kconfig option, and no new code gets added outside the Kconfig option).
- Josh