Skip to content
Commit bf5add39 authored by Swarup Laxman Kotiaklapudi's avatar Swarup Laxman Kotiaklapudi Committed by Andrew Morton
Browse files

proc: test ProtectionKey in proc-empty-vm test

Check ProtectionKey field in /proc/*/smaps output, if system supports
protection keys feature.

[adobriyan@gmail.com: test support in the beginning of the program, use syscall, not glibc pkey_alloc(3) which may not compile]

Link: https://lkml.kernel.org/r/ac05efa7-d2a0-48ad-b704-ffdd5450582e@p183


Signed-off-by: default avatarSwarup Laxman Kotiaklapudi <swarupkotikalapudi@gmail.com>
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: default avatarSwarup Laxman <Kotikalapudi&lt;swarupkotikalapudi@gmail.com>
Tested-by: default avatarSwarup Laxman <Kotikalapudi&lt;swarupkotikalapudi@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 20e34aa7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment