mbox series

[0/2] io_uring/net: fix bug in io_recvmsg_mshot_prep()

Message ID 7f5d7887-f76e-4e68-98c2-894bfedbf292@moroto.mountain (mailing list archive)
Headers show
Series io_uring/net: fix bug in io_recvmsg_mshot_prep() | expand

Message

Dan Carpenter March 1, 2024, 3:28 p.m. UTC
The casting is problematic and could introduce an integer underflow
issue.

Dan Carpenter (2):
  io_uring/net: fix overflow check in io_recvmsg_mshot_prep()
  io_uring/net: remove unnecesary check

 io_uring/net.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Jens Axboe March 1, 2024, 3:55 p.m. UTC | #1
On Fri, 01 Mar 2024 18:28:40 +0300, Dan Carpenter wrote:
> The casting is problematic and could introduce an integer underflow
> issue.
> 
> Dan Carpenter (2):
>   io_uring/net: fix overflow check in io_recvmsg_mshot_prep()
>   io_uring/net: remove unnecesary check
> 
> [...]

Applied, thanks!

[1/2] io_uring/net: fix overflow check in io_recvmsg_mshot_prep()
      commit: a69d208854948bc8334a01bc17f13a06a5a977d2
[2/2] io_uring/net: remove unnecessary check
      commit: 789748af32c4a6f50db401d46e6a89ab28a6e3ac

Best regards,