All of lore.kernel.org
 help / color / mirror / Atom feed
From: scan-admin@coverity.com
To: ceph-devel@vger.kernel.org
Subject: New Defects reported by Coverity Scan for ceph
Date: Fri, 24 Oct 2014 10:55:52 -0700	[thread overview]
Message-ID: <544a92a83b3e7_4426b55338883e1@scan.coverity.com.mail> (raw)


Hi,

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

26 new defect(s) introduced to ceph found with Coverity Scan.
114 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 20 of 26 defect(s)


** CID 717128:  Wrong sizeof argument  (SIZEOF_MISMATCH)
/test/librbd/test_librbd.cc: 228 in test_ls(void *, unsigned long, ...)()

** CID 717147:  Uncaught exception  (UNCAUGHT_EXCEPT)
/ceph_mds.cc: 141 in main()

** CID 717246:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/events/EMetaBlob.h: 204 in EMetaBlob::nullbit::nullbit(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, snapid_t, snapid_t, unsigned long, bool)()

** CID 717248:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/events/EMetaBlob.h: 168 in EMetaBlob::remotebit::remotebit(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, snapid_t, snapid_t, unsigned long, inodeno_t, unsigned char, bool)()

** CID 717264:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MClientReply.h: 129 in InodeStat::InodeStat()()

** CID 717270:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MDirUpdate.h: 55 in MDirUpdate::MDirUpdate(int, dirfrag_t, int, std::set<int, std::less<int>, std::allocator<int>> &, filepath &, bool)()

** CID 717275:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MExportDirDiscover.h: 36 in MExportDirDiscover::MExportDirDiscover()()

** CID 717289:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MMDSLoadTargets.h: 30 in MMDSLoadTargets::MMDSLoadTargets()()

** CID 1026810:  Uninitialized pointer field  (UNINIT_CTOR)
/mds/MDCache.h: 332 in MDCache::umaster::umaster()()

** CID 1026811:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/events/EMetaBlob.h: 107 in EMetaBlob::fullbit::fullbit(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, snapid_t, snapid_t, unsigned long, const inode_t &, const fragtree_t &, const std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, ceph::buffer::ptr, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, ceph::buffer::ptr>>> &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, const ceph::buffer::list &, unsigned char, std::map<snapid_t, old_inode_t, std::less<snapid_t>, std::allocator<std::pair<const snapid_t, old_inode_t>>>*)()

** CID 1128407:  Dereference before null check  (REVERSE_INULL)
/client/Client.cc: 5180 in Client::_readdir_get_frag(dir_result_t *)()

** CID 1128412:  Resource leak  (RESOURCE_LEAK)
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()

** CID 1160849:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/CDir.cc: 1447 in C_Dir_OMAP_Fetched::C_Dir_OMAP_Fetched(CDir *, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)()

** CID 1188129:  Logically dead code  (DEADCODE)
/client/Client.cc: 8504 in Client::ll_write_block(Inode *, unsigned long, char *, unsigned long, unsigned long, ceph_file_layout *, unsigned long, unsigned int)()

** CID 1188130:  Logically dead code  (DEADCODE)
/client/Client.cc: 8500 in Client::ll_write_block(Inode *, unsigned long, char *, unsigned long, unsigned long, ceph_file_layout *, unsigned long, unsigned int)()

** CID 1192611:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()

** CID 1192612:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_dump.cc: 1076 in main()

** CID 1192613:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()

** CID 1192614:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_tool.cc: 48 in main()

** CID 1201374:  Unchecked return value  (CHECKED_RETURN)
/mon/MDSMonitor.cc: 1097 in MDSMonitor::prepare_command(MMonCommand *)()


