RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1630028 - networking module of sosreport loads 7 kernel modules
Summary: networking module of sosreport loads 7 kernel modules
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sos
Version: 7.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Miroslav Hradílek
URL:
Whiteboard:
Depends On:
Blocks: 1789018
TreeView+ depends on / blocked
 
Reported: 2018-09-17 20:01 UTC by Pavel Moravec
Modified: 2023-09-14 04:38 UTC (History)
9 users (show)

Fixed In Version: sos-3.8-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1789018 (view as bug list)
Environment:
Last Closed: 2020-03-31 20:04:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos issues 1435 0 'None' closed [networking] plugin can load 7 kernel modules 2020-12-01 13:16:55 UTC
Github sosreport sos pull 1850 0 'None' closed [man] describe --allow-system-changes 2020-12-01 13:17:22 UTC
Red Hat Product Errata RHEA-2020:1127 0 None None None 2020-03-31 20:04:59 UTC

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


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