Re: [PATCH][net-next] net: check extack._msg before print

2018-08-05 Thread David Miller
From: Li RongQing Date: Fri, 3 Aug 2018 15:45:21 +0800 > dev_set_mtu_ext is able to fail with a valid mtu value, at that > condition, extack._msg is not set and random since it is in stack, > then kernel will crash when print it. > > Fixes: 7a4c53bee3324a ("net: report invalid mtu value via net

[PATCH][net-next] net: check extack._msg before print

2018-08-03 Thread Li RongQing
dev_set_mtu_ext is able to fail with a valid mtu value, at that condition, extack._msg is not set and random since it is in stack, then kernel will crash when print it. Fixes: 7a4c53bee3324a ("net: report invalid mtu value via netlink extack") Signed-off-by: Zhang Yu Signed-off-by: Li RongQing -