Skip to content

Commit

Permalink
gcc-plugins: Change all version strings match kernel
Browse files Browse the repository at this point in the history
It's not meaningful for the GCC plugins to track their versions separately
from the rest of the kernel. Switch all versions to the kernel version.

Fix mismatched indenting while we're at it.

Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
  • Loading branch information
kees authored and intel-lab-lkp committed May 10, 2022
1 parent 8126b1c commit 020fffc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions scripts/gcc-plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin)

plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD_HOSTCXXFLAGS) -fPIC \
-include $(srctree)/include/linux/compiler-version.h \
-I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \
-fno-rtti -fno-exceptions -fasynchronous-unwind-tables \
-ggdb -Wno-narrowing -Wno-unused-variable \
-Wno-format-diag
-include $(objtree)/include/generated/utsrelease.h \
-I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \
-fno-rtti -fno-exceptions -fasynchronous-unwind-tables \
-ggdb -Wno-narrowing -Wno-unused-variable \
-Wno-format-diag

plugin_ldflags = -shared

Expand Down
2 changes: 1 addition & 1 deletion scripts/gcc-plugins/latent_entropy_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ __visible int plugin_is_GPL_compatible;
static GTY(()) tree latent_entropy_decl;

static struct plugin_info latent_entropy_plugin_info = {
.version = "201606141920vanilla",
.version = UTS_RELEASE,
.help = "disable\tturn off latent entropy instrumentation\n",
};

Expand Down
2 changes: 1 addition & 1 deletion scripts/gcc-plugins/randomize_layout_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ __visible int plugin_is_GPL_compatible;
static int performance_mode;

static struct plugin_info randomize_layout_plugin_info = {
.version = "201402201816vanilla",
.version = UTS_RELEASE,
.help = "disable\t\t\tdo not activate plugin\n"
"performance-mode\tenable cacheline-aware layout randomization\n"
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/gcc-plugins/sancov_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ __visible int plugin_is_GPL_compatible;
tree sancov_fndecl;

static struct plugin_info sancov_plugin_info = {
.version = "20160402",
.version = UTS_RELEASE,
.help = "sancov plugin\n",
};

Expand Down
2 changes: 1 addition & 1 deletion scripts/gcc-plugins/stackleak_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static bool verbose = false;
static GTY(()) tree track_function_decl;

static struct plugin_info stackleak_plugin_info = {
.version = "201707101337",
.version = UTS_RELEASE,
.help = "track-min-size=nn\ttrack stack for functions with a stack frame size >= nn bytes\n"
"arch=target_arch\tspecify target build arch\n"
"disable\t\tdo not activate the plugin\n"
Expand Down
2 changes: 1 addition & 1 deletion scripts/gcc-plugins/structleak_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
__visible int plugin_is_GPL_compatible;

static struct plugin_info structleak_plugin_info = {
.version = "20190125vanilla",
.version = UTS_RELEASE,
.help = "disable\tdo not activate plugin\n"
"byref\tinit structs passed by reference\n"
"byref-all\tinit anything passed by reference\n"
Expand Down

0 comments on commit 020fffc

Please sign in to comment.