Bug 18759 - OpenAFS versions below 1.6.18 are broken on kernel 4.4 and up
Summary: OpenAFS versions below 1.6.18 are broken on kernel 4.4 and up
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory mga5-64-ok
Keywords: validated_update
Depends on: 18726
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-22 06:06 CEST by Ben Rosser
Modified: 2016-07-05 17:47 CEST (History)
3 users (show)

See Also:
Source RPM: openafs-1.6.17-1.mga5
CVE:
Status comment:


Attachments

Description Ben Rosser 2016-06-22 06:06:47 CEST
Description of problem: Kernel 4.4 seems to have landed in Mageia recently. Unfortunately, OpenAFS has major breakage for kernel 4.4 that was only fixed in openafs 1.6.18 (see https://www.openafs.org/frameset/dl/openafs/1.6.18/RELNOTES-1.6.18). This means that the kernel module libafs.ko will not build on 4.4, and thus, AFS is not usable.

Mageia 5 currently ships AFS 1.6.17. When my laptop's kernel updated, the AFS dkms package attempted to rebuild libafs.ko, but failed.

It'd be great if 1.6.18, or at least the upstream patches to fix this, could be backported to Mageia 5. Looking through the Mageia package database (https://madb.mageia.org/default/home/application/0), it doesn't look like that's happened yet, so I figured that I would file a bug.


Version-Release number of selected component (if applicable): openafs 1.6.17, kernel 4.4+


How reproducible: Always.


Steps to Reproduce:
1. Install Mageia, update to kernel 4.4.
2. Try to install openafs.
3. Attempt to build and modprobe the libafs kernel module.
Comment 1 Thomas Backlund 2016-06-22 18:08:16 CEST
Please tru openafs-1.6.18-1.1.mga5 when it lands in core updates_testing

Advisory:
Updated openafs adds support for 4.4 series kernels

This update provides an update to 1.6.18 that adds support
for 4.4 series kernels.

For other fixes in this update, see the referenced changelog.


References:
https://www.openafs.org/frameset/dl/openafs/1.6.18/RELNOTES-1.6.18





SRPMS:
openafs-1.6.18-1.1.mga5.src.rpm

i586:
dkms-libafs-1.6.18-1.1.mga5.noarch.rpm
libopenafs1-1.6.18-1.1.mga5.i586.rpm
libopenafs-devel-1.6.18-1.1.mga5.i586.rpm
libopenafs-static-devel-1.6.18-1.1.mga5.i586.rpm
openafs-1.6.18-1.1.mga5.i586.rpm
openafs-client-1.6.18-1.1.mga5.i586.rpm
openafs-doc-1.6.18-1.1.mga5.noarch.rpm
openafs-server-1.6.18-1.1.mga5.i586.rpm

x86_64:
dkms-libafs-1.6.18-1.1.mga5.noarch.rpm
lib64openafs1-1.6.18-1.1.mga5.x86_64.rpm
lib64openafs-devel-1.6.18-1.1.mga5.x86_64.rpm
lib64openafs-static-devel-1.6.18-1.1.mga5.x86_64.rpm
openafs-1.6.18-1.1.mga5.x86_64.rpm
openafs-client-1.6.18-1.1.mga5.x86_64.rpm
openafs-doc-1.6.18-1.1.mga5.noarch.rpm
openafs-server-1.6.18-1.1.mga5.x86_64.rpm

CC: (none) => tmb
Depends on: (none) => 18726
Assignee: bugsquad => qa-bugs

Comment 2 claire robinson 2016-06-22 19:04:18 CEST
Testing mga5 64

Just checking the dkms build. Still a bad exit status cleaning the build area but it doesn't seem to matter. Build time down to ~5mins with new dkms.

Ben please test it functions as expected too. Thanks.


# urpmi dkms-libafs

installing dkms-libafs-1.6.18-1.1.mga5.noarch.rpm from /var/cache/urpmi/rpms                                      
Preparing...                     ################################################################################
      1/1: dkms-libafs           ################################################################################

Creating symlink /var/lib/dkms/libafs/1.6.18-1.1.mga5/source ->
                 /usr/src/libafs-1.6.18-1.1.mga5

DKMS: add Completed.

Preparing kernel 4.4.13-desktop-1.mga5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.....
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....(bad exit status: 2)
SMP=SP; eval `grep CONFIG_SMP /boot/config-4.4.13-desktop-1.mga5`; [ -n "$CONFIG_SMP" ] && SMP=MP; ./configure --with-linux-kernel-headers=/lib/modules/4.4.13-desktop-1.mga5/build; make -j4 MPS=$SMP; mv src/libafs/MODLOAD-*/libafs.ko ........................................................................................
cleaning build area....
cleaning kernel tree (make mrproper).....

DKMS: build Completed.

libafs.ko.xz:
 - Installation
   - Installing to /lib/modules/4.4.13-desktop-1.mga5/dkms/3rdparty/libafs//

depmod.....

DKMS: install Completed.



# dkms status -m libafs
libafs, 1.6.18-1.1.mga5, 4.4.13-desktop-1.mga5, x86_64: installed

Whiteboard: (none) => mga5-64-ok

Comment 3 claire robinson 2016-06-22 19:09:12 CEST
Advisory uploaded.

Whiteboard: mga5-64-ok => advisory mga5-64-ok

Comment 4 Ben Rosser 2016-06-22 23:37:00 CEST
Seems to work just fine, thanks for the quick fix!
Dave Hodgins 2016-07-05 17:04:47 CEST

Keywords: (none) => validated_update
CC: (none) => davidwhodgins, sysadmin-bugs

Comment 5 Mageia Robot 2016-07-05 17:47:59 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGAA-2016-0098.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.