Commit 7bbd072
committed
iommufd: Fix missing update of domains_itree after splitting iopt_area
jira LE-1907
cve CVE-2023-52801
Rebuild_History Non-Buildable kernel-5.14.0-427.35.1.el9_4
commit-author Koichiro Den <den@valinux.co.jp>
commit e7250ab
In iopt_area_split(), if the original iopt_area has filled a domain and is
linked to domains_itree, pages_nodes have to be properly
reinserted. Otherwise the domains_itree becomes corrupted and we will UAF.
Fixes: 51fe614 ("iommufd: Data structure to provide IOVA to PFN mapping")
Link: https://lore.kernel.org/r/20231027162941.2864615-2-den@valinux.co.jp
Cc: stable@vger.kernel.org
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
(cherry picked from commit e7250ab)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 9253325 commit 7bbd072
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1051 | 1061 | | |
1052 | 1062 | | |
1053 | 1063 | | |
| |||
0 commit comments