linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: linux-i2c@vger.kernel.org
Cc: syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com
Subject: Re: [PATCH] i2c: bail out early when RDWR parameters are wrong
Date: Thu, 18 Mar 2021 12:15:46 +0100	[thread overview]
Message-ID: <20210318111546.GL974@ninjato> (raw)
In-Reply-To: <20210312115734.14022-1-wsa+renesas@sang-engineering.com>

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

On Fri, Mar 12, 2021 at 12:57:34PM +0100, Wolfram Sang wrote:
> The buggy parameters currently get caught later, but emit a noisy WARN.
> Userspace should not be able to trigger this, so add similar checks much
> earlier. Also avoids some unneeded code paths, of course. Apply kernel
> coding stlye to a comment while here.
> 
> Reported-by: syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com
> Tested-by: syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2021-03-18 11:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 11:57 [PATCH] i2c: bail out early when RDWR parameters are wrong Wolfram Sang
2021-03-18 11:15 ` Wolfram Sang [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 \
    --in-reply-to=20210318111546.GL974@ninjato \
    --to=wsa+renesas@sang-engineering.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).