>From: Jaewon Kim >> Sent: 03 April 2023 15:40 >... >> I wanted to print phys_addr_t type value only when kptr_restrict sysctl is >> allowed. So I thought I could use %pK for that purpose. And the physical >> address is not that long. I wanted to make that length short like 9 hex. > >Isn't that is the wrong format for physical addresses anyway? >They can be larger than virtual ones (eg x86 with PAE). Yeah, correct. I just used %pK to hide physical address, I thought it could be leak in security perspective. Could you give me advice how I can hide the address by default and look the address if kptr_restrict allow it? Jaewon Kim > > David