]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure DTrace can use get_user_pages safely
authorKris Van Hees <kris.van.hees@oracle.com>
Mon, 27 Feb 2017 15:39:07 +0000 (10:39 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Wed, 8 Mar 2017 20:21:22 +0000 (15:21 -0500)
commitd35f166d01a32ae3579b9c44b6cb62bdff0b257b
tree1bc75ea31f823156e9a41ba83d7b139f1c724a8b
parentd3b3e8fb5f8983b3cafc460c3804b1366e6d0f68
dtrace: ensure DTrace can use get_user_pages safely

The processing of the DTrace-specific FOLL_IMMED flag was not robust
enough.  We could still get into a situation where cond_resched() was
called (which is bad) or where the VMA area would get extended (which
is also bad).  The only code that passes this flag is DTrace support
code, and when the flag is not passed, the execution flow is not at all
affected.

Orabug: 25640153
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Chuck Anderson <chuck.anderson@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
mm/gup.c