netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: bpfilter: fix two bugs in bpfilter
@ 2018-12-12  1:19 Taehee Yoo
  0 siblings, 0 replies; only message in thread
From: Taehee Yoo @ 2018-12-12  1:19 UTC (permalink / raw)
  To: davem, netdev; +Cc: daniel, ast, ap420073

This patches fix two bugs in bpfilter which are related in
iptables command.

First patch adds error handling code for bpfilter_umh.
When error occurred in bpfilter_umh, bpfilter is stopped.
then it never be restarted. it makes failing iptables command.
This patch adds restart bpfilter_umh routine.

Second patch ensures that bpfilter.ko module will not removed while
it's being used.
bpfilter.ko is not protected by lock or module reference counter.
Therefore that can be removed while module is being used.
In order to protect that, mutex is used.


Taehee Yoo (2):
  net: bpfilter: restart bpfilter_umh when error occurred
  net: bpfilter: disallow to remove bpfilter module while being used

 include/linux/bpfilter.h         | 16 +++++++++++---
 net/bpfilter/bpfilter_kern.c     | 35 +++++++++++++++--------------
 net/bpfilter/bpfilter_umh_blob.S |  2 +-
 net/ipv4/bpfilter/sockopt.c      | 38 +++++++++++++++++++++++---------
 4 files changed, 60 insertions(+), 31 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-12  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-12  1:19 [PATCH net 0/2] net: bpfilter: fix two bugs in bpfilter Taehee Yoo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).