Messages in this thread | | | Date | Fri, 7 Jan 2022 13:06:19 +0100 | From | Christian Brauner <> | Subject | Re: [PATCH] fs/pipe: local vars has to match types of proper pipe_inode_info fields |
| |
On Thu, Jan 06, 2022 at 09:19:46AM -0800, Andrei Vagin wrote: > head, tail, ring_size are declared as unsigned int, so all local > variables that operate with these fields have to be unsigned to avoid > signed integer overflow. > > Right now, it isn't an issue because the maximum pipe size is limited by > 1U<<31. > > Cc: Dmitry Safonov <0x7f454c46@gmail.com> > Suggested-by: Dmitry Safonov <0x7f454c46@gmail.com> > Signed-off-by: Andrei Vagin <avagin@gmail.com> > ---
Looks good, Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
| |