alistair23-linux/fs/sysfs
Benjamin Herrenschmidt d723a92dd4 sysfs/bin: Fix size handling overflow for bin_attribute
While looking at the code, I noticed that bin_attribute read() and write()
ops copy the inode size into an int for futher comparisons.

Some bin_attributes can be fairly large. For example, pci creates some for
BARs set to the BAR size and giant BARs are around the corner, so this is
going to break something somewhere eventually.

Let's use the right type.

[adjust for seqfile conversions, only needed for bin_read() - gkh]

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-14 10:07:19 -07:00
..
dir.c sysfs: make sysfs_file_ops() follow ignore_lockdep flag 2013-10-14 08:40:39 -07:00
file.c sysfs/bin: Fix size handling overflow for bin_attribute 2013-10-14 10:07:19 -07:00
group.c sysfs: introduce [__]sysfs_remove() 2013-10-03 16:38:52 -07:00
inode.c sysfs: merge regular and bin file handling 2013-10-05 17:27:40 -07:00
Kconfig
Makefile sysfs: merge regular and bin file handling 2013-10-05 17:27:40 -07:00
mount.c sysfs: drop kobj_ns_type handling 2013-09-26 15:30:22 -07:00
symlink.c sysfs: remove sysfs_addrm_cxt->parent_sd 2013-10-03 16:16:43 -07:00
sysfs.h sysfs: make sysfs_file_ops() follow ignore_lockdep flag 2013-10-14 08:40:39 -07:00