]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: replace -EEXIST with -EBUSY
authorDaniel Gomez <da.gomez@samsung.com>
Fri, 19 Dec 2025 05:13:20 +0000 (06:13 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 1 Jan 2026 10:31:48 +0000 (11:31 +0100)
commit2bafeb8d2f380c3a81d98bd7b78b854b564f9cd4
tree87e5fd9eb2649023ef98bc279decbbe54ee3839a
parent36a3200575642846a96436d503d46544533bb943
netfilter: replace -EEXIST with -EBUSY

The -EEXIST error code is reserved by the module loading infrastructure
to indicate that a module is already loaded. When a module's init
function returns -EEXIST, userspace tools like kmod interpret this as
"module already loaded" and treat the operation as successful, returning
0 to the user even though the module initialization actually failed.

Replace -EEXIST with -EBUSY to ensure correct error reporting in the module
initialization path.

Affected modules:
  * ebtable_broute ebtable_filter ebtable_nat arptable_filter
  * ip6table_filter ip6table_mangle ip6table_nat ip6table_raw
  * ip6table_security iptable_filter iptable_mangle iptable_nat
  * iptable_raw iptable_security

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/bridge/netfilter/ebtables.c
net/netfilter/nf_log.c
net/netfilter/x_tables.c