Re: [PATCH net-next] ipv4: potential underflow in compat_ip_setsockopt()

2020-05-25 Thread David Miller
From: Dan Carpenter Date: Sat, 23 May 2020 20:46:48 +0300 > The value of "n" is capped at 0x1ff but it checked for negative > values. I don't think this causes a problem but I'm not certain and > it's harmless to prevent it. > > Fixes: 2e04172875c9 ("ipv4: do compat setsockopt for MCAST_MSF

[PATCH net-next] ipv4: potential underflow in compat_ip_setsockopt()

2020-05-23 Thread Dan Carpenter
The value of "n" is capped at 0x1ff but it checked for negative values. I don't think this causes a problem but I'm not certain and it's harmless to prevent it. Fixes: 2e04172875c9 ("ipv4: do compat setsockopt for MCAST_MSFILTER directly") Signed-off-by: Dan Carpenter --- net/ipv4/ip_sockg