imq / linuximq

Pseudo-driver for the intermediate queue device.

Home Page:https://imq.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add rcu protection to imq_dev_xmit()

haegar opened this issue · comments

(Using kernel 4.4.x currently)

nf_reinject() needs to be called with rcu lock held, as it calls rcu_dereference().

Otherwise it traps on a WARN_ON(!rcu_read_lock_held()) in dst.h when lockdep is enabled.

WARNING: CPU: 3 PID: 0 at include/net/dst.h:319 __xfrm_route_forward+0x138/0x170()

linux-imq-rcu.diff.txt