On Tue, Dec 19, 2017 at 03:42:11PM +0100, Michal Hocko wrote: > On Tue 19-12-17 05:32:36, Matthew Wilcox wrote: > > > > From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> > > > > With the recent addition of hashed kernel pointers, places which need > > to produce useful debug output have to specify %px, not %p. This patch > > fixes all the VM debug to use %px. This is appropriate because it's > > debug output that the user should never be able to trigger, and kernel > > developers need to see the actual pointers. > > Agreed. This is essentially a BUG_ON so we shouldn't hide information. > I am just wondering why %px rather than %lx (like __show_regs e.g.)? commit 7b1924a1d930eb27fc79c4e4e2a6c1c970623e68 Author: Tobin C. Harding <me@xxxxxxxx> Date: Thu Nov 23 10:59:45 2017 +1100 vsprintf: add printk specifier %px printk specifier %p now hashes all addresses before printing. Sometimes we need to see the actual unmodified address. This can be achieved using %lx but then we face the risk that if in future we want to change the way the Kernel handles printing of pointers we will have to grep through the already existent 50 000 %lx call sites. Let's add specifier %px as a clear, opt-in, way to print a pointer and maintain some level of isolation from all the other hex integer output within the Kernel. Add printk specifier %px to print the actual unmodified address. Signed-off-by: Tobin C. Harding <me@xxxxxxxx> > > Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> > > Acked-by: Michal Hocko <mhocko@xxxxxxxx> Thanks. Andrew, will you take this, or does it go through the hardening tree? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>