Commit b08d8d9
powerpc/lib: Validate size for vector operations
jira VULN-8150
cve CVE-2023-52606
commit-author Naveen N Rao <[email protected]>
commit 8f9abaa
Some of the fp/vmx code in sstep.c assume a certain maximum size for the
instructions being emulated. The size of those operations however is
determined separately in analyse_instr().
Add a check to validate the assumption on the maximum size of the
operations, so as to prevent any unintended kernel stack corruption.
Signed-off-by: Naveen N Rao <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Build-tested-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
(cherry picked from commit 8f9abaa)
Signed-off-by: Marcin Wcisło <[email protected]>1 parent 26cdbdf commit b08d8d9
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
594 | 596 | | |
595 | 597 | | |
596 | 598 | | |
| |||
641 | 643 | | |
642 | 644 | | |
643 | 645 | | |
| 646 | + | |
| 647 | + | |
644 | 648 | | |
645 | 649 | | |
646 | 650 | | |
| |||
685 | 689 | | |
686 | 690 | | |
687 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
688 | 695 | | |
689 | 696 | | |
690 | 697 | | |
| |||
712 | 719 | | |
713 | 720 | | |
714 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
715 | 725 | | |
716 | 726 | | |
717 | 727 | | |
| |||
0 commit comments