Thread (48 messages) flat view 48 messages, 12 authors, 2017-12-07

Re: [PATCH V11 2/5] vsprintf: refactor %pK code out of pointer()

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2017-11-29 02:40:03
Also in: lkml

On Wed, 29 Nov 2017 13:05:02 +1100
"Tobin C. Harding" [off-list ref] wrote:
+		/*
+		 * kptr_restrict==1 cannot be used in IRQ context
+		 * because its test for CAP_SYSLOG would be meaningless.
+		 */
+		if (in_irq() || in_serving_softirq() || in_nmi())
This could be replaced with:

		if (!in_task())

Which is actually more efficient.

-- Steve
+			return string(buf, end, "pK-error", spec);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help