openafs-modules-dkms: build failure on hirsute with kernel 5.11

Bug #1915854 reported by Andrea Righi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openafs (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Confirmed
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

Linux 5.11 removed TIF_IA32 with commit 8d71d2bf6efec ("x86: Reclaim TIF_IA32 and TIF_X32"), this flag is used by openafs to determine if the task is handling a syscall request from a 32 bit process, so building against a 5.11 kernel results in a build failure.

[Test case]

Install openafs-modules-dkms.

[Fix]

Apply the following openafs' upstream commits:

  32cc6b0796495e596262d84c428172a511f757c4 ("Linux: Refactor test for 32bit compat")
  78ef922612bef5f5fd6904896e84b9d2ea802404 ("Linux 5.11: Test 32bit compat with in_compat_syscall")

In this way we are not relying anymore on TIF_IA32 and instead we use the function in_compat_syscall() introdueed in Linux 4.6, as a preferred method to determine if a syscall needs to handle a compatible call (e.g., 32-bit binaries).

[Regression potential]

This change might break the build of kernels that are missing in_compat_syscall(), but this is unlikely to happen with recent kernels, since this function has been introduced in Linux 4.6 (and it's available on all architectures).

Revision history for this message
Andrea Righi (arighi) wrote :

openafs builds correctly with the attached debdiff.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openafs - 1.8.6-5ubuntu1

---------------
openafs (1.8.6-5ubuntu1) hirsute; urgency=medium

  * Support linux 5.11 (LP: #1915854):
    - debian/patches/0020-Linux-Refactor-test-for-32bit-compat.patch
    - debian/patches/0021-Linux-5.11-Test-32bit-compat-with-in_compat_syscall.patch

 -- Andrea Righi <email address hidden> Tue, 16 Feb 2021 17:12:48 +0000

Changed in openafs (Ubuntu Hirsute):
status: New → Fix Released
tags: added: rls-ff-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openafs (Ubuntu Focal):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.