Repository navigation
Commit f67e524
xen/events: avoid handling the same event on two cpus at the same time
commit b662279 upstream.
When changing the cpu affinity of an event it can happen today that
(with some unlucky timing) the same event will be handled on the old
and the new cpu at the same time.
Avoid that by adding an "event active" flag to the per-event data and
call the handler only if this flag isn't set.
Cc: stable@vger.kernel.org
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Link: https://lore.kernel.org/r/20210306161833.4552-4-jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 30cdb86 commit f67e524
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
751 | 752 | | |
752 | 753 | | |
753 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
754 | 761 | | |
755 | 762 | | |
756 | 763 | | |
| |||
781 | 788 | | |
782 | 789 | | |
783 | 790 | | |
784 | | - | |
| 791 | + | |
785 | 792 | | |
786 | 793 | | |
787 | 794 | | |
788 | 795 | | |
789 | 796 | | |
790 | | - | |
| 797 | + | |
791 | 798 | | |
792 | 799 | | |
793 | 800 | | |
| |||
1603 | 1610 | | |
1604 | 1611 | | |
1605 | 1612 | | |
| 1613 | + | |
| 1614 | + | |
1606 | 1615 | | |
1607 | 1616 | | |
1608 | 1617 | | |
| |||
1778 | 1787 | | |
1779 | 1788 | | |
1780 | 1789 | | |
1781 | | - | |
| 1790 | + | |
1782 | 1791 | | |
1783 | 1792 | | |
1784 | 1793 | | |
1785 | 1794 | | |
1786 | 1795 | | |
1787 | | - | |
| 1796 | + | |
1788 | 1797 | | |
1789 | 1798 | | |
1790 | 1799 | | |
| |||
1800 | 1809 | | |
1801 | 1810 | | |
1802 | 1811 | | |
1803 | | - | |
| 1812 | + | |
1804 | 1813 | | |
1805 | 1814 | | |
1806 | 1815 | | |
| |||
1811 | 1820 | | |
1812 | 1821 | | |
1813 | 1822 | | |
1814 | | - | |
| 1823 | + | |
1815 | 1824 | | |
1816 | 1825 | | |
1817 | 1826 | | |
| |||
1922 | 1931 | | |
1923 | 1932 | | |
1924 | 1933 | | |
1925 | | - | |
| 1934 | + | |
| 1935 | + | |
1926 | 1936 | | |
1927 | 1937 | | |
1928 | | - | |
| 1938 | + | |
1929 | 1939 | | |
1930 | 1940 | | |
1931 | 1941 | | |
| |||
0 commit comments