Commit b4927bd
PCI: hv: Fix synchronization between channel callback and hv_pci_bus_exit()
[ Similarly to commit a765ed4 ("PCI: hv: Fix synchronization
between channel callback and hv_compose_msi_msg()"): ]
The (on-stack) teardown packet becomes invalid once the completion
timeout in hv_pci_bus_exit() has expired and hv_pci_bus_exit() has
returned. Prevent the channel callback from accessing the invalid
packet by removing the ID associated to such packet from the VMbus
requestor in hv_pci_bus_exit().
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Link: https://lore.kernel.org/r/20220511223207.3386-3-parri.andrea@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>1 parent 9937fa6 commit b4927bd
1 file changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3664 | 3664 | | |
3665 | 3665 | | |
3666 | 3666 | | |
| 3667 | + | |
3667 | 3668 | | |
3668 | 3669 | | |
3669 | 3670 | | |
3670 | 3671 | | |
3671 | 3672 | | |
3672 | 3673 | | |
3673 | 3674 | | |
| 3675 | + | |
3674 | 3676 | | |
3675 | 3677 | | |
3676 | 3678 | | |
3677 | 3679 | | |
3678 | 3680 | | |
3679 | 3681 | | |
3680 | | - | |
| 3682 | + | |
3681 | 3683 | | |
3682 | 3684 | | |
3683 | 3685 | | |
| |||
3714 | 3716 | | |
3715 | 3717 | | |
3716 | 3718 | | |
3717 | | - | |
3718 | | - | |
3719 | | - | |
3720 | | - | |
3721 | | - | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
3722 | 3724 | | |
3723 | 3725 | | |
3724 | 3726 | | |
3725 | | - | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
3726 | 3737 | | |
| 3738 | + | |
3727 | 3739 | | |
3728 | 3740 | | |
3729 | 3741 | | |
| |||
0 commit comments