Mellanox / libxlio

Other
32 stars 18 forks source link

issue: 3933912 Fix epoll ready list iteration #156

Closed pasis closed 1 month ago

pasis commented 1 month ago

Description

The recent xlio_list change introduced a bug into epoll ready list iteration: a socket can be removed from the list before getting the next item. This leads to iteration over a removed item causing endless loop.

As a fix, remember 'si_next' before removing a socket from the list.

Also align mem_buf_desc_t to the cache line boundary.

What

Fix epoll ready list iteration

Why ?

Bugfix.

Change type

What kind of change does this PR introduce?

Check list

galnoam commented 1 month ago

@pasis, can you check cov and style?