Commit 870c873
drm/amdgpu/vcn3: Prevent OOB reads when parsing dec msg
commit b193019 upstream.
Check bounds against the end of the BO whenever we access the msg.
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 7688143 commit 870c873
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1843 | 1843 | | |
1844 | 1844 | | |
1845 | 1845 | | |
1846 | | - | |
| 1846 | + | |
1847 | 1847 | | |
1848 | 1848 | | |
1849 | 1849 | | |
| |||
1864 | 1864 | | |
1865 | 1865 | | |
1866 | 1866 | | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1867 | 1872 | | |
1868 | 1873 | | |
1869 | 1874 | | |
| |||
1880 | 1885 | | |
1881 | 1886 | | |
1882 | 1887 | | |
1883 | | - | |
1884 | 1888 | | |
| 1889 | + | |
1885 | 1890 | | |
1886 | 1891 | | |
1887 | 1892 | | |
1888 | 1893 | | |
1889 | 1894 | | |
1890 | 1895 | | |
1891 | 1896 | | |
| 1897 | + | |
1892 | 1898 | | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
1893 | 1907 | | |
1894 | 1908 | | |
1895 | 1909 | | |
| |||
1899 | 1913 | | |
1900 | 1914 | | |
1901 | 1915 | | |
1902 | | - | |
| 1916 | + | |
| 1917 | + | |
1903 | 1918 | | |
1904 | 1919 | | |
1905 | 1920 | | |
1906 | 1921 | | |
1907 | 1922 | | |
1908 | 1923 | | |
1909 | | - | |
| 1924 | + | |
1910 | 1925 | | |
1911 | 1926 | | |
1912 | 1927 | | |
| |||
0 commit comments