public inbox for [email protected]
 help / color / mirror / Atom feed
From: Jens Axboe <[email protected]>
To: Pavel Begunkov <[email protected]>, [email protected]
Cc: Alexey Dobriyan <[email protected]>
Subject: Re: [PATCH 5.12] io_uring/io-wq: protect against sprintf overflow
Date: Thu, 1 Apr 2021 09:21:26 -0600	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <1702c6145d7e1c46fbc382f28334c02e1a3d3994.1617267273.git.asml.silence@gmail.com>

On 4/1/21 2:55 AM, Pavel Begunkov wrote:
> task_pid may be large enough to not fit into the left space of
> TASK_COMM_LEN-sized buffers and overflow in sprintf. We not so care
> about uniqueness, so replace it with safer snprintf().

Applied, thanks.

-- 
Jens Axboe


      reply	other threads:[~2021-04-01 17:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01  8:55 [PATCH 5.12] io_uring/io-wq: protect against sprintf overflow Pavel Begunkov
2021-04-01 15:21 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox