Bug 2119887

Summary: device-mapper-multipath includes code with incompatible licenses
Product: Red Hat Enterprise Linux 8 Reporter: Ben Marzinski <bmarzins>
Component: device-mapper-multipathAssignee: Ben Marzinski <bmarzins>
Status: CLOSED ERRATA QA Contact: Lin Li <lilin>
Severity: high Docs Contact:
Priority: high    
Version: 8.7CC: agk, bmarzins, cwei, heinzm, msnitzer, prajnoha, zkabelac
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: device-mapper-multipath-0.8.4-27.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2119896 (view as bug list) Environment:
Last Closed: 2022-11-08 10:47:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2119896    

Description Ben Marzinski 2022-08-19 19:05:48 UTC
Description of problem:
multipathd links against readline which, since its adoption by device-mapper-multipath, has been relicensed to GPL-3+. multipathd also use code copied from the linux kernel, which is licensed GPL-2. To resolve the license incompatibility, switch from readline to libedit, which has a compatibility wrapper that makes it a drop-in replacement for readline, and a BSD license compatible with GPLv2.

Comment 3 Lin Li 2022-08-24 09:56:27 UTC
Reproduced on device-mapper-multipath-0.8.4-26.el8
[root@storageqe-05 ~]# rpm -qa | grep multipath
device-mapper-multipath-0.8.4-26.el8.x86_64
device-mapper-multipath-libs-0.8.4-26.el8.x86_64

[root@storageqe-05 ~]# ldd /sbin/multipathd | grep libreadline
	libreadline.so.7 => /lib64/libreadline.so.7 (0x00007f10eb27d000)

[root@storageqe-05 ~]# ldd /sbin/multipathd | grep libedit


Verified on device-mapper-multipath-0.8.4-27.el8
[root@storageqe-05 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.4-27.el8.x86_64
device-mapper-multipath-0.8.4-27.el8.x86_64

[root@storageqe-05 ~]# ldd /sbin/multipathd | grep libreadline

[root@storageqe-05 ~]# ldd /sbin/multipathd | grep libedit
	libedit.so.0 => /lib64/libedit.so.0 (0x00007f5bf6243000)


Test result: no longer includes libreadline and includes libedit instead

Comment 6 Lin Li 2022-08-25 02:51:41 UTC
Verified on device-mapper-multipath-0.8.4-27.el8 according to comment 3. Move to verified.

Comment 8 errata-xmlrpc 2022-11-08 10:47:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (device-mapper-multipath bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7714