Bug 1801684 - Memory corruption when glfs_init() is called after glfs_fini()
Summary: Memory corruption when glfs_init() is called after glfs_fini()
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Xavi Hernandez
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1796628 1800703 1805668 1805671
TreeView+ depends on / blocked
 
Reported: 2020-02-11 13:22 UTC by Xavi Hernandez
Modified: 2020-03-03 09:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1805668 1805671 (view as bug list)
Environment:
Last Closed: 2020-02-19 16:43:07 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gluster.org Gerrit 24099 0 None Merged core: fix memory pool management races 2020-02-18 17:30:23 UTC
Gluster.org Gerrit 24138 0 None Merged core: Prevent crash on process termination 2020-02-19 16:43:06 UTC

Description Xavi Hernandez 2020-02-11 13:22:47 UTC
Description of problem:

When a process calls glfs_fini(), some memory management structures are destroyed. However the process might not finish after that. In that case, a new call to glfs_init() won't fully reinitialize all structures for already running threads, which can lead to memory corruption and crashes.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2020-02-11 13:29:48 UTC
REVIEW: https://review.gluster.org/24099 (core: fix memory pool management races) posted (#8) for review on master by Xavi Hernandez

Comment 2 Worker Ant 2020-02-18 17:30:24 UTC
REVIEW: https://review.gluster.org/24099 (core: fix memory pool management races) merged (#9) on master by Xavi Hernandez

Comment 3 Worker Ant 2020-02-19 11:32:30 UTC
REVIEW: https://review.gluster.org/24138 (core: Prevent crash on process termination) posted (#1) for review on master by Xavi Hernandez

Comment 4 Worker Ant 2020-02-19 16:43:07 UTC
REVIEW: https://review.gluster.org/24138 (core: Prevent crash on process termination) merged (#1) on master by Xavi Hernandez


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