Bug 1630028

Summary: networking module of sosreport loads 7 kernel modules
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Moravec <pmoravec>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav Hradílek <mhradile>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.7CC: agk, bmr, cww, fkrska, jjansky, lmiksik, mhradile, plambri, sbradley
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sos-3.8-5.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1789018 (view as bug list) Environment:
Last Closed: 2020-03-31 20:04:09 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: 1789018    

Description Pavel Moravec 2018-09-17 20:01:12 UTC
Description of problem:
Seven kernel modules can be loaded when running sosreport / its networking plugin, in particular:

tcp_diag
udp_diag
inet_diag
macsec
unix_diag
af_packet_diag
netlink_diag


Version-Release number of selected component (if applicable):
sos 3.6-9, also 3.5-9


How reproducible:
100%


Steps to Reproduce:
1. unload the 7 modules and run networking plugin of sosreport:

rmmod tcp_diag udp_diag inet_diag macsec unix_diag af_packet_diag netlink_diag
sosreport -o networking --batch --build
lsmod > lsmod.after
diff lsmod.before lsmod.after


Actual results:
1a2,8
> macsec                 35971  0 
> tcp_diag               12591  0 
> udp_diag               12801  0 
> inet_diag              18949  2 tcp_diag,udp_diag
> unix_diag              12601  0 
> af_packet_diag         12611  0 
> netlink_diag           12669  0 


Expected results:
diff is empty


Additional info:
- "macsec" kernel module is loaded by command "​ip -s macsec show"​
- other 6 are loaded by command "ss -peaonmi"

Comment 1 Pavel Moravec 2018-09-17 20:10:07 UTC
The macsec can be easily put under a simple IF statement, but "ss" is bit tricky, since calling pure "ss" loads 4 of the 6 above mentioned *_diag modules.

Comment 2 Pavel Moravec 2019-03-29 10:45:45 UTC
Since sos predicates were introduced, it should be relatively easy to finish the fix - shall be in 7.8

Comment 4 Pavel Moravec 2019-11-05 16:36:35 UTC
--allow-system-changes is missing in manpages => assigned

Comment 12 errata-xmlrpc 2020-03-31 20:04:09 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, 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/RHEA-2020:1127

Comment 13 Red Hat Bugzilla 2023-09-14 04:38:32 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days