From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [RFC 2/4] bpf, security: Add Checmate Date: Thu, 04 Aug 2016 10:28:22 +0200 Message-ID: <1470299302.13693.13.camel@edumazet-glaptop3.roam.corp.google.com> References: <20160804071140.GA19121@ircssh.c.rugged-nimbus-611.internal> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Sargun Dhillon , LKML , alexei.starovoitov@gmail.com, daniel@iogearbox.net, linux-security-module@vger.kernel.org, netdev To: zhuyj Return-path: In-Reply-To: Sender: owner-linux-security-module@vger.kernel.org List-Id: netdev.vger.kernel.org Please do not top post On Thu, 2016-08-04 at 16:08 +0800, zhuyj wrote: > +void register_checmate_prog_ops(void); > maybe it is extern void register_checmate_prog_ops(void);? > > + preempt_disable(); > + rcu_read_lock(); > IMHO, it is not necessary to use the above 2 since rcu_read_lock will > call preempt_disable. You might double check if this claim is true if CONFIG_PREEMPT_RCU=y