[PATCH 4/4 v2] mm: use access_remote_vm() in get_cmdline()

2018-02-26 Thread Yang Shi
get_cmdline() is using access_process_vm() which increases mm reference count, but the mm reference count has been increased before calling access_process_vm() and it is kept across get_cmdline(). It sounds unnecessary to get mm reference count increased twice, so replace access_process_vm() to

[PATCH 4/4 v2] mm: use access_remote_vm() in get_cmdline()

2018-02-26 Thread Yang Shi
get_cmdline() is using access_process_vm() which increases mm reference count, but the mm reference count has been increased before calling access_process_vm() and it is kept across get_cmdline(). It sounds unnecessary to get mm reference count increased twice, so replace access_process_vm() to