Commit 822d4d4
vmbus_server: allow gpadls for revoked channels (#3959)
This change provides a corrected fix for the issue described in #3649.
If a guest sends a GpadlHeader message for a channel that was revoked on
the host, this should be allowed to succeed. The guest likely sent the
message before it received the RescindOffer message, so it is not
expecting failures, and in particular Linux does not handle it well if a
failure does occur here.
This change allows the gpadl to be created, and also lets subsequent
teardown requests to succeed should the guest choose to send them before
releasing the channel.
This matches the existing behavior in Hyper-V.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent a5f055d commit 822d4d4
2 files changed
Lines changed: 83 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1086 | 1089 | | |
1087 | 1090 | | |
1088 | 1091 | | |
| |||
2741 | 2744 | | |
2742 | 2745 | | |
2743 | 2746 | | |
2744 | | - | |
2745 | | - | |
2746 | | - | |
2747 | | - | |
| 2747 | + | |
| 2748 | + | |
2748 | 2749 | | |
2749 | 2750 | | |
2750 | 2751 | | |
2751 | 2752 | | |
2752 | | - | |
2753 | | - | |
| 2753 | + | |
| 2754 | + | |
2754 | 2755 | | |
2755 | 2756 | | |
2756 | | - | |
2757 | | - | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
2758 | 2763 | | |
2759 | | - | |
| 2764 | + | |
2760 | 2765 | | |
2761 | 2766 | | |
2762 | 2767 | | |
2763 | 2768 | | |
2764 | | - | |
2765 | 2769 | | |
2766 | 2770 | | |
2767 | 2771 | | |
| |||
2793 | 2797 | | |
2794 | 2798 | | |
2795 | 2799 | | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | | - | |
2801 | | - | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
2802 | 2816 | | |
2803 | 2817 | | |
2804 | 2818 | | |
| |||
2815 | 2829 | | |
2816 | 2830 | | |
2817 | 2831 | | |
2818 | | - | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
2825 | | - | |
2826 | | - | |
2827 | | - | |
2828 | | - | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
2832 | 2832 | | |
2833 | 2833 | | |
2834 | 2834 | | |
| |||
2881 | 2881 | | |
2882 | 2882 | | |
2883 | 2883 | | |
2884 | | - | |
| 2884 | + | |
2885 | 2885 | | |
2886 | 2886 | | |
2887 | 2887 | | |
2888 | 2888 | | |
2889 | 2889 | | |
2890 | 2890 | | |
2891 | 2891 | | |
2892 | | - | |
2893 | | - | |
2894 | | - | |
| 2892 | + | |
2895 | 2893 | | |
2896 | 2894 | | |
2897 | 2895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
555 | 606 | | |
556 | 607 | | |
557 | 608 | | |
| |||
0 commit comments