Re: [PATCH] select: Avoid wrap-around instrumentation in do_sys_poll()

2024-01-30 Thread Jan Kara
On Mon 29-01-24 10:40:15, Kees Cook wrote: > The mix of int, unsigned int, and unsigned long used by struct > poll_list::len, todo, len, and j meant that the signed overflow > sanitizer got worried it needed to instrument several places where > arithmetic happens between these variables. Since all

Re: [PATCH] select: Avoid wrap-around instrumentation in do_sys_poll()

2024-01-30 Thread Christian Brauner
On Mon, 29 Jan 2024 10:40:15 -0800, Kees Cook wrote: > The mix of int, unsigned int, and unsigned long used by struct > poll_list::len, todo, len, and j meant that the signed overflow > sanitizer got worried it needed to instrument several places where > arithmetic happens between these variables.

[PATCH] select: Avoid wrap-around instrumentation in do_sys_poll()

2024-01-29 Thread Kees Cook
The mix of int, unsigned int, and unsigned long used by struct poll_list::len, todo, len, and j meant that the signed overflow sanitizer got worried it needed to instrument several places where arithmetic happens between these variables. Since all of the variables are always positive and bounded by