mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+71abe7ab2b70bca770fd@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [net?] general protection fault in put_page (3)
Date: Sat,  2 Nov 2024 07:52:05 +0800	[thread overview]
Message-ID: <20241101235205.2735-1-hdanton@sina.com> (raw)
In-Reply-To: <67251378.050a0220.3c8d68.08cb.GAE@google.com>

On Fri, 01 Nov 2024 10:44:24 -0700
> syzbot found the following issue on:
> 
> HEAD commit:    f9f24ca362a4 Add linux-next specific files for 20241031
> git tree:       linux-next
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=153e5540580000

#syz test

--- x/lib/iov_iter.c
+++ y/lib/iov_iter.c
@@ -1727,6 +1727,10 @@ static ssize_t iov_iter_extract_bvec_pag
 
 		(*pages)[k++] = bv.bv_page;
 		size += bv.bv_len;
+		if (size > maxsize) {
+			size = maxsize;
+			break;
+		}
 
 		if (k >= maxpages)
 			break;
--

  reply	other threads:[~2024-11-01 23:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-01 17:44 syzbot
2024-11-01 23:52 ` Hillf Danton [this message]
2024-11-02  0:18   ` syzbot
2024-11-02  0:05 ` Ming Lei
2024-11-02  0:43   ` syzbot

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=20241101235205.2735-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+71abe7ab2b70bca770fd@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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

all inboxes | Powered by JetHome®