On Mon, 7 Jul 2025 at 19:12, Steven Rostedt <rost...@kernel.org> wrote: > > From: Josh Poimboeuf <jpoim...@kernel.org> > > Objtool warns about calling pr_debug() from uaccess-enabled regions, and > rightfully so. Add a dbg_sec_uaccess() macro which temporarily disables > uaccess before doing the dynamic printk, and use that to add debug > messages throughout the uaccess-enabled regions.
Please kill this patch, and stop doing stupid things. The whole AND ONLY point of using the unsafe user access macros is performance. You are now actively breaking the whole point of them. If you need to add debug printouts to user accesses, just don't use the 'unsafe' ones. Or add the debug to after the unsafe region has finished. Not this way. This patch is disgusting, in other words. It's wrong. STOP IT. Linus