Re: [GIT PULL] gcc-plugins updates for v4.11-rc1

From: Linus Torvalds
Date: Tue Feb 21 2017 - 21:35:07 EST


On Tue, Feb 21, 2017 at 12:16 PM, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> Please pull these gcc-plugins changes for v4.11-rc1. This includes two new
> plugins for the upstream kernel: structleak and initify. The structleak
> plugin performs forced initialization of certain structures to avoid
> possible information exposures to userspace. The initify plugin performs
> analysis to find functions and strings that can be marked as __init or
> __exit to reduce the runtime size of the kernel.

I pulled this, but then looked at the patch, and decided to unpull it.

The crazy "__nocapture()" annotations are too ugly to live, and make
no sense. They are basically random noise to some very core header
files. And the "__unverified_nocapture()" ones are worse.

I'm not sure how to fix this issue.

Linus