imq / linuximq

Pseudo-driver for the intermediate queue device.
https://imq.github.io/
GNU General Public License v2.0
99 stars 51 forks source link

Add rcu protection to imq_dev_xmit() #53

Closed haegar closed 7 years ago

haegar commented 7 years ago

(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