________________________________________________________________________________________________________
*** CID 717128:  Wrong sizeof argument  (SIZEOF_MISMATCH)
/test/librbd/test_librbd.cc: 228 in test_ls(void *, unsigned long, ...)()
222     {
223       int num_images, i, j;
224       char *names, *cur_name;
225       va_list ap;
226       size_t max_size = 1024;
227     
>>>     CID 717128:  Wrong sizeof argument  (SIZEOF_MISMATCH)
>>>     Passing argument "8192UL /* sizeof (char *) * 1024 */" to function "malloc" and then casting the return value to "char *" is suspicious.
228       names = (char *) malloc(sizeof(char *) * 1024);
229       int len = rbd_list(io_ctx, names, &max_size);
230     
231       for (i = 0, num_images = 0, cur_name = names; cur_name < names + len; i++) {
232         printf("image: %s\n", cur_name);
233         cur_name += strlen(cur_name) + 1;

________________________________________________________________________________________________________
*** CID 717147:  Uncaught exception  (UNCAUGHT_EXCEPT)
/ceph_mds.cc: 141 in main()
135     static void handle_mds_signal(int signum)
136     {
137       if (mds)
138         mds->handle_signal(signum);
139     }
140     
>>>     CID 717147:  Uncaught exception  (UNCAUGHT_EXCEPT)
>>>     In function "main(int, char const **)" an exception of type "ceph::buffer::end_of_buffer" is thrown and never caught.
141     int main(int argc, const char **argv) 
142     {
143       vector<const char*> args;
144       argv_to_vec(argc, argv, args);
145       env_to_vec(args);
146     

________________________________________________________________________________________________________
*** CID 717246:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/events/EMetaBlob.h: 204 in EMetaBlob::nullbit::nullbit(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, snapid_t, snapid_t, unsigned long, bool)()
198           _enc(128) {
199           ::encode(d, _enc);
200           ::encode(df, _enc);
201           ::encode(dl, _enc);
202           ::encode(v, _enc);
203           ::encode(dr, _enc);
>>>     CID 717246:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "dirty" is not initialized in this constructor nor in any functions that it calls.
204         }
205         nullbit(bufferlist::iterator &p) { decode(p); }
206         nullbit(): dnfirst(0), dnlast(0), dnv(0), dirty(false) {}
207     
208         void encode(bufferlist& bl) const;
209         void decode(bufferlist::iterator &bl);

________________________________________________________________________________________________________
*** CID 717248:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/events/EMetaBlob.h: 168 in EMetaBlob::remotebit::remotebit(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, snapid_t, snapid_t, unsigned long, inodeno_t, unsigned char, bool)()
162           ::encode(df, _enc);
163           ::encode(dl, _enc);
164           ::encode(v, _enc);
165           ::encode(i, _enc);
166           ::encode(dt, _enc);
167           ::encode(dr, _enc);
>>>     CID 717248:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "dirty" is not initialized in this constructor nor in any functions that it calls.
168         }
169         remotebit(bufferlist::iterator &p) { decode(p); }
170         remotebit(): dnfirst(0), dnlast(0), dnv(0), ino(0),
171     	d_type('\0'), dirty(false) {}
172     
173         void encode(bufferlist& bl) const;

________________________________________________________________________________________________________
*** CID 717264:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MClientReply.h: 129 in InodeStat::InodeStat()()
123     
124       ceph_dir_layout dir_layout;
125     
126       //map<string, bufferptr> xattrs;
127     
128      public:
>>>     CID 717264:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member field "dir_layout.dl_unused3" is not initialized in this constructor nor in any functions that it calls.
129       InodeStat() {}
130       InodeStat(bufferlist::iterator& p, uint64_t features) {
131         decode(p, features);
132       }
133     
134       void decode(bufferlist::iterator &p, uint64_t features) {

________________________________________________________________________________________________________
*** CID 717270:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MDirUpdate.h: 55 in MDirUpdate::MDirUpdate(int, dirfrag_t, int, std::set<int, std::less<int>, std::allocator<int>> &, filepath &, bool)()
49         this->from_mds = f;
50         this->dirfrag = dirfrag;
51         this->dir_rep = dir_rep;
52         this->dir_rep_by = dir_rep_by;
53         if (discover) this->discover = 5;
54         this->path = path;
>>>     CID 717270:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "discover" is not initialized in this constructor nor in any functions that it calls.
55       }
56     private:
57       ~MDirUpdate() {}
58     
59     public:
60       const char *get_type_name() const { return "dir_update"; }

________________________________________________________________________________________________________
*** CID 717275:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MExportDirDiscover.h: 36 in MExportDirDiscover::MExportDirDiscover()()
30       filepath& get_path() { return path; }
31     
32       bool started;
33     
34       MExportDirDiscover() :     
35         Message(MSG_MDS_EXPORTDIRDISCOVER),
>>>     CID 717275:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "from" is not initialized in this constructor nor in any functions that it calls.
36         started(false) { }
37       MExportDirDiscover(dirfrag_t df, filepath& p, int f, uint64_t tid) :
38         Message(MSG_MDS_EXPORTDIRDISCOVER),
39         from(f), dirfrag(df), path(p), started(false) {
40         set_tid(tid);
41       }

________________________________________________________________________________________________________
*** CID 717289:  Uninitialized scalar field  (UNINIT_CTOR)
/messages/MMDSLoadTargets.h: 30 in MMDSLoadTargets::MMDSLoadTargets()()
24     
25     class MMDSLoadTargets : public PaxosServiceMessage {
26      public:
27       uint64_t global_id;
28       set<int32_t> targets;
29     
>>>     CID 717289:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "global_id" is not initialized in this constructor nor in any functions that it calls.
30       MMDSLoadTargets() : PaxosServiceMessage(MSG_MDS_OFFLOAD_TARGETS, 0) {}
31     
32       MMDSLoadTargets(uint64_t g, set<int32_t>& mds_targets) :
33         PaxosServiceMessage(MSG_MDS_OFFLOAD_TARGETS, 0),
34         global_id(g), targets(mds_targets) {}
35     private:

________________________________________________________________________________________________________
*** CID 1026810:  Uninitialized pointer field  (UNINIT_CTOR)
/mds/MDCache.h: 332 in MDCache::umaster::umaster()()
326         set<int> slaves;
327         LogSegment *ls;
328         list<Context*> waiters;
329         bool safe;
330         bool committing;
331         bool recovering;
>>>     CID 1026810:  Uninitialized pointer field  (UNINIT_CTOR)
>>>     Non-static class member "safe" is not initialized in this constructor nor in any functions that it calls.
332         umaster() : committing(false), recovering(false) {}
333       };
334       map<metareqid_t, umaster>                 uncommitted_masters;         // master: req -> slave set
335     
336       set<metareqid_t>		pending_masters;
337       map<int, set<metareqid_t> >	ambiguous_slave_updates;

________________________________________________________________________________________________________
*** CID 1026811:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/events/EMetaBlob.h: 107 in EMetaBlob::fullbit::fullbit(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, snapid_t, snapid_t, unsigned long, const inode_t &, const fragtree_t &, const std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, ceph::buffer::ptr, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, ceph::buffer::ptr>>> &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, const ceph::buffer::list &, unsigned char, std::map<snapid_t, old_inode_t, std::less<snapid_t>, std::allocator<std::pair<const snapid_t, old_inode_t>>>*)()
101     	::encode(sbl, _enc);
102           }
103           ::encode(st, _enc);
104           ::encode(oi ? true : false, _enc);
105           if (oi)
106     	::encode(*oi, _enc);
>>>     CID 1026811:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "state" is not initialized in this constructor nor in any functions that it calls.
107         }
108         fullbit(bufferlist::iterator &p) {
109           decode(p);
110         }
111         fullbit() {}
112         ~fullbit() {}

