Files
android_kernel_xiaomi_sm8450/arch/x86/include/asm
Peter Zijlstra 9b8bd476e7 x86/uaccess: Don't leak the AC flags into __get_user() argument evaluation
Identical to __put_user(); the __get_user() argument evalution will too
leak UBSAN crud into the __uaccess_begin() / __uaccess_end() region.
While uncommon this was observed to happen for:

  drivers/xen/gntdev.c: if (__get_user(old_status, batch->status[i]))

where UBSAN added array bound checking.

This complements commit:

  6ae865615f ("x86/uaccess: Dont leak the AC flag into __put_user() argument evaluation")

Tested-by Sedat Dilek <sedat.dilek@gmail.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: broonie@kernel.org
Cc: sfr@canb.auug.org.au
Cc: akpm@linux-foundation.org
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: mhocko@suse.cz
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20190829082445.GM2369@hirez.programming.kicks-ass.net
2019-09-02 14:22:38 +02:00
..
2018-12-03 10:49:13 +01:00
2018-03-20 10:01:57 +01:00
2019-05-10 12:33:09 -04:00
2018-08-15 13:44:10 -07:00
2019-07-03 16:35:23 +02:00
2019-04-16 12:26:18 +02:00
2017-12-22 20:13:04 +01:00
2019-07-16 19:23:22 -07:00
2019-04-22 11:42:59 +02:00
2019-07-17 23:17:38 +02:00
2019-01-16 12:43:08 +01:00
2019-06-17 12:43:44 +02:00
2019-07-12 11:05:44 -07:00
2019-07-16 19:23:25 -07:00
2018-07-20 01:11:45 +02:00
2018-11-04 00:54:34 +01:00
2018-03-20 10:01:57 +01:00
2019-04-10 09:53:31 +02:00
2019-04-11 16:21:51 +02:00
2019-05-08 13:13:57 +02:00