]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
[S390] hypfs: Move buffer allocation from open to read
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Wed, 5 Jan 2011 11:47:43 +0000 (12:47 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 5 Jan 2011 11:47:27 +0000 (12:47 +0100)
commit2fcb3686e1601cff992e026dceeab1b22dc81178
tree6f2c62354f5fa445982f3e1575aac5e4758187ee
parent6432c015b754fef910dd7468b16fffc2b975348a
[S390] hypfs: Move buffer allocation from open to read

Currently the buffer for diagnose data is allocated in the open function
of the debugfs file and is released in the close function. This has the
drawback that a user (root) can pin that memory by not closing the file.
This patch moves the buffer allocation to the read function. The buffer is
automatically released after the buffer is copied to userspace.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/hypfs/Makefile
arch/s390/hypfs/hypfs.h
arch/s390/hypfs/hypfs_dbfs.c [new file with mode: 0644]
arch/s390/hypfs/hypfs_diag.c
arch/s390/hypfs/hypfs_vm.c
arch/s390/hypfs/inode.c