From: Taehee Yoo Subject: [PATCH net 0/2] net: bpfilter: fix two bugs in bpfilter Date: Wed, 12 Dec 2018 10:19:09 +0900 Message-ID: <20181212011909.28440-1-ap420073@gmail.com> Cc: daniel@iogearbox.net, ast@kernel.org, ap420073@gmail.com To: davem@davemloft.net, netdev@vger.kernel.org Return-path: Received: from mail-pg1-f170.google.com ([209.85.215.170]:34957 "EHLO mail-pg1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbeLLBTR (ORCPT ); Tue, 11 Dec 2018 20:19:17 -0500 Received: by mail-pg1-f170.google.com with SMTP id s198so7503694pgs.2 for ; Tue, 11 Dec 2018 17:19:17 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: 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