Re: [PATCH 04/36] aio: sanitize ki_list handling

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:11PM -0800, Christoph Hellwig wrote: > Instead of handcoded non-null checks always initialize ki_list to an > empty list and use list_empty / list_empty_careful on it. While we're > at it also error out on a double call to kiocb_set_cancel_fn instead > of ignoring

[PATCH 04/36] aio: sanitize ki_list handling

2018-03-05 Thread Christoph Hellwig
Instead of handcoded non-null checks always initialize ki_list to an empty list and use list_empty / list_empty_careful on it. While we're at it also error out on a double call to kiocb_set_cancel_fn instead of ignoring it. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer

[PATCH 04/36] aio: sanitize ki_list handling

2018-01-22 Thread Christoph Hellwig
Instead of handcoded non-null checks always initialize ki_list to an empty list and use list_empty / list_empty_careful on it. While we're at it also error out on a double call to kiocb_set_cancel_fn instead of ignoring it. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer

[PATCH 04/36] aio: sanitize ki_list handling

2018-01-17 Thread Christoph Hellwig
Instead of handcoded non-null checks always initialize ki_list to an empty list and use list_empty / list_empty_careful on it. While we're at it also error out on a double call to kiocb_set_cancel_fn instead of ignoring it. Signed-off-by: Christoph Hellwig Acked-by: Jeff Moyer