summaryrefslogtreecommitdiff
path: root/crypto/ecrdsa_pub_key.asn1
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-11-07 08:50:25 +0530
committerJason Gunthorpe <jgg@mellanox.com>2019-11-14 11:49:15 -0400
commit7ee23491b39259ae83899dd93b2a29ef0f22f0a7 (patch)
tree924f3d8b13496eddaf6e1a2417d8b2a4964b0bac /crypto/ecrdsa_pub_key.asn1
parentda046d5f895fca18d63b15ac8faebd5bf784e23a (diff)
downloadlinux-next-7ee23491b39259ae83899dd93b2a29ef0f22f0a7.tar.gz
RDMA/qib: Validate ->show()/store() callbacks before calling them
The permissions of the read-only or write-only sysfs files can be changed (as root) and the user can then try to read a write-only file or write to a read-only file which will lead to kernel crash here. Protect against that by always validating the show/store callbacks. Link: https://lore.kernel.org/r/d45cc26361a174ae12dbb86c994ef334d257924b.1573096807.git.viresh.kumar@linaro.org Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'crypto/ecrdsa_pub_key.asn1')
0 files changed, 0 insertions, 0 deletions