Commit a080642d authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'for-linus-5.12b-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip

Pull xen fix from Juergen Gross:
 "One Xen related security fix (XSA-371)"

* tag 'for-linus-5.12b-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
  xen-blkback: don't leak persistent grants from xen_blkbk_map()
parents 1e43c377 a846738f
...@@ -891,7 +891,7 @@ static int xen_blkbk_map(struct xen_blkif_ring *ring, ...@@ -891,7 +891,7 @@ static int xen_blkbk_map(struct xen_blkif_ring *ring,
out: out:
for (i = last_map; i < num; i++) { for (i = last_map; i < num; i++) {
/* Don't zap current batch's valid persistent grants. */ /* Don't zap current batch's valid persistent grants. */
if(i >= last_map + segs_to_map) if(i >= map_until)
pages[i]->persistent_gnt = NULL; pages[i]->persistent_gnt = NULL;
pages[i]->handle = BLKBACK_INVALID_HANDLE; pages[i]->handle = BLKBACK_INVALID_HANDLE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment