Repository navigation
Conversation
|
Upstream branch: c03c1a1 |
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
9113d28 to
114cf76
Compare
|
Upstream branch: 7be4bc5 |
114cf76 to
206ad0c
Compare
435b194 to
fd67522
Compare
|
Upstream branch: 17bb0e2 |
206ad0c to
8efc49d
Compare
fd67522 to
3b53a63
Compare
|
Upstream branch: 21a7f44 |
8efc49d to
55b040f
Compare
3b53a63 to
5d84576
Compare
|
Upstream branch: 6b4b543 |
55b040f to
bcac38c
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
bcac38c to
226a9ad
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
226a9ad to
734718b
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
734718b to
fd30c0d
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
fd30c0d to
c15fc5c
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
c15fc5c to
988e27f
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
988e27f to
e918db0
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
e918db0 to
97eef97
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
97eef97 to
8ade916
Compare
c7f678d to
6aa6cd1
Compare
If the device underlying a zoned target is removed, its capacity is set to 0 and blkdev_report_zones() returns 0 without reporting any zones. The mapped device keeps its old capacity, so args->zone_idx and args->next_sector never advance and dm_blk_do_report_zones() loops forever. On non-preemptible kernels this causes soft lockups and RCU stalls. The following sequence of commands triggers the hang: modprobe scsi_debug zbc=managed dev_size_mb=1024 zone_size_mb=64 udevadm settle echo '0 2097152 linear /dev/sda 0' | dmsetup create lin echo 1 > /sys/block/sda/device/delete blkzone report -o 0 -c 1 /dev/mapper/lin Fix this by returning -EIO when a target reports no zones. The target always maps args->next_sector, so a zero return means the underlying device no longer covers that sector. Fixes: d410035 ("block: rework zone reporting") Cc: stable@vger.kernel.org Signed-off-by: Mark Bundschuh <mkbund@amazon.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
|
Upstream branch: b3dfbde |
8ade916 to
fc06fff
Compare
Pull request for series with
subject: dm: fix infinite loop in dm_blk_do_report_zones()
version: 1
url: https://patchwork.kernel.org/series/1189208/