diff options
| author | Genjian Zhang <zhanggenjian@kylinos.cn> | 2026-08-07 23:57:15 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-09-02 17:01:13 +0200 |
| commit | 7ac81e2d2240f2c57bd073b0733e0b2abca38e82 (patch) | |
| tree | f8becdfebbfa1c31fe32742c3b88a283b98911a5 /tools/perf/scripts/python | |
| parent | 7d4d4f3b668d708d94f62ecdd33ac330a6fd8a84 (diff) | |
dm-ebs: fix incorrect device offset check in ebs_ctr()
<offset> is a backing-device sector offset; ti->len is the virtual
target length. Comparing them rejects valid tables, e.g.:
dmsetup create ebs0 --table "0 1048576 ebs /dev/sda 2097152 1 8"
-> ebs: Invalid device offset sector (-EINVAL)
Drop the check. Bounds against the backing device are already
enforced later by device_area_is_invalid() via ebs_iterate_devices().
Cc: stable@vger.kernel.org
Fixes: d3c7b35c20d6 ("dm: add emulated block size target")
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
