Fix Unknown symbols in nf_reject_ipvX modules
Subsystems (2)
RFC PATCH 1/1 Fix Unknown symbols in nf_reject_ipvX modules
Commit c8d7b98bec43 moved nf_send_resetX() to modules without module license, which causes following errors seen on my system:
[ 26.926014] nf_reject_ipv4: Unknown symbol rcu_read_lock_bh_held (err 0) [ 26.926022] nf_reject_ipv4: Unknown symbol rcu_read_lock_held (err 0) [ 26.926030] nf_reject_ipv4: Unknown symbol ip_local_out_sk (err 0)
The code below adds MODULE_LICENSE("GPL") to fix this issue.
--- net/ipv4/netfilter/nf_reject_ipv4.c | 3 +++ net/ipv6/netfilter/nf_reject_ipv6.c | 3 +++ 2 files changed, 6 insertions(+)
net/ipv4/netfilter/nf_reject_ipv4.c +3 -0
@@ -11,6 +11,9 @@#include <net/route.h> #include <net/dst.h> #include <linux/netfilter_ipv4.h> +#include <linux/module.h> + +MODULE_LICENSE ("GPL" );/* Send RST reply */ void nf_send_reset (struct sk_buff *oldskb,int hook)
net/ipv6/netfilter/nf_reject_ipv6.c +3 -0
@@ -10,6 +10,9 @@#include <net/ip6_fib.h> #include <net/ip6_checksum.h> #include <linux/netfilter_ipv6.h> +#include <linux/module.h> + +MODULE_LICENSE ("GPL" );void nf_send_reset6 (struct net *net,struct sk_buff *oldskb,int hook) {
Pablo Neira Ayuso
maintainerQuoted 8 lines · Li Zhong
Commit
c8d7b98bec43movednf_send_resetX()to modules without module license, which causes following errors seen on my system:[ 26.926014] nf_reject_ipv4: Unknown symbol rcu_read_lock_bh_held (err 0) [ 26.926022] nf_reject_ipv4: Unknown symbol rcu_read_lock_held (err 0) [ 26.926030] nf_reject_ipv4: Unknown symbol ip_local_out_sk (err 0)The code below adds
MODULE_LICENSE("GPL")to fix this issue.
We already sent a similar patch that should hit Linus' tree soon.
Sorry for the inconvenience.
Quoted 11 lines · Pablo Neira Ayuso
Quoted 8 lines · Li Zhong
Commit
c8d7b98bec43movednf_send_resetX()to modules without module license, which causes following errors seen on my system:[ 26.926014] nf_reject_ipv4: Unknown symbol rcu_read_lock_bh_held (err 0) [ 26.926022] nf_reject_ipv4: Unknown symbol rcu_read_lock_held (err 0) [ 26.926030] nf_reject_ipv4: Unknown symbol ip_local_out_sk (err 0)The code below adds
MODULE_LICENSE("GPL")to fix this issue.We already sent a similar patch that should hit Linus' tree soon.
Ah, Ok, good to know.
Sorry for the noise :)
Quoted 3 lines
Sorry for the inconvenience.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html