On Tue, Jun 12, 2018 at 04:11:01PM +0300, RĂ©mi Denis-Courmont wrote: > Yeah so kernel list_for_each_entry(_safe) is UB on empty list in some cases. Wow, that's right. <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/list.h?h=v4.17#n543>