When mv88e6xxx_fid_map return error, we lost free the table.
Fix it.
Fixes: bfb255428966 ("net: dsa: mv88e6xxx: Add devlink regions")
Reported-by: Hulk Robot
Signed-off-by: zhangxiaoxu
---
drivers/net/dsa/mv88e6xxx/devlink.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Thank you very much.
I have updated the patch:
https://lore.kernel.org/netdev/1555379244-71866-1-git-send-email-zhangxiao...@huawei.com/
On 4/16/2019 1:53 AM, Eric Dumazet wrote:
On 04/15/2019 12:15 AM, ZhangXiaoxu wrote:
There is a UBSAN report as below:
UBSAN: Undefined behaviour in net
t_wlen
Fixes: f672258391b42 ("tcp: track min RTT using windowed min-filter")
Signed-off-by: ZhangXiaoxu
---
Documentation/networking/ip-sysctl.txt | 1 +
net/ipv4/sysctl_net_ipv4.c | 5 -
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Documentation/netw
t_wlen
Fixes: f672258391b42 ("tcp: track min RTT using windowed min-filter")
Signed-off-by: ZhangXiaoxu
---
net/ipv4/sysctl_net_ipv4.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index ba0fc4b..56306b
ping.
On 1/14/2019 8:15 PM, Simon Horman wrote:
On Thu, Jan 10, 2019 at 04:39:06PM +0800, ZhangXiaoxu wrote:
There is a UBSAN bug report as below:
UBSAN: Undefined behaviour in net/netfilter/ipvs/ip_vs_ctl.c:2227:21
signed integer overflow:
-2147483647 * 1000 cannot be represented in type
ping?
On 1/10/2019 4:39 PM, ZhangXiaoxu wrote:
There is a UBSAN bug report as below:
UBSAN: Undefined behaviour in net/netfilter/ipvs/ip_vs_ctl.c:2227:21
signed integer overflow:
-2147483647 * 1000 cannot be represented in type 'int'
Reproduce program:
#include
f the timeout value is negative or max than 'INT_MAX / HZ'.
Signed-off-by: ZhangXiaoxu
---
net/netfilter/ipvs/ip_vs_ctl.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 432141f..444aaca 100644
--
l(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0,
&sock_fprog);
printf("%d\n", ret);
return 0;
}
Make sure the right operand not greater than or equal to the
width of the promoted left operand when do shift operation.
Signed-off-by: ZhangXiaoxu