mm-nommuc-add-additional-check-for-vread-just-like-vwrite-has-done.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-nommuc-add-additional-check-for-vread-just-like-vwrite-has-done.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:25:46 -0700
The patch titled
Subject: mm/nommu.c: add additional check for vread() just like vwrite() has done
has been removed from the -mm tree. Its filename was
mm-nommuc-add-additional-check-for-vread-just-like-vwrite-has-done.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Chen Gang <[email protected]>
Subject: mm/nommu.c: add additional check for vread() just like vwrite() has done
vwrite() checks for overflow. vread() should do the same thing.
Since vwrite() checks the source buffer address, vread() should check the destination buffer address.
---
mm/nommu.c | 4 ++++ 1 file changed, 4 insertions(+)
mm/nommu.c renamed from mm/nommu.c~mm-nommuc-add-additional-check-for-vread-just-like-vwrite-has-done +4 -0
@@ -282,6 +282,10 @@ EXPORT_SYMBOL(vmalloc_to_pfn);long vread (char *buf,char *addr,unsigned long count) { +/* Don't allow overflow */ +if ((unsigned long ) buf + count < count) + count = -(unsigned long ) buf; +memcpy (buf, addr, count);return count; }
_
Patches currently in -mm which might be from [email protected] are
origin.patch
linux-next.patch kernel-auditfilterc-fix-leak-in-audit_add_rule-error-path.patch include-linux-interrupth-add-dummy-irq_set_irq_wake-for-generic_hardirqs.patch