linux-stable-rt/arch
Al Viro 6a029a90f5 [PATCH] mmaper_kern.c fixes [buffer overruns]
- copy_from_user() can fail; ->write() must check its return value.

 - severe buffer overruns both in ->read() and ->write() - lseek to the
   end (i.e.  to mmapper_size) and

	if (count + *ppos > mmapper_size)
		count = count + *ppos - mmapper_size;

   will do absolutely nothing.  Then it will call

	copy_to_user(buf,&v_buf[*ppos],count);

   with obvious results (similar for ->write()).

   Fixed by turning read to simple_read_from_buffer() and by doing
   normal limiting of count in ->write().

 - gratitious lock_kernel() in ->mmap() - it's useless there.

 - lots of gratuitous includes.

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-08-27 10:11:40 -07:00
..
alpha [PATCH] alpha spinlock code and bogus constraints 2005-08-23 18:43:44 -07:00
arm [PATCH] arm: fix IXP4xx flash resource range 2005-08-26 19:37:12 -07:00
arm26 It wasn't just x86-64 that had hardcoded VM_FAULT_xxx numbers 2005-08-04 08:33:38 -07:00
cris It wasn't just x86-64 that had hardcoded VM_FAULT_xxx numbers 2005-08-04 08:33:38 -07:00
frv It wasn't just x86-64 that had hardcoded VM_FAULT_xxx numbers 2005-08-04 08:33:38 -07:00
h8300
i386 [PATCH] i386: fix incorrect FP signal code 2005-08-23 19:52:37 -07:00
ia64 [PATCH] Export pcibios_bus_to_resource 2005-08-24 10:22:44 -07:00
m32r [PATCH] missing exports on m32r 2005-08-23 18:43:46 -07:00
m68k It wasn't just x86-64 that had hardcoded VM_FAULT_xxx numbers 2005-08-04 08:33:38 -07:00
m68knommu
mips
parisc It wasn't just x86-64 that had hardcoded VM_FAULT_xxx numbers 2005-08-04 08:33:38 -07:00
ppc [PATCH] ppc32 8xx: fix m8xx_ide_init() #ifdef 2005-08-26 16:31:46 -07:00
ppc64 [PATCH] ppc64: Export machine_power_off for therm_pm72 module 2005-08-24 09:41:35 -07:00
s390 [PATCH] broken inline asm on s390 (misuse of labels) 2005-08-23 18:43:44 -07:00
sh [PATCH] SH: inotify and ioprio syscalls 2005-08-18 12:53:57 -07:00
sh64 [PATCH] SH64: inotify and ioprio syscalls 2005-08-18 12:53:57 -07:00
sparc [SPARC]: Fix weak aliases 2005-08-19 15:56:37 -07:00
sparc64 [PATCH] Export pcibios_bus_to_resource 2005-08-24 10:22:44 -07:00
um [PATCH] mmaper_kern.c fixes [buffer overruns] 2005-08-27 10:11:40 -07:00
v850
x86_64 [PATCH] x86_64: Tell VM about holes in nodes 2005-08-26 19:37:12 -07:00
xtensa