On Thu, Nov 19, 2020 at 10:53:13PM -0700, subashab@xxxxxxxxxxxxxx wrote: > +struct xt_table_info > +*xt_table_get_private_protected(const struct xt_table *table) > +{ > + return rcu_dereference_protected(table->private, > + mutex_is_locked(&xt[table->af].mutex)); > +} > +EXPORT_SYMBOL(xt_table_get_private_protected); In all debug builds this function compiles to a single memory dereference. Do you really want that out-of-line?