This repository has been archived by the owner on May 2, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xen-blkfront: fix kernel panic with negotiate_mq error path
commit 6cc4a08 upstream. info->nr_rings isn't adjusted in case of ENOMEM error from negotiate_mq(). This leads to kernel panic in error path. Typical call stack involving panic - beagleboard#8 page_fault at ffffffff8175936f [exception RIP: blkif_free_ring+33] RIP: ffffffffa0149491 RSP: ffff8804f7673c08 RFLAGS: 00010292 ... beagleboard#9 blkif_free at ffffffffa0149aaa [xen_blkfront] beagleboard#10 talk_to_blkback at ffffffffa014c8cd [xen_blkfront] beagleboard#11 blkback_changed at ffffffffa014ea8b [xen_blkfront] beagleboard#12 xenbus_otherend_changed at ffffffff81424670 beagleboard#13 backend_changed at ffffffff81426dc3 beagleboard#14 xenwatch_thread at ffffffff81422f29 beagleboard#15 kthread at ffffffff810abe6a beagleboard#16 ret_from_fork at ffffffff81754078 Cc: [email protected] Fixes: 7ed8ce1 ("xen-blkfront: move negotiate_mq to cover all cases of new VBDs") Signed-off-by: Manjunath Patil <[email protected]> Acked-by: Roger Pau Monné <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information