mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [syzbot] [PATCH] Test for 4652b8e4f3ff
@ 2023-11-08  0:31 syzbot
  0 siblings, 0 replies; 3+ messages in thread
From: syzbot @ 2023-11-08  0:31 UTC (permalink / raw)
  To: linux-kernel

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] Test for 4652b8e4f3ff
Author: eadavis@qq.com

please test warning in blk_mq_start_request

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4652b8e4f3ff


diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
index 22a3cf7f32e2..397bdfad6d27 100644
--- a/drivers/block/null_blk/main.c
+++ b/drivers/block/null_blk/main.c
@@ -1724,6 +1724,8 @@ static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx,
 	cmd->fake_timeout = should_timeout_request(rq) ||
 		blk_should_fake_timeout(rq->q);
 
+	printk("%d, %s\n", READ_ONCE(rq->state), __func__);
+	WRITE_ONCE(rq->state, MQ_RQ_IDLE);
 	blk_mq_start_request(rq);
 
 	if (should_requeue_request(rq)) {


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [syzbot] [PATCH] Test for 4652b8e4f3ff
  2023-11-08  0:52 [syzbot] [block?] WARNING in blk_mq_start_request syzbot
  2023-11-08  1:35 ` [syzbot] [PATCH] Test for 4652b8e4f3ff syzbot
@ 2023-11-08  6:25 ` syzbot
  1 sibling, 0 replies; 3+ messages in thread
From: syzbot @ 2023-11-08  6:25 UTC (permalink / raw)
  To: linux-kernel

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] Test for 4652b8e4f3ff
Author: eadavis@qq.com

please test warning in blk_mq_start_request

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4652b8e4f3ff

diff --git a/block/blk-mq.c b/block/blk-mq.c
index e2d11183f62e..26f2921cbc50 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2575,6 +2575,8 @@ static blk_status_t __blk_mq_issue_directly(struct blk_mq_hw_ctx *hctx,
 	 * Any other error (busy), just add it to our list as we
 	 * previously would have done.
 	 */
+	if (READ_ONCE(rq->state))
+		WRITE_ONCE(rq->state, MQ_RQ_IDLE);
 	ret = q->mq_ops->queue_rq(hctx, &bd);
 	switch (ret) {
 	case BLK_STS_OK:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [syzbot] [PATCH] Test for 4652b8e4f3ff
  2023-11-08  0:52 [syzbot] [block?] WARNING in blk_mq_start_request syzbot
@ 2023-11-08  1:35 ` syzbot
  2023-11-08  6:25 ` syzbot
  1 sibling, 0 replies; 3+ messages in thread
From: syzbot @ 2023-11-08  1:35 UTC (permalink / raw)
  To: linux-kernel

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] Test for 4652b8e4f3ff
Author: eadavis@qq.com

please test warning in blk_mq_start_request

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4652b8e4f3ff

diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
index 22a3cf7f32e2..0726534a5a24 100644
--- a/drivers/block/null_blk/main.c
+++ b/drivers/block/null_blk/main.c
@@ -1724,6 +1724,8 @@ static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx,
 	cmd->fake_timeout = should_timeout_request(rq) ||
 		blk_should_fake_timeout(rq->q);
 
+	if (READ_ONCE(rq->state))
+		WRITE_ONCE(rq->state, MQ_RQ_IDLE);
 	blk_mq_start_request(rq);
 
 	if (should_requeue_request(rq)) {


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-08  6:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-08  0:31 [syzbot] [PATCH] Test for 4652b8e4f3ff syzbot
2023-11-08  0:52 [syzbot] [block?] WARNING in blk_mq_start_request syzbot
2023-11-08  1:35 ` [syzbot] [PATCH] Test for 4652b8e4f3ff syzbot
2023-11-08  6:25 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome