New Defects reported by Coverity Scan for RTEMS

scan-admin at coverity.com scan-admin at coverity.com
Fri Sep 6 07:11:18 UTC 2024


Hi,

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

4 new defect(s) introduced to RTEMS found with Coverity Scan.
1 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 4 of 4 defect(s)


** CID 1619145:    (LOCK)
/cpukit/posix/src/lio_listio.c: 175 in lio_listio()
/cpukit/posix/src/lio_listio.c: 206 in lio_listio()


________________________________________________________________________________________________________
*** CID 1619145:    (LOCK)
/cpukit/posix/src/lio_listio.c: 175 in lio_listio()
169         }
170       }
171       rtems_aio_completed_list_op( listcbp );
172     
173       if ( mode == LIO_NOWAIT ) {
174         if ( error == 1 ) {
>>>     CID 1619145:    (LOCK)
>>>     Returning without unlocking "listcbp->mutex".
175           rtems_set_errno_and_return_minus_one( EIO ); 
176         }
177       } else if ( mode == LIO_WAIT ) {
178         rtems_event_set event_out; 
179         rtems_event_system_receive(
180           RTEMS_EVENT_SYSTEM_AIO_LIST,
/cpukit/posix/src/lio_listio.c: 206 in lio_listio()
200               }
201             }
202           }
203         }
204       }
205     
>>>     CID 1619145:    (LOCK)
>>>     Returning without unlocking "listcbp->mutex".
206       return 0;

** CID 1619144:  Program hangs  (LOCK)
/cpukit/posix/src/aio_misc.c: 273 in rtems_aio_completed_list_op()


________________________________________________________________________________________________________
*** CID 1619144:  Program hangs  (LOCK)
/cpukit/posix/src/aio_misc.c: 273 in rtems_aio_completed_list_op()
267             break;
268         }
269         free( listcbp );
270       } else {
271         pthread_mutex_unlock( &listcbp->mutex );
272       }
>>>     CID 1619144:  Program hangs  (LOCK)
>>>     Returning without unlocking "listcbp->mutex".
273     }
274     
275     rtems_aio_request_chain *rtems_aio_search_fd(
276       rtems_chain_control *chain,
277       int fildes,
278       int create

** CID 1619143:  Program hangs  (LOCK)
/cpukit/posix/src/aio_misc.c: 380 in rtems_aio_remove_fd()


________________________________________________________________________________________________________
*** CID 1619143:  Program hangs  (LOCK)
/cpukit/posix/src/aio_misc.c: 380 in rtems_aio_remove_fd()
374         req->aiocbp->error_code = ECANCELED;
375         req->aiocbp->return_value = -1;
376         atomic_fetch_sub( &aio_request_queue.queued_requests, 1 );
377         rtems_aio_completed_list_op( req->listcbp );
378         free( req );
379       }
>>>     CID 1619143:  Program hangs  (LOCK)
>>>     Returning without unlocking "req->listcbp->mutex".
380     }
381     
382     int rtems_aio_remove_req( rtems_chain_control *chain, struct aiocb *aiocbp )
383     {
384       if ( rtems_chain_is_empty( chain ) )
385         return AIO_ALLDONE;

** CID 1619142:  Program hangs  (LOCK)
/cpukit/posix/src/aio_misc.c: 408 in rtems_aio_remove_req()


________________________________________________________________________________________________________
*** CID 1619142:  Program hangs  (LOCK)
/cpukit/posix/src/aio_misc.c: 408 in rtems_aio_remove_req()
402         current->aiocbp->return_value = -1;
403         rtems_aio_completed_list_op( current->listcbp );
404         atomic_fetch_sub( &aio_request_queue.queued_requests, 1 );
405         free( current );
406       }
407         
>>>     CID 1619142:  Program hangs  (LOCK)
>>>     Returning without unlocking "current->listcbp->mutex".
408       return AIO_CANCELED;
409     }
410     
411     int rtems_aio_enqueue( rtems_aio_request *req )
412     {
413       rtems_aio_request_chain *r_chain;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu5GLWnGNEwbhcanGyCDC8W1qxs1XK9M9KkPO5PqDYA-2Faw-3D-3DYgv8_hOQomnwXvo7ZPjrovRgF1EWfSixaZuumKeNh4wRoLrlgXtV6ADz8UvDniy4WQdTqg-2FiiEKt87EOBHezrXOTy3TcHrh2VSE0GVE9IHKDMgFphtIhj8AoMWE5WR4WCNiWwlKDfgt49n3P-2BUQZwV-2BPzQA2D05OFHlhBbjwTGkWm3gnFKMSbtsA47u7ESq6pFjWuzLmH52not7o0rKYvy3lWDw-3D-3D



More information about the build mailing list