Bart Van Assche
251141340f
block: Fix cloning of requests with a special payload
...
commit 297ba57dcdec7ea37e702bcf1a577ac32a034e21 upstream.
This patch avoids that removing a path controlled by the dm-mpath driver
while mkfs is running triggers the following kernel bug:
kernel BUG at block/blk-core.c:3347!
invalid opcode: 0000 [#1 ] PREEMPT SMP KASAN
CPU: 20 PID: 24369 Comm: mkfs.ext4 Not tainted 4.18.0-rc1-dbg+ #2
RIP: 0010:blk_end_request_all+0x68/0x70
Call Trace:
<IRQ>
dm_softirq_done+0x326/0x3d0 [dm_mod]
blk_done_softirq+0x19b/0x1e0
__do_softirq+0x128/0x60d
irq_exit+0x100/0x110
smp_call_function_single_interrupt+0x90/0x330
call_function_single_interrupt+0xf/0x20
</IRQ>
Fixes: f9d03f96b988 ("block: improve handling of the magic discard payload")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:25:05 +02:00
..
2018-04-08 14:26:28 +02:00
2017-12-20 10:10:26 +01:00
2018-04-12 12:32:19 +02:00
2018-05-01 12:58:19 -07:00
2017-09-07 11:59:42 -07:00
2017-08-31 08:20:31 -06:00
2017-09-07 11:59:42 -07:00
2018-04-26 11:02:10 +02:00
2018-06-21 04:02:44 +09:00
2018-07-03 11:25:05 +02:00
2017-06-09 09:27:32 -06:00
2017-08-25 10:36:54 -06:00
2017-06-09 09:27:32 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-25 11:07:49 +01:00
2018-04-26 11:02:15 +02:00
2018-04-19 08:56:20 +02:00
2018-04-26 11:02:11 +02:00
2017-11-02 11:10:55 +01:00
2017-08-18 08:08:14 -06:00
2017-08-08 14:58:03 -04:00
2017-12-20 10:10:27 +01:00
2017-11-02 11:10:55 +01:00
2017-05-04 08:24:13 -06:00
2017-08-18 08:36:58 -06:00
2017-11-02 11:10:55 +01:00
2017-02-27 20:54:05 +02:00
2018-06-26 08:06:32 +08:00
2018-06-21 04:02:49 +09:00
2017-08-23 12:02:30 -06:00
2017-11-02 11:10:55 +01:00
2017-05-10 07:40:18 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-30 08:40:52 +00:00
2018-02-22 15:42:29 +01:00
2017-11-02 11:10:55 +01:00
2018-06-16 09:45:14 +02:00
2018-03-03 10:24:35 +01:00
2018-01-02 20:31:05 +01:00
2017-10-04 08:35:04 -06:00
2017-08-29 10:50:30 -06:00
2017-09-08 18:26:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-28 10:01:08 -06:00
2017-08-28 10:52:44 -06:00
2018-06-21 04:02:49 +09:00
2017-04-08 11:25:38 -06:00
2017-06-21 11:46:07 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-08 22:41:05 -08:00
2017-11-02 11:10:55 +01:00
2017-08-29 10:47:23 -06:00
2017-01-17 10:03:33 -07:00
2017-09-11 09:45:52 -06:00
2018-06-21 04:02:49 +09:00
2017-06-20 19:27:14 -06:00
2017-09-11 09:45:52 -06:00
2017-07-03 16:56:25 -06:00