io_uring: bump poll refs to full 31-bits
authorJens Axboe <axboe@kernel.dk>
Tue, 22 Mar 2022 12:57:25 +0000 (06:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Mar 2022 12:26:05 +0000 (06:26 -0600)
commite2c0cb7c0cc72939b61a7efee376206725796625
tree4001bb31bedb491d5cc5c49df3d5b6213773aac9
parent61bc84c4008812d784c398cfb54118c1ba396dfc
io_uring: bump poll refs to full 31-bits

The previous commit:

1bc84c40088 ("io_uring: remove poll entry from list when canceling all")

removed a potential overflow condition for the poll references. They
are currently limited to 20-bits, even if we have 31-bits available. The
upper bit is used to mark for cancelation.

Bump the poll ref space to 31-bits, making that kind of situation much
harder to trigger in general. We'll separately add overflow checking
and handling.

Fixes: aa43477b0402 ("io_uring: poll rework")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c