________________________________________________________________________________________________________
*** CID 1128407:  Dereference before null check  (REVERSE_INULL)
/client/Client.cc: 5180 in Client::_readdir_get_frag(dir_result_t *)()
5174       
5175       ldout(cct, 10) << "_readdir_get_frag " << dirp << " on " << dirp->inode->ino << " fg " << fg
5176     	   << " next_offset " << dirp->next_offset
5177     	   << dendl;
5178     
5179       int op = CEPH_MDS_OP_READDIR;
>>>     CID 1128407:  Dereference before null check  (REVERSE_INULL)
>>>     Null-checking "dirp->inode" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
5180       if (dirp->inode && dirp->inode->snapid == CEPH_SNAPDIR)
5181         op = CEPH_MDS_OP_LSSNAP;
5182     
5183       Inode *diri = dirp->inode;
5184     
5185       MetaRequest *req = new MetaRequest(op);

________________________________________________________________________________________________________
*** CID 1128412:  Resource leak  (RESOURCE_LEAK)
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
164           goto done;
165         }
166         if (ret < 0)
167           goto done;
168     
169         string last_pool;
>>>     CID 1128412:  Resource leak  (RESOURCE_LEAK)
>>>     Overwriting "ctx" in "ctx = new librados::IoCtx" leaks the storage that "ctx" points to.
170         ctx = new IoCtx;
171         std::list<cls_rgw_gc_obj_info>::iterator iter;
172         for (iter = entries.begin(); iter != entries.end(); ++iter) {
173           bool remove_tag;
174           cls_rgw_gc_obj_info& info = *iter;
175           std::list<cls_rgw_obj>::iterator liter;
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
164           goto done;
165         }
166         if (ret < 0)
167           goto done;
168     
169         string last_pool;
>>>     CID 1128412:  Resource leak  (RESOURCE_LEAK)
>>>     Overwriting "ctx" in "ctx = new librados::IoCtx" leaks the storage that "ctx" points to.
170         ctx = new IoCtx;
171         std::list<cls_rgw_gc_obj_info>::iterator iter;
172         for (iter = entries.begin(); iter != entries.end(); ++iter) {
173           bool remove_tag;
174           cls_rgw_gc_obj_info& info = *iter;
175           std::list<cls_rgw_obj>::iterator liter;
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
164           goto done;
165         }
166         if (ret < 0)
167           goto done;
168     
169         string last_pool;
>>>     CID 1128412:  Resource leak  (RESOURCE_LEAK)
>>>     Overwriting "ctx" in "ctx = new librados::IoCtx" leaks the storage that "ctx" points to.
170         ctx = new IoCtx;
171         std::list<cls_rgw_gc_obj_info>::iterator iter;
172         for (iter = entries.begin(); iter != entries.end(); ++iter) {
173           bool remove_tag;
174           cls_rgw_gc_obj_info& info = *iter;
175           std::list<cls_rgw_obj>::iterator liter;
/rgw/rgw_gc.cc: 170 in RGWGC::process(int, int)()
164           goto done;
165         }
166         if (ret < 0)
167           goto done;
168     
169         string last_pool;
>>>     CID 1128412:  Resource leak  (RESOURCE_LEAK)
>>>     Overwriting "ctx" in "ctx = new librados::IoCtx" leaks the storage that "ctx" points to.
170         ctx = new IoCtx;
171         std::list<cls_rgw_gc_obj_info>::iterator iter;
172         for (iter = entries.begin(); iter != entries.end(); ++iter) {
173           bool remove_tag;
174           cls_rgw_gc_obj_info& info = *iter;
175           std::list<cls_rgw_obj>::iterator liter;

________________________________________________________________________________________________________
*** CID 1160849:  Uninitialized scalar field  (UNINIT_CTOR)
/mds/CDir.cc: 1447 in C_Dir_OMAP_Fetched::C_Dir_OMAP_Fetched(CDir *, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)()
1441       string want_dn;
1442      public:
1443       bufferlist hdrbl;
1444       map<string, bufferlist> omap;
1445       int ret1, ret2;
1446     
>>>     CID 1160849:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "ret2" is not initialized in this constructor nor in any functions that it calls.
1447       C_Dir_OMAP_Fetched(CDir *d, const string& w) : dir(d), want_dn(w) { }
1448       void finish(int r) {
1449         if (r >= 0) r = ret1;
1450         if (r >= 0) r = ret2;
1451         dir->_omap_fetched(hdrbl, omap, want_dn, r);
1452       }

________________________________________________________________________________________________________
*** CID 1188129:  Logically dead code  (DEADCODE)
/client/Client.cc: 8504 in Client::ll_write_block(Inode *, unsigned long, char *, unsigned long, unsigned long, ceph_file_layout *, unsigned long, unsigned int)()
8498         while (! done)
8499           cond.Wait(flock);
8500         flock.Unlock();
8501       }
8502     
8503       if (r < 0) {
>>>     CID 1188129:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "return r;".
8504           return r;
8505       } else {
8506           return length;
8507       }
8508     }
8509     

