Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol

From: Borislav Petkov
Date: Sun Sep 27 2015 - 07:04:45 EST


On Sun, Sep 27, 2015 at 12:46:28PM +0200, Thomas Gleixner wrote:
> > https://github.com/kolasa/fglrx-13.152/blob/master/firegl_public.c
>
> I stopped looking at this line:
>
> MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");

"GPL" *and* "Proprietary"??!

How does that even work?

Oh, that depends on the kernel version:

#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
MODULE_LICENSE("Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
#else
MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
#endif

With that '\0' string terminator in there?! WTF now?!

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/