On Tue, Jan 03, 2023 at 05:45:30PM +0000, Lorenzo Stoakes wrote: > Can you explain what use case you have for exporting this? Currently this is > only used by procfs. > Ugh I hit send too soon ! I see you've explained the _why_ (i.e. idxd). The other two points remain, however. > Additionally, it relies on a reference count being held on the mm which seems a > little risky exposing to a driver. > > Is there a reason you can't use access_process_vm() which is exported and > additionally handles the refrencing?