From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+82609b8937a4458106ca@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [io-uring?] KMSAN: uninit-value in io_req_task_work_add_remote
Date: Wed, 24 Jul 2024 20:11:23 +0800 [thread overview]
Message-ID: <tencent_BDF63D63379896FC36DA4B94758377296609@qq.com> (raw)
In-Reply-To: <000000000000fd3d8d061dfc0e4a@google.com>
when alloc buffer for req, init mem to 0
#syz test: upstream 2c9b3512402e
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 8e6faa942a6f..acd2c5aac1ad 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -2177,6 +2177,7 @@ static inline int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
return 0;
}
+ atomic_set(&ctx->cq_wait_nr, IO_CQ_WAKE_INIT);
io_queue_sqe(req);
return 0;
}
next prev parent reply other threads:[~2024-07-24 12:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 10:51 syzbot
2024-07-24 11:13 ` Edward Adam Davis
2024-07-24 11:39 ` syzbot
2024-07-24 12:11 ` Edward Adam Davis [this message]
2024-07-24 15:57 ` syzbot
2024-07-24 16:04 ` Jens Axboe
2024-07-24 18:37 ` Jens Axboe
2024-07-24 18:59 ` syzbot
2024-07-24 20:34 ` Jens Axboe
2024-07-24 21:03 ` syzbot
2024-07-24 21:04 ` Jens Axboe
2024-07-25 14:46 ` Jens Axboe
2024-07-25 17:32 ` 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=tencent_BDF63D63379896FC36DA4B94758377296609@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+82609b8937a4458106ca@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®