Re: [PATCH net] bridge: check brport attr show in brport_show

2018-02-12 Thread David Miller
From: Xin Long Date: Mon, 12 Feb 2018 17:15:40 +0800 > Now br_sysfs_if file flush doesn't have attr show. To read it will > cause kernel panic after users chmod u+r this file. > > Xiong found this issue when running the commands: > > ip link add br0 type bridge > ip link add type veth > i

[PATCH net] bridge: check brport attr show in brport_show

2018-02-12 Thread Xin Long
Now br_sysfs_if file flush doesn't have attr show. To read it will cause kernel panic after users chmod u+r this file. Xiong found this issue when running the commands: ip link add br0 type bridge ip link add type veth ip link set veth0 master br0 chmod u+r /sys/devices/virtual/net/veth0/