diff options
author | Andrew Donnellan <ajd@linux.ibm.com> | 2022-06-14 23:49:52 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-06-18 10:19:10 +1000 |
commit | 7bc08056a6dabc3a1442216daf527edf61ac24b6 (patch) | |
tree | efeffbfd128740c763008593008a9c9703ff33dd /drivers | |
parent | ec6d0dde71d760aa60316f8d1c9a1b0d99213529 (diff) | |
download | linux-7bc08056a6dabc3a1442216daf527edf61ac24b6.tar.bz2 |
powerpc/rtas: Allow ibm,platform-dump RTAS call with null buffer address
Add a special case to block_rtas_call() to allow the ibm,platform-dump RTAS
call through the RTAS filter if the buffer address is 0.
According to PAPR, ibm,platform-dump is called with a null buffer address
to notify the platform firmware that processing of a particular dump is
finished.
Without this, on a pseries machine with CONFIG_PPC_RTAS_FILTER enabled, an
application such as rtas_errd that is attempting to retrieve a dump will
encounter an error at the end of the retrieval process.
Fixes: bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace")
Cc: stable@vger.kernel.org
Reported-by: Sathvika Vasireddy <sathvika@linux.ibm.com>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Reviewed-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220614134952.156010-1-ajd@linux.ibm.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions