]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Disable DAX flow control
authorRob Gardner <rob.gardner@oracle.com>
Wed, 19 Apr 2017 17:21:13 +0000 (11:21 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 May 2017 16:50:49 +0000 (09:50 -0700)
commit03cf00ebf89e405bbd8a6b0112cc4c99ed4f4d1e
treebec046eacc3d46f4529119070e7f56af4ca47576
parent26b70a6c718a6129de006e980bc98aab74a75136
sparc64: Disable DAX flow control

Orabug: 25997202

The flow control feature of DAX only works for output buffers
and it doesn't appear to be possible to calculate the exact
size in bytes of an input buffer. So we have no way to bound
the amount of data that DAX reads as input. This has correctness
and security implications, so until we figure out something better
to do, the temporary workaround is to disable flow control completely
and fall back to 4Mb virtual page backed dax_alloc memory, which
will allow page boundaries to limit the size of all buffers.  A new
module parameter "flow_enable" is provided to allow this decision
to be reverted at module load time if needed.

Signed-off-by: Rob Gardner <rob.gardner@oracle.com>
Reviewed-by: Jonathan Helman <jonathan.helman@oracle.com>
Reviewed-by: Sanath Kumar <sanath.s.kumar@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/dax/dax_main.c
arch/sparc/dax/dax_mm.c