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
GitHub <noreply@github.com>Committed on Apr 26 2022, 5:52 PM
Parents
rGa0dfd98a25b5: autoconf: Pretend `CONFIG_MODULES` is always on
Branches
Unknown
Tags
Unknown