Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: brick process is getting SIGSEGV during inode_unref #4302

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

mohit84
Copy link
Contributor

@mohit84 mohit84 commented Jan 30, 2024

The brick process is getting crashed due to stack overflow while unref namespace inode, the ns inode
was introduced by the patch ((#1763)

Solution: __inode_destroy is calling inode_unref that is again calling inode_unref become a
recursive call and eventually a brick process is getting crashed. To avoid a crash for namespace
inode call only __inode_ref.

Fixes: #4295
Change-Id: If5deb06b726a5e7dfedd2784bddcef81e6e5d7d9

The brick process is getting crashed due to stack overflow
while unref namespace inode, the ns inode was introduced by
the patch ((gluster#1763)

Solution: __inode_destroy is calling inode_unref that is again
calling inode_unref become a recursive call and eventually a
brick process is getting crashed. To avoid a crash for namespace
inode call only __inode_ref.

Fixes: gluster#4295
Change-Id: If5deb06b726a5e7dfedd2784bddcef81e6e5d7d9
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
@mohit84
Copy link
Contributor Author

mohit84 commented Jan 30, 2024

/run regression

@mohit84
Copy link
Contributor Author

mohit84 commented Jan 30, 2024

recheck smoke

@mohit84 mohit84 merged commit da2391d into gluster:devel Feb 1, 2024
9 of 11 checks passed
mohit84 added a commit to mohit84/glusterfs that referenced this pull request Feb 1, 2024
The brick process is getting crashed due to stack overflow
while unref namespace inode, the ns inode was introduced by
the patch ((gluster#1763)

Solution: __inode_destroy is calling inode_unref that is again
calling inode_unref become a recursive call and eventually a
brick process is getting crashed. To avoid a crash for namespace
inode call only __inode_ref.

> Fixes: gluster#4295
> Change-Id: If5deb06b726a5e7dfedd2784bddcef81e6e5d7d9
> Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
> (Cherry picked from commit 80ecbba)
> (Reviewed on upstream link gluster#4302)

Fixes: gluster#4295
Change-Id: If5deb06b726a5e7dfedd2784bddcef81e6e5d7d9
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants