Re: [net PATCH] fib_trie: Fix shift by 32 in fib_table_lookup

2016-01-29 Thread David Miller
From: Alexander Duyck Date: Thu, 28 Jan 2016 13:42:24 -0800 > The fib_table_lookup function had a shift by 32 that triggered a UBSAN > warning. This was due to the fact that I had placed the shift first and > then followed it with the check for the suffix length to ignore the > undefined behavio

[net PATCH] fib_trie: Fix shift by 32 in fib_table_lookup

2016-01-28 Thread Alexander Duyck
The fib_table_lookup function had a shift by 32 that triggered a UBSAN warning. This was due to the fact that I had placed the shift first and then followed it with the check for the suffix length to ignore the undefined behavior. If we reorder this so that we verify the suffix is less than 32 be