Commit 46276321 authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

Revert: "dm-verity: restart or panic on an I/O error"



This reverts commit e6a3531d.

The problem that the commit e6a3531d
fixes was reported as a security bug, but Google engineers working on
Android and ChromeOS didn't want to change the default behavior, they
want to get -EIO rather than restarting the system, so I am reverting
that commit.

Note also that calling machine_restart from the I/O handling code is
potentially unsafe (the reboot notifiers may wait for the bio that
triggered the restart), but Android uses the reboot notifiers to store
the reboot reason into the PMU microcontroller, so machine_restart must
be used.

Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Fixes: e6a3531d ("dm-verity: restart or panic on an I/O error")
Suggested-by: default avatarSami Tolvanen <samitolvanen@google.com>
Suggested-by: default avatarWill Drewry <wad@chromium.org>
parent 9852d85e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment