<div dir="ltr">new defects introduced in posix xlator.<br><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: <span dir="ltr"><<a href="mailto:scan-admin@coverity.com">scan-admin@coverity.com</a>></span><br>Date: Tue, Nov 6, 2018 at 8:44 PM<br>Subject: New Defects reported by Coverity Scan for gluster/glusterfs<br></div><br>Hi,<br>
<br>
Please find the latest report on new defect(s) introduced to gluster/glusterfs found with Coverity Scan.<br>
<br>
2 new defect(s) introduced to gluster/glusterfs found with Coverity Scan.<br>
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.<br>
<br>
New defect(s) Reported-by: Coverity Scan<br>
Showing 2 of 2 defect(s)<br>
<br>
<br>
** CID 1396581: Program hangs (LOCK)<br>
/xlators/features/locks/src/posix.c: 2952 in pl_metalk()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1396581: Program hangs (LOCK)<br>
/xlators/features/locks/src/posix.c: 2952 in pl_metalk()<br>
2946 gf_msg(this->name, GF_LOG_WARNING, EINVAL, 0,<br>
2947 "More than one meta-lock can not be granted on"<br>
2948 "the inode");<br>
2949 ret = -1;<br>
2950 }<br>
2951 }<br>
>>> CID 1396581: Program hangs (LOCK)<br>
>>> "pthread_mutex_lock" locks "pl_inode->mutex" while it is locked.<br>
2952 pthread_mutex_lock(&pl_inode->mutex);<br>
2953 <br>
2954 if (ret == -1) {<br>
2955 goto out;<br>
2956 }<br>
2957 <br>
<br>
** CID 1396580: Program hangs (LOCK)<br>
/libglusterfs/src/iobuf.c: 370 in iobuf_pool_new()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1396580: Program hangs (LOCK)<br>
/libglusterfs/src/iobuf.c: 370 in iobuf_pool_new()<br>
364 index = gf_iobuf_get_arena_index(page_size);<br>
365 if (index == -1) {<br>
366 gf_msg("iobuf", GF_LOG_ERROR, 0, LG_MSG_PAGE_SIZE_EXCEEDED,<br>
367 "page_size (%zu) of iobufs in arena being added is "<br>
368 "greater than max available",<br>
369 page_size);<br>
>>> CID 1396580: Program hangs (LOCK)<br>
>>> Returning without unlocking "iobuf_pool->mutex".<br>
370 return NULL;<br>
371 }<br>
372 <br>
373 __iobuf_pool_add_arena(iobuf_pool, page_size, num_pages, index);<br>
374 <br>
375 arena_size += page_size * num_pages;<br>
<br>
<br>
________________________________________________________________________________________________________<br>
To view the defects in Coverity Scan visit, <a href="https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBK54bFWohdObZ6wlkeK264nDC24cnLwH4MTOSDXRjQcO27-2F6DmQXPB4g4Mz-2BEJJ0-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRF-2Fj7GTDPoxcf-2B4XMSxuE0IKzpwOxTNSoVvntYrckk7boSm-2BfDbr6brN0Go6MddV5Ve8QVPSgbNWXWvZ7l1kLdk6GNEGmAZfIuiGDDWWN8sx8sq3vuMKn14pdt5Dv916hJB1YBm6se3B-2B0HzsV8OiB1EdmLAFIpB4junx8QKmFhR-2FUt5daF2sDOaZ1cRkYuqrw-3D" rel="noreferrer" target="_blank">https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBK54bFWohdObZ6wlkeK264nDC24cnLwH4MTOSDXRjQcO27-2F6DmQXPB4g4Mz-2BEJJ0-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRF-2Fj7GTDPoxcf-2B4XMSxuE0IKzpwOxTNSoVvntYrckk7boSm-2BfDbr6brN0Go6MddV5Ve8QVPSgbNWXWvZ7l1kLdk6GNEGmAZfIuiGDDWWN8sx8sq3vuMKn14pdt5Dv916hJB1YBm6se3B-2B0HzsV8OiB1EdmLAFIpB4junx8QKmFhR-2FUt5daF2sDOaZ1cRkYuqrw-3D</a><br>
<br>
To manage Coverity Scan email notifications for "<a href="mailto:atin.mukherjee83@gmail.com" target="_blank">atin.mukherjee83@gmail.com</a>", click <a href="https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4F4Na18V6TzekbRgLfnxbftCtNrSI0AdVE2H7Oze59ZO0QossEy3LBj8V8EoFBmLcCGWfAfPSpkvjpvSyEnHW4SE-2Fd5u6fIUaVdSUke9RseU-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRF-2Fj7GTDPoxcf-2B4XMSxuE0IKzpwOxTNSoVvntYrckk7br4BV1h3eau0ij-2FPQQMBwjWfb83EERG8p56mMUZaClbKCzp3OMlM3vA-2B7Ttl8BucMYLPJn8w88855lzmJEHYTRQuUCNjxuwJwiDEl33K-2BkAuTC-2BA454wNMDJ0c-2FuhgLZOKALtX5AcGsYqywXMXpLzAc-3D" rel="noreferrer" target="_blank">https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4F4Na18V6TzekbRgLfnxbftCtNrSI0AdVE2H7Oze59ZO0QossEy3LBj8V8EoFBmLcCGWfAfPSpkvjpvSyEnHW4SE-2Fd5u6fIUaVdSUke9RseU-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRF-2Fj7GTDPoxcf-2B4XMSxuE0IKzpwOxTNSoVvntYrckk7br4BV1h3eau0ij-2FPQQMBwjWfb83EERG8p56mMUZaClbKCzp3OMlM3vA-2B7Ttl8BucMYLPJn8w88855lzmJEHYTRQuUCNjxuwJwiDEl33K-2BkAuTC-2BA454wNMDJ0c-2FuhgLZOKALtX5AcGsYqywXMXpLzAc-3D</a><br>
<br>
</div></div>