Skip to contentSkip to conversation

mm/migrate: Avoid possible unnecessary ptrace_may_access() call in kernel_move_pages()

PATCH linmiaohe 1 participant 1 message Aug 18, 2020 Memory management

lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 8 lines · Matthew Wilcox
Quoted 2 lines · Miaohe Lin

There is no need to check if this process has the right to modify the specified process when they are same.

We should probably also skip the security hook call if a process is modifying its own pages.

How about this instead?

It sounds good, thanks for your good advice. Would you like a tag like suggest-by?