Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1471485 Details for
Bug 1609724
brick (glusterfsd) crashed at in quota_lookup
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[WIP] quota: prevent segfault in quota_lookup()
0001-WIP-quota-prevent-segfault-in-quota_lookup.patch (text/plain), 1.86 KB, created by
Niels de Vos
on 2018-07-30 09:58:24 UTC
(
hide
)
Description:
[WIP] quota: prevent segfault in quota_lookup()
Filename:
MIME Type:
Creator:
Niels de Vos
Created:
2018-07-30 09:58:24 UTC
Size:
1.86 KB
patch
obsolete
>From 74a598829b9ef97f2f3076d2e401a1e4b4f525b8 Mon Sep 17 00:00:00 2001 >From: Niels de Vos <ndevos@redhat.com> >Date: Mon, 30 Jul 2018 11:54:58 +0200 >Subject: [PATCH] [WIP] quota: prevent segfault in quota_lookup() > >This is an improvement for quota_lookup() that may prevent a segfault in >case this->private == NULL. > >If this looks sane, other calls to WIND_IF_QUOTAOFF() should be >corrected like this too. > >BUG: 1609724 >Change-Id: Id79109ec3e7f975d8e7069ef4414a3668b0622e2 >Signed-off-by: Niels de Vos <ndevos@redhat.com> >--- > xlators/features/quota/src/quota.c | 2 +- > xlators/features/quota/src/quota.h | 6 ++++-- > 2 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c >index 54414025a..628ef71c4 100644 >--- a/xlators/features/quota/src/quota.c >+++ b/xlators/features/quota/src/quota.c >@@ -1660,7 +1660,7 @@ quota_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, > > priv = this->private; > >- WIND_IF_QUOTAOFF (priv->is_quota_on, off); >+ WIND_IF_QUOTAOFF (priv && priv->is_quota_on, off); > > xattr_req = xattr_req ? dict_ref(xattr_req) : dict_new(); > if (!xattr_req) >diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h >index 9fe0e3e0a..f9f590688 100644 >--- a/xlators/features/quota/src/quota.h >+++ b/xlators/features/quota/src/quota.h >@@ -42,8 +42,10 @@ > #endif > > #define WIND_IF_QUOTAOFF(is_quota_on, label) \ >- if (!is_quota_on) \ >- goto label; >+ do { \ >+ if (!(is_quota_on)) \ >+ goto label; \ >+ } while (0) > > #define QUOTA_WIND_FOR_INTERNAL_FOP(xdata, label) \ > do { \ >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1609724
:
1471465
|
1471480
| 1471485