Re: /drivers/char/Kconfig Bug Kernel Patch

From: Arnd Bergmann
Date: Tue Dec 13 2016 - 16:38:25 EST


On Tuesday, December 13, 2016 1:30:39 PM CET Max Bires wrote:
> While trying to turn off the port device in defconfig, I ran into a bug
> caused by the fact that the Kconfig for port didn't have a string after the
> bool declaration. I fixed this in the attached patch (though I figure the
> description might need tuning up). Let me know if there's anything else I
> need to do.

The change looks reasonable, however there are a few things to improve
to get the patch applied:

- clarify that the current behavior is not a bug, but was done intentionally.
Making the option user-visible would help avoid a potential attack vector
and make the kernel smaller, both of which are useful.

- remove the "Change-id" line from the submission, it has no meaning in
an upstream kernel

- send the patch inline rather than as an attachment, this is usually done
with git-send-email.

Arnd