]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Mar 2018 22:40:38 +0000 (19:40 -0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 15 May 2018 05:35:29 +0000 (07:35 +0200)
commitf9b4e9dd0c7e1b5c6049e76c1f5cba1d06a5a181
treeb8286b8775cc273e8e6146b2bf08370ad0c4e4bb
parentf7e82ef416da9133724b183e92f1a0850baae516
powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code

rfi_flush_enable() includes a check to see if we're already
enabled (or disabled), and in that case does nothing.

But that means calling setup_rfi_flush() a 2nd time doesn't actually
work, which is a bit confusing.

Move that check into the debugfs code, where it really belongs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 1e2a9fc7496955faacbbed49461d611b704a7505)

CVE-2018-3639 (powerpc)

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/powerpc/kernel/setup_64.c