Thread (32 messages) 32 messages, 7 authors, 2018-08-06

Re: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel

From: Luc Van Oostenryck <hidden>
Date: 2018-06-28 06:18:08
Also in: linux-arch, linux-arm-kernel, linux-kselftest, linux-mm, lkml

On Wed, Jun 27, 2018 at 06:17:58PM +0100, Catalin Marinas wrote:
sparse is indeed an option. The current implementation doesn't warn on
an explicit cast from (void __user *) to (unsigned long) since that's a
valid thing in the kernel. I couldn't figure out if there's any other
__attribute__ that could be used to warn of such conversion.
Hi,

sparse doesn't have such attribute but would an new option that would warn
on such cast be a solution for your case?

-- Luc
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help