Bug 1276262

Summary: Do not collect /proc/net/cdp by networking plugin
Product: Red Hat Enterprise Linux 6 Reporter: Martin Frodl <mfrodl>
Component: sosAssignee: Shane Bradley <sbradley>
Status: CLOSED ERRATA QA Contact: Miroslav HradĂ­lek <mhradile>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7CC: agk, bmr, btotty, dkutalek, gavin, jbrassow, plambri, pmoravec, salmy, sbradley, seldridg, sos-team, tlavigne
Target Milestone: rcKeywords: Regression
Target Release: 6.6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: sos-3.2-39.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1004936
: 1290741 (view as bug list) Environment:
Last Closed: 2016-05-10 21:07:44 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: 1172231, 1274384    
Attachments:
Description Flags
Kernel module for reproducer none

Description Martin Frodl 2015-10-29 09:46:11 UTC
Created attachment 1087436 [details]
Kernel module for reproducer

To fix bug 1004936, /proc/net/cdp was added to forbidden paths in order to prevent collecting possibly gigantic files that can be present in this directory. After rebase to sos 3.2, this path is not on the blacklist anymore.

Version-Release number of selected component (if applicable):
sos-3.2-28.el6.noarch

How reproducible:
While I have not directly encountered the space consumption issue reported in the original bug, it can be shown that /proc/net/cdp is currently indeed collected by sosreport.

Steps to Reproduce:
1. Download and extract cdp.tar from attachment
2. In the extracted directory, build kernel module that creates /proc/net/cdp:
   # make
   # insmod cdp.ko
3. Run sosreport (networking module is enough):
   # sosreport -o networking --batch
4. List files contained in the resulting archive:
   # tar tvf /var/tmp/sosreport-<something>.tar.xz

Actual results:
The archive contains /proc/net/cdp and everything in it.

Expected results:
/proc/net/cdp is not collected.

Additional info:
I have not explicitly checked if /sys/net/cdp needs to be blacklisted again too, but I am sure there is a good reason to do so.

+++ This bug was initially created as a clone of Bug #1004936 +++

Comment 13 errata-xmlrpc 2016-05-10 21:07:44 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://rhn.redhat.com/errata/RHBA-2016-0819.html