Re: [PATCH net] ipv4: remove BUG_ON() from fib_compute_spec_dst

2018-07-28 Thread David Miller
From: Lorenzo Bianconi Date: Fri, 27 Jul 2018 18:15:46 +0200 > Remove BUG_ON() from fib_compute_spec_dst routine and check > in_dev pointer during flowi4 data structure initialization. > fib_compute_spec_dst routine can be run concurrently with device removal > where ip_ptr net_device pointer is

[PATCH net] ipv4: remove BUG_ON() from fib_compute_spec_dst

2018-07-27 Thread Lorenzo Bianconi
Remove BUG_ON() from fib_compute_spec_dst routine and check in_dev pointer during flowi4 data structure initialization. fib_compute_spec_dst routine can be run concurrently with device removal where ip_ptr net_device pointer is set to NULL. This can happen if userspace enables pkt info on UDP rx so