From: syzbot <syzbot+8b23309d5788a79d3eea@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [block?] general protection fault in bio_first_folio
Date: Fri, 15 Dec 2023 23:29:53 -0800 [thread overview]
Message-ID: <000000000000a063d8060c9b7b1d@google.com> (raw)
In-Reply-To: <0000000000006c14cd060c99ac12@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [block?] general protection fault in bio_first_folio
Author: eadavis@qq.com
please test general protection fault in bio_first_folio
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git abb240f7a2bd
diff --git a/block/blk-map.c b/block/blk-map.c
index 8584babf3ea0..6c6f0ef1407b 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -344,7 +344,8 @@ static int bio_map_user_iov(struct request *rq, struct iov_iter *iter,
return 0;
out_unmap:
- bio_release_pages(bio, false);
+ if (bio->bi_vcnt)
+ bio_release_pages(bio, false);
blk_mq_map_bio_put(bio);
return ret;
}
next prev parent reply other threads:[~2023-12-16 7:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-16 5:20 [syzbot] [block?] general protection fault in bio_first_folio syzbot
2023-12-16 5:53 ` Matthew Wilcox
2023-12-16 7:01 ` syzbot
2023-12-16 6:22 ` [syzbot] " syzbot
2023-12-16 7:00 ` Hillf Danton
2023-12-16 8:11 ` syzbot
2023-12-16 7:29 ` syzbot [this message]
[not found] <tencent_5FFF86C0D2F7065549A1AEC8EEEDCC9EE706@qq.com>
2023-12-16 7:29 ` syzbot
[not found] <tencent_F3CD8D809237DDE95DB69927CFA68DBF2507@qq.com>
2023-12-16 9:19 ` 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=000000000000a063d8060c9b7b1d@google.com \
--to=syzbot+8b23309d5788a79d3eea@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/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