Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit b1993a2 upstream. syzbot reported : BUG: KMSAN: uninit-value in rtnh_ok include/net/nexthop.h:11 [inline] BUG: KMSAN: uninit-value in fib_count_nexthops net/ipv4/fib_semantics.c:469 [inline] BUG: KMSAN: uninit-value in fib_create_info+0x554/0x8d20 net/ipv4/fib_semantics.c:1091 @Remaining is an integer, coming from user space. If it is negative we want rtnh_ok() to return false. Fixes: 4e902c5 ("[IPv4]: FIB configuration using struct fib_config") Signed-off-by: Eric Dumazet <[email protected]> Reported-by: syzbot <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information