________________________________________________________________________________________________________
*** CID 1188130:  Logically dead code  (DEADCODE)
/client/Client.cc: 8500 in Client::ll_write_block(Inode *, unsigned long, char *, unsigned long, unsigned long, ceph_file_layout *, unsigned long, unsigned int)()
8494     
8495       client_lock.Unlock();
8496       if (!done /* also !sync */) {
8497         flock.Lock();
8498         while (! done)
8499           cond.Wait(flock);
>>>     CID 1188130:  Logically dead code  (DEADCODE)
>>>     Execution cannot reach this statement "flock.Unlock();".
8500         flock.Unlock();
8501       }
8502     
8503       if (r < 0) {
8504           return r;
8505       } else {

________________________________________________________________________________________________________
*** CID 1192611:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()
/tools/ceph_filestore_dump.cc: 1076 in main()

________________________________________________________________________________________________________
*** CID 1192612:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_dump.cc: 1076 in main()

________________________________________________________________________________________________________
*** CID 1192613:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()
/tools/ceph_filestore_tool.cc: 48 in main()

________________________________________________________________________________________________________
*** CID 1192614:  Uncaught exception  (UNCAUGHT_EXCEPT)
/tools/ceph_filestore_tool.cc: 48 in main()

________________________________________________________________________________________________________
*** CID 1201374:  Unchecked return value  (CHECKED_RETURN)
/mon/MDSMonitor.cc: 1097 in MDSMonitor::prepare_command(MMonCommand *)()
1091           r = -EINVAL;
1092           poolid = -1;
1093           ss << "cannot remove default data pool";
1094         }
1095     
1096         if (poolid >= 0) {
>>>     CID 1201374:  Unchecked return value  (CHECKED_RETURN)
>>>     Calling "cmd_getval" without checking return value (as is done elsewhere 22 out of 25 times).
1097           cmd_getval(g_ceph_context, cmdmap, "poolid", poolid);
1098           r = pending_mdsmap.remove_data_pool(poolid);
1099           if (r == -ENOENT)
1100     	r = 0;
1101           if (r == 0)
1102     	ss << "removed data pool " << poolid << " from mdsmap";


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/25?tab=overview

To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py




             reply	other threads:[~2014-10-24 17:55 UTC|newest]

Thread overview: 124+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 17:55 scan-admin [this message]
2014-10-24 17:59 ` New Defects reported by Coverity Scan for ceph Sage Weil
  -- strict thread matches above, loose matches on Subject: below --
2022-08-20 12:22 scan-admin
2022-08-20 13:17 ` Jeff Layton
2022-08-22  3:54   ` Brad Hubbard
2022-08-23 12:52     ` Jeff Layton
2018-01-04  3:32 scan-admin
2017-12-28  1:57 scan-admin
2017-12-21  1:54 scan-admin
2017-12-21  3:34 ` Jos Collin
2017-12-21  4:03   ` Brad Hubbard
2017-12-14  6:49 scan-admin
2017-12-01  2:25 scan-admin
2017-11-23  0:19 scan-admin
2017-11-16 11:35 scan-admin
2017-11-09 11:36 scan-admin
2017-11-02  2:11 scan-admin
2017-10-27  0:31 scan-admin
2017-10-19  3:54 scan-admin
2017-10-12  5:54 scan-admin
2017-10-05  5:08 scan-admin
2017-09-28  5:09 scan-admin
2017-09-21  6:44 scan-admin
2017-09-14  7:19 scan-admin
2017-09-07  5:08 scan-admin
2017-08-31  6:39 scan-admin
2017-08-24 23:32 scan-admin
2017-08-17  3:29 scan-admin
2017-08-10  3:50 scan-admin
2017-08-03  4:57 scan-admin
2017-07-27  3:50 scan-admin
2017-07-28 18:42 ` Gregory Farnum
2017-07-28 22:22   ` Brad Hubbard
2017-07-20  4:08 scan-admin
2017-07-13  5:11 scan-admin
2017-07-06  5:03 scan-admin
2017-06-29  4:08 scan-admin
2017-06-22  4:27 scan-admin
2017-06-15  9:50 scan-admin
2017-06-11 23:46 scan-admin
2017-06-01  4:33 scan-admin
2017-05-25  6:22 scan-admin
2017-05-18  1:44 scan-admin
2017-05-11  5:32 scan-admin
2017-05-04  2:45 scan-admin
2017-04-27  2:22 scan-admin
2017-04-20  5:34 scan-admin
2017-04-13  6:25 scan-admin
2017-04-06  9:40 scan-admin
2017-03-31  1:25 scan-admin
2017-03-23  7:58 scan-admin
2017-03-16  7:37 scan-admin
2017-03-09  6:12 scan-admin
2017-03-02  7:44 scan-admin
2017-02-23  9:09 scan-admin
2017-02-17  2:29 scan-admin
     [not found] ` <CAJE9aOMoxWjhq=g+25hfhMhxSCnHAOwAyNhXvkxS1wwBEd3j+A@mail.gmail.com>
2017-02-17  5:19   ` kefu chai
2017-02-05 10:08 scan-admin
2017-01-27 13:22 scan-admin
2017-01-17  3:01 scan-admin
2017-01-09 10:05 scan-admin
2016-12-30  8:33 scan-admin
2016-12-23  9:16 scan-admin
2016-12-16  8:54 scan-admin
2016-12-09 11:29 scan-admin
2016-12-02 11:08 scan-admin
2016-11-25  7:55 scan-admin
2016-03-19 17:58 scan-admin
2016-03-13 17:40 scan-admin
2016-03-12 18:04 scan-admin
2016-03-05 17:55 scan-admin
2016-03-07 20:59 ` Gregory Farnum
2016-02-27 18:07 scan-admin
2016-02-20 18:26 scan-admin
2016-02-18 20:32 scan-admin
2016-02-13 17:47 scan-admin
2016-02-11 17:57 scan-admin
2016-02-11 22:01 ` Gregory Farnum
2016-02-12 16:36   ` Adam C. Emerson
2016-02-04 20:39 scan-admin
2016-02-03 20:40 scan-admin
2015-05-02 14:37 scan-admin
2015-01-21  1:41 scan-admin
2015-01-16 14:39 scan-admin
2015-01-16 15:17 ` Gregory Farnum
2015-01-16 16:00   ` John Spray
2015-01-16 16:08   ` Sage Weil
     [not found] <54b528bef1f63_1b74f3532c63410@scan.coverity.com.mail>
2015-01-13 14:34 ` Sage Weil
2015-01-13 14:16 scan-admin
2015-01-10 14:36 scan-admin
2015-01-10 15:48 ` Haomai Wang
2015-01-09 14:30 scan-admin
2015-01-09 15:26 ` Sage Weil
2015-01-09 15:32   ` Danny Al-Gaaf
2015-01-04 14:14 scan-admin
2014-12-27 14:13 scan-admin
2014-12-28  6:03 ` Sage Weil
2014-12-26 14:19 scan-admin
2014-12-23 14:37 scan-admin
2014-12-21 14:13 scan-admin
2014-12-18 14:19 scan-admin
2014-12-14 14:17 scan-admin
2014-12-07 20:36 scan-admin
2014-12-05 14:11 scan-admin
2014-12-02 14:09 scan-admin
2014-11-25 14:09 scan-admin
2014-11-23 14:08 scan-admin
2014-11-20 14:20 scan-admin
2014-11-14 14:21 scan-admin
2014-11-13 14:21 scan-admin
2014-11-11 20:40 scan-admin
2014-11-09 14:12 scan-admin
2014-10-30 13:19 scan-admin
2014-10-30 16:08 ` Sage Weil
2014-10-28 13:16 scan-admin
2014-10-28 18:26 ` Danny Al-Gaaf
2014-10-26 13:17 scan-admin
2014-10-17 13:27 scan-admin
2014-10-09 13:23 scan-admin
2014-10-02 13:21 scan-admin
2014-09-25 13:18 scan-admin
2014-09-16 21:40 scan-admin
2014-08-16 21:31 scan-admin
2014-08-09 15:30 scan-admin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544a92a83b3e7_4426b55338883e1@scan.coverity.com.mail \
    --to=scan-admin@coverity.com \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.