Eric Dumazet c780a049f9 ipv4: better IP_MAX_MTU enforcement
While working on yet another syzkaller report, I found
that our IP_MAX_MTU enforcements were not properly done.

gcc seems to reload dev->mtu for min(dev->mtu, IP_MAX_MTU), and
final result can be bigger than IP_MAX_MTU :/

This is a problem because device mtu can be changed on other cpus or
threads.

While this patch does not fix the issue I am working on, it is
probably worth addressing it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-16 16:28:47 -07:00
..
2017-04-12 22:02:40 +02:00
2017-08-11 13:57:08 -07:00
2017-08-16 16:28:47 -07:00
2017-08-08 21:03:47 -07:00
2017-07-21 16:26:01 -07:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00