lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 7 Oct 2015 17:27:42 -0400
From:	Paul Gortmaker <>
To:	<>
CC:	Paul Gortmaker <>,
	Alexei Starovoitov <>,
	Anish Bhatt <>,
	Craig Gallek <>,
	Daniel Borkmann <>,
	"David S. Miller" <>,
	Eric Dumazet <>,
	Jamal Hadi Salim <>,
	John Fastabend <>,
	Nicolas Dichtel <>,
	Or Gerlitz <>,
	Shani Michaeli <>,
	Varka Bhadram <>
Subject: [PATCH-next v2 0/4] make non-modular code explicitly non-modular

[v2: drop m68k patches that Geert converted to modules; add one ARM
 driver patch ; update net-next baseline to today; switch to ARM
 for build testing.]

In a previous merge window, we made changes to allow better
delineation between modular and non-modular code in commit
0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init
from init.h to module.h").  This allows us to now ensure module code
looks modular and non-modular code does not accidentally look modular
just to avoid suffering build breakage.

Here we target code that is, by nature of their Makefile and/or
Kconfig settings, only available to be built-in, but implicitly
presenting itself as being possibly modular by way of using modular
headers, macros, and functions.

The goal here is to remove that illusion of modularity from these
files, but in a way that leaves the actual runtime unchanged.
In doing so, we remove code that has never been tested and adds
no value to the tree.  And we continue the process of expecting a
level of consistency between the Kconfig/Makefile of code and the
code in use itself.

Fortuntately the net subsystem has relatively few instances, given
the overall amount of code and drivers it contains.  For comparison
there are over 300 instances tree wide, resulting in a possible net
removal of on the order of 5000 lines of unused code.

Build tested on net-next from today, on ARM, since that is the arch
where the one ethernet driver changed here is available.


Cc: Alexei Starovoitov <>
Cc: Anish Bhatt <>
Cc: Craig Gallek <>
Cc: Daniel Borkmann <>
Cc: "David S. Miller" <>
Cc: Eric Dumazet <>
Cc: Jamal Hadi Salim <>
Cc: John Fastabend <>
Cc: Nicolas Dichtel <>
Cc: Or Gerlitz <>
Cc: Shani Michaeli <>
Cc: Varka Bhadram <>

Paul Gortmaker (4):
  net/core: make sock_diag.c explicitly non-modular
  net/dcb: make dcbnl.c explicitly non-modular
  net/sched: make sch_blackhole.c explicitly non-modular
  drivers/net/ethernet: make ti/cpsw-phy-sel.c explicitly non-modular

 drivers/net/ethernet/ti/cpsw-phy-sel.c | 10 ++++------
 net/core/sock_diag.c                   | 14 +++-----------
 net/dcb/dcbnl.c                        | 30 +++---------------------------
 net/sched/sch_blackhole.c              | 15 +++------------
 4 files changed, 13 insertions(+), 56 deletions(-)


To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists