diff options
author | Phil Turnbull <phil.turnbull@oracle.com> | 2016-09-15 18:20:12 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2016-09-16 12:58:28 +0200 |
commit | 42857cf512cb34c2c8cb50f1e766689d979d64e0 (patch) | |
tree | 6092425f1347606feb4861f799022a56eb1c3e0c /net/6lowpan | |
parent | Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm (diff) | |
download | linux-42857cf512cb34c2c8cb50f1e766689d979d64e0.tar.xz linux-42857cf512cb34c2c8cb50f1e766689d979d64e0.zip |
configfs: Return -EFBIG from configfs_write_bin_file.
The check for writing more than cb_max_size bytes does not 'goto out' so
it is a no-op which allows users to vmalloc an arbitrary amount.
Fixes: 03607ace807b ("configfs: implement binary attributes")
Cc: stable@kernel.org
Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions