HomeFreeBSD

PPC get_user workaround

Description

PPC get_user workaround

Linux 5.12 PPC 5.12 get_user() and copy_from_user_inatomic()
inline helpers very indirectly include a reference to the GPL'd
array mmu_feature_keys[] and fails to build. Workaround this by
using copy_from_user() and throwing EFAULT for any calls to
copy_from_user_inatomic(). This is a workaround until a fix
for Linux commit 7613f5a66becfd0e43a0f34de8518695888f5458
"powerpc/64s/kuap: Use mmu_has_feature()" is fully addressed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Authored-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #11958
Closes #12590
Closes #13367

Details

Provenance
Damian Szuberski <szuberskidamian@gmail.com>Authored on Apr 26 2022, 5:52 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 20 2022, 5:33 PM
Parents
rG60fc173251a7: Adding ZERO_PAGE detection
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG13b1f336d33c: PPC get_user workaround (authored by Damian Szuberski <szuberskidamian@gmail.com>).May 20 2022, 5:33 PM