https://github.com/torvalds/linux
Revision 5afeb104e7901168b21aad0437fb51dc620dfdd3 authored by Oliver Neukum on 11 June 2007, 13:36:02 UTC, committed by Greg Kroah-Hartman on 26 June 2007, 06:38:06 UTC
usblcd currently has no way to limit memory consumption by fast writers.
This is a security problem, as it allows users with write access to this
device to drive the system into oom despite resource limits.
Here's the fix taken from the modern skeleton driver.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

1 parent fc0f8fc
History
Tip revision: 5afeb104e7901168b21aad0437fb51dc620dfdd3 authored by Oliver Neukum on 11 June 2007, 13:36:02 UTC
USB: usblcd doesn't limit memory consumption during write
Tip revision: 5afeb10
File Mode Size
cluster
dlm
Makefile -rw-r--r-- 528 bytes
alloc.c -rw-r--r-- 97.4 KB
alloc.h -rw-r--r-- 3.6 KB
aops.c -rw-r--r-- 33.8 KB
aops.h -rw-r--r-- 3.4 KB
buffer_head_io.c -rw-r--r-- 7.4 KB
buffer_head_io.h -rw-r--r-- 2.1 KB
dcache.c -rw-r--r-- 11.1 KB
dcache.h -rw-r--r-- 1.8 KB
dir.c -rw-r--r-- 15.5 KB
dir.h -rw-r--r-- 1.8 KB
dlmglue.c -rw-r--r-- 81.5 KB
dlmglue.h -rw-r--r-- 4.2 KB
endian.h -rw-r--r-- 1.3 KB
export.c -rw-r--r-- 5.8 KB
export.h -rw-r--r-- 1.0 KB
extent_map.c -rw-r--r-- 13.1 KB
extent_map.h -rw-r--r-- 1.7 KB
file.c -rw-r--r-- 43.2 KB
file.h -rw-r--r-- 2.2 KB
heartbeat.c -rw-r--r-- 9.4 KB
heartbeat.h -rw-r--r-- 2.3 KB
inode.c -rw-r--r-- 34.2 KB
inode.h -rw-r--r-- 5.0 KB
ioctl.c -rw-r--r-- 3.1 KB
ioctl.h -rw-r--r-- 335 bytes
journal.c -rw-r--r-- 37.8 KB
journal.h -rw-r--r-- 14.5 KB
localalloc.c -rw-r--r-- 23.2 KB
localalloc.h -rw-r--r-- 1.7 KB
mmap.c -rw-r--r-- 3.0 KB
mmap.h -rw-r--r-- 134 bytes
namei.c -rw-r--r-- 55.2 KB
namei.h -rw-r--r-- 1.7 KB
ocfs1_fs_compat.h -rw-r--r-- 2.9 KB
ocfs2.h -rw-r--r-- 13.2 KB
ocfs2_fs.h -rw-r--r-- 21.8 KB
ocfs2_lockid.h -rw-r--r-- 2.6 KB
slot_map.c -rw-r--r-- 6.9 KB
slot_map.h -rw-r--r-- 1.9 KB
suballoc.c -rw-r--r-- 47.6 KB
suballoc.h -rw-r--r-- 3.9 KB
super.c -rw-r--r-- 42.9 KB
super.h -rw-r--r-- 1.5 KB
symlink.c -rw-r--r-- 4.0 KB
symlink.h -rw-r--r-- 1.3 KB
sysfile.c -rw-r--r-- 3.2 KB
sysfile.h -rw-r--r-- 1.1 KB
uptodate.c -rw-r--r-- 16.5 KB
uptodate.h -rw-r--r-- 1.6 KB
ver.c -rw-r--r-- 1.2 KB
ver.h -rw-r--r-- 1000 bytes
vote.c -rw-r--r-- 18.2 KB
vote.h -rw-r--r-- 1.6 KB

back to top