Commit 6d35786
committed
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull kvm fixes from Paolo Bonzini:
"Three bug fixes for x86:
- Check that nEPT/nNPT is enabled in slow flush hypercalls. If it is
not, the hypercalls can be processed as usual even while running a
nested guest
- Fix shadow paging use-after-free due to page tables changing
outside execution of the guest. A bug that is 16 years old and
stems from an imprecision in the very first KVM series
- Scan IRR whenever PID.ON is true, even if PIR is empty, which
avoids a somewhat rare WARN"
* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: x86: Fix shadow paging use-after-free due to unexpected GFN
KVM: x86: Fix misleading variable names and add more comments for PIR=>IRR flow
KVM: x86: Do IRR scan in __kvm_apic_update_irr even if PIR is empty
KVM: x86: check for nEPT/nNPT in slow flush hypercalls4 files changed
Lines changed: 60 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | | - | |
| 2043 | + | |
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
| 670 | + | |
671 | 671 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
| 672 | + | |
| 673 | + | |
676 | 674 | | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
677 | 679 | | |
678 | 680 | | |
679 | 681 | | |
| |||
688 | 690 | | |
689 | 691 | | |
690 | 692 | | |
691 | | - | |
| 693 | + | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
697 | | - | |
698 | | - | |
| 699 | + | |
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
705 | | - | |
| 706 | + | |
706 | 707 | | |
707 | | - | |
| 708 | + | |
| 709 | + | |
708 | 710 | | |
709 | | - | |
| 711 | + | |
710 | 712 | | |
711 | 713 | | |
712 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
1287 | 1289 | | |
1288 | 1290 | | |
1289 | 1291 | | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | 1292 | | |
1304 | 1293 | | |
1305 | 1294 | | |
| |||
2466 | 2455 | | |
2467 | 2456 | | |
2468 | 2457 | | |
2469 | | - | |
| 2458 | + | |
| 2459 | + | |
2470 | 2460 | | |
2471 | 2461 | | |
2472 | 2462 | | |
| |||
2544 | 2534 | | |
2545 | 2535 | | |
2546 | 2536 | | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
2554 | 2547 | | |
2555 | 2548 | | |
2556 | 2549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7029 | 7029 | | |
7030 | 7030 | | |
7031 | 7031 | | |
| 7032 | + | |
7032 | 7033 | | |
7033 | | - | |
7034 | 7034 | | |
7035 | 7035 | | |
7036 | 7036 | | |
| |||
7042 | 7042 | | |
7043 | 7043 | | |
7044 | 7044 | | |
7045 | | - | |
7046 | | - | |
| 7045 | + | |
| 7046 | + | |
7047 | 7047 | | |
7048 | 7048 | | |
7049 | | - | |
| 7049 | + | |
7050 | 7050 | | |
7051 | 7051 | | |
7052 | 7052 | | |
7053 | | - | |
7054 | | - | |
7055 | | - | |
| 7053 | + | |
| 7054 | + | |
| 7055 | + | |
| 7056 | + | |
| 7057 | + | |
| 7058 | + | |
| 7059 | + | |
| 7060 | + | |
7056 | 7061 | | |
7057 | 7062 | | |
7058 | 7063 | | |
| |||
7063 | 7068 | | |
7064 | 7069 | | |
7065 | 7070 | | |
| 7071 | + | |
| 7072 | + | |
| 7073 | + | |
| 7074 | + | |
| 7075 | + | |
| 7076 | + | |
| 7077 | + | |
| 7078 | + | |
| 7079 | + | |
| 7080 | + | |
| 7081 | + | |
| 7082 | + | |
| 7083 | + | |
| 7084 | + | |
| 7085 | + | |
| 7086 | + | |
| 7087 | + | |
| 7088 | + | |
| 7089 | + | |
7066 | 7090 | | |
7067 | 7091 | | |
7068 | 7092 | | |
7069 | | - | |
| 7093 | + | |
7070 | 7094 | | |
7071 | 7095 | | |
7072 | 7096 | | |
| |||
0 commit comments