~krzk/ubuntu/+source/linux:groovy/cranky/azure

Last commit made on 2021-06-24
Get this branch:
git clone -b groovy/cranky/azure https://git.launchpad.net/~krzk/ubuntu/+source/linux
Only Krzysztof Kozlowski can upload to this branch. If you are Krzysztof Kozlowski please log in for upload directions.

Branch merges

Branch information

Name:
groovy/cranky/azure
Repository:
lp:~krzk/ubuntu/+source/linux

Recent commits

d13062a... by Krzysztof Kozlowski

UBUNTU: Ubuntu-azure-5.8.0-1037.39

Signed-off-by: Krzysztof Kozlowski <email address hidden>

79000a7... by Krzysztof Kozlowski

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1932428
Properties: no-test-build
Signed-off-by: Krzysztof Kozlowski <email address hidden>

ab3c4b9... by Krzysztof Kozlowski

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Krzysztof Kozlowski <email address hidden>

3ec836c... by Long Li

block: return the correct bvec when checking for gaps

BugLink: https://bugs.launchpad.net/bugs/1931497

After commit 07173c3ec276 ("block: enable multipage bvecs"), a bvec can
have multiple pages. But bio_will_gap() still assumes one page bvec while
checking for merging. If the pages in the bvec go across the
seg_boundary_mask, this check for merging can potentially succeed if only
the 1st page is tested, and can fail if all the pages are tested.

Later, when SCSI builds the SG list the same check for merging is done in
__blk_segment_map_sg_merge() with all the pages in the bvec tested. This
time the check may fail if the pages in bvec go across the
seg_boundary_mask (but tested okay in bio_will_gap() earlier, so those
BIOs were merged). If this check fails, we end up with a broken SG list
for drivers assuming the SG list not having offsets in intermediate pages.
This results in incorrect pages written to the disk.

Fix this by returning the multi-page bvec when testing gaps for merging.

Cc: Jens Axboe <email address hidden>
Cc: Johannes Thumshirn <email address hidden>
Cc: Pavel Begunkov <email address hidden>
Cc: Ming Lei <email address hidden>
Cc: Tejun Heo <email address hidden>
Cc: "Matthew Wilcox (Oracle)" <email address hidden>
Cc: Jeffle Xu <email address hidden>
Cc: <email address hidden>
Cc: <email address hidden>
Fixes: 07173c3ec276 ("block: enable multipage bvecs")
Signed-off-by: Long Li <email address hidden>
Reviewed-by: Ming Lei <email address hidden>
Reviewed-by: Christoph Hellwig <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Jens Axboe <email address hidden>
(cherry picked from commit c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31 linux-next)
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Kelsey Skunberg <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

4d7f2b7... by Thadeu Lima de Souza Cascardo

UBUNTU: Ubuntu-azure-5.8.0-1036.38

Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

1487edc... by Thadeu Lima de Souza Cascardo

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Thadeu Lima de Souza Cascardo <email address hidden>

5dde0fd... by Guilherme G. Piccoli

UBUNTU: Ubuntu-azure-5.8.0-1034.36

Signed-off-by: Guilherme G. Piccoli <email address hidden>

e7eb15f... by Guilherme G. Piccoli

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1930041
Properties: no-test-build
Signed-off-by: Guilherme G. Piccoli <email address hidden>

2fa40b3... by Guilherme G. Piccoli

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Guilherme G. Piccoli <email address hidden>

a82ca9d... by Dexuan Cui

net: mana: Use int to check the return value of mana_gd_poll_cq()

BugLink: https://bugs.launchpad.net/bugs/1928788

mana_gd_poll_cq() may return -1 if an overflow error is detected (this
should never happen unless there is a bug in the driver or the hardware).

Fix the type of the variable "comp_read" by using int rather than u32.

Reported-by: Dan Carpenter <email address hidden>
Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Dexuan Cui <email address hidden>
Signed-off-by: David S. Miller <email address hidden>
(cherry picked from commit d90a94680bc0a8069d93282bc5f2966d00b9c4a4)
Signed-off-by: Tim Gardner <email address hidden>
Acked-by: Stefan Bader <email address hidden>
Acked-by: Guilherme Piccoli <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>