Fwd: New Defects reported by Coverity Scan for gluster/glusterfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Write behind related changes introduced new defects.

---------- Forwarded message ---------
From: <scan-admin@xxxxxxxxxxxx>
Date: Fri, 12 Oct 2018 at 20:43
Subject: New Defects reported by Coverity Scan for gluster/glusterfs
To: <atin.mukherjee83@xxxxxxxxx>


Hi,

Please find the latest report on new defect(s) introduced to gluster/glusterfs found with Coverity Scan.

2 new defect(s) introduced to gluster/glusterfs found with Coverity Scan.
3 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1396102:  Null pointer dereferences  (NULL_RETURNS)
/xlators/performance/write-behind/src/write-behind.c: 2474 in wb_mark_readdirp_start()


________________________________________________________________________________________________________
*** CID 1396102:  Null pointer dereferences  (NULL_RETURNS)
/xlators/performance/write-behind/src/write-behind.c: 2474 in wb_mark_readdirp_start()
2468     wb_mark_readdirp_start(xlator_t *this, inode_t *directory)
2469     {
2470         wb_inode_t *wb_directory_inode = NULL;
2471     
2472         wb_directory_inode = wb_inode_create(this, directory);
2473     
>>>     CID 1396102:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a null pointer "wb_directory_inode".
2474         if (!wb_directory_inode->lock.spinlock)
2475             return;
2476     
2477         LOCK(&wb_directory_inode->lock);
2478         {
2479             GF_ATOMIC_INC(wb_directory_inode->readdirps);

** CID 1396101:  Null pointer dereferences  (NULL_RETURNS)
/xlators/performance/write-behind/src/write-behind.c: 2494 in wb_mark_readdirp_end()


________________________________________________________________________________________________________
*** CID 1396101:  Null pointer dereferences  (NULL_RETURNS)
/xlators/performance/write-behind/src/write-behind.c: 2494 in wb_mark_readdirp_end()
2488     {
2489         wb_inode_t *wb_directory_inode = NULL, *wb_inode = NULL, *tmp = NULL;
2490         int readdirps = 0;
2491     
2492         wb_directory_inode = wb_inode_ctx_get(this, directory);
2493     
>>>     CID 1396101:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a null pointer "wb_directory_inode".
2494         if (!wb_directory_inode->lock.spinlock)
2495             return;
2496     
2497         LOCK(&wb_directory_inode->lock);
2498         {
2499             readdirps = GF_ATOMIC_DEC(wb_directory_inode->readdirps);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBK54bFWohdObZ6wlkeK264nDC24cnLwH4MTOSDXRjQcO27-2F6DmQXPB4g4Mz-2BEJJ0-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRGI3dzUd2Ukeqo7jOkDVtDwdofsVY7aGvZQg7zRE31MpIpZfuKb72GMUDqgUubcYrIu5oXcyupFTk-2BbhUXFdLHUSfe4AbOPNeG8BbDwGUW1v07zqQu8VKIaMFyP-2BoYbiYsfmt7-2FPg8uG5gutfCHZL61I0rptYdI3rhGJ6h55uDbGL4twf-2Fi-2F-2FuWXuVz4tE-2BiLw-3D

  To manage Coverity Scan email notifications for "atin.mukherjee83@xxxxxxxxx", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4F4Na18V6TzekbRgLfnxbftCtNrSI0AdVE2H7Oze59ZO0QossEy3LBj8V8EoFBmLcCGWfAfPSpkvjpvSyEnHW4SE-2Fd5u6fIUaVdSUke9RseU-3D_MGdSxOtVesORpvKsy8XkEUz8gK23WuwInCh-2FVRcDCRGI3dzUd2Ukeqo7jOkDVtDwdofsVY7aGvZQg7zRE31MpHd29gt9gjsKh3qRlC2RNFOu5d1QLlY3kA1t3-2BZa7JxqLa9L0-2FbeQCY21g0-2BWD9nj7BVPc7SCSBZSdLtNp0BxH2zEpj2wcPymqs8Yua6j-2FpBNb5CGYrqE-2F1elotYuozHtizG6MZ7T8-2FFr6hkCGYystU-3D

--
--Atin
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-devel

[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux