Vineet Gupta
05d9d0b96e
ARC: uaccess: get_user to zero out dest in cause of fault
Al reported potential issue with ARC get_user() as it wasn't clearing
out destination pointer in case of fault due to bad address etc.
Verified using following
| {
| u32 bogus1 = 0xdeadbeef;
| u64 bogus2 = 0xdead;
| int rc1, rc2;
|
| pr_info("Orig values %x %llx\n", bogus1, bogus2);
| rc1 = get_user(bogus1, (u32 __user *)0x40000000);
| rc2 = get_user(bogus2, (u64 __user *)0x50000000);
| pr_info("access %d %d, new values %x %llx\n",
| rc1, rc2, bogus1, bogus2);
| }
| [ARCLinux]# insmod /mnt/kernel-module/qtn.ko
| Orig values deadbeef dead
| access -14 -14, new values 0 0
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-snps-arc@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-09-13 17:49:41 -04:00
..
2016-09-09 19:34:32 -04:00
2016-09-13 17:49:41 -04:00
2016-08-13 10:11:14 -07:00
2016-08-13 19:29:46 -07:00
2016-08-04 08:50:07 -04:00
2016-08-04 08:50:07 -04:00
2016-08-04 08:50:07 -04:00
2016-09-13 17:49:38 -04:00
2016-09-13 17:49:39 -04:00
2016-08-13 08:53:56 -07:00
2016-09-13 17:49:39 -04:00
2016-09-13 17:49:40 -04:00
2016-07-26 16:19:19 -07:00
2016-08-08 12:38:47 +10:00
2016-09-13 17:49:40 -04:00
2016-08-04 08:50:07 -04:00
2016-08-12 12:01:30 +02:00
2016-08-05 09:48:22 -04:00
2016-08-04 08:50:07 -04:00
2016-08-04 08:50:07 -04:00
2016-08-05 09:48:22 -04:00
2016-08-13 10:11:14 -07:00
2016-08-13 10:11:14 -07:00
2016-08-02 17:31:41 -04:00
2016-08-06 09:00:05 -04:00
2016-08-08 14:48:14 -07:00
2016-08-04 08:50:07 -04:00
2016-08-04 19:37:59 -04:00
2016-08-13 08:53:18 -07:00
2016-08-12 16:23:58 -07:00
2016-08-04 08:50:07 -04:00
2016-08-08 14:48:14 -07:00