Commit 98e62be
atl1c: Work around the DMA RX overflow issue
jira VULN-36010
cve CVE-2023-52834
commit-author Sieng-Piaw Liew <liew.s.piaw@gmail.com>
commit 8656568
This is based on alx driver commit 881d032 ("net: alx: Work around
the DMA RX overflow issue").
The alx and atl1c drivers had RX overflow error which was why a custom
allocator was created to avoid certain addresses. The simpler workaround
then created for alx driver, but not for atl1c due to lack of tester.
Instead of using a custom allocator, check the allocated skb address and
use skb_reserve() to move away from problematic 0x...fc0 address.
Tested on AR8131 on Acer 4540.
Signed-off-by: Sieng-Piaw Liew <liew.s.piaw@gmail.com>
Link: https://lore.kernel.org/r/20230912010711.12036-1-liew.s.piaw@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 8656568)
Signed-off-by: CIQ Kernel Automation <ciq_kernel_automation@ciq.com>1 parent 5a963d6 commit 98e62be
2 files changed
Lines changed: 16 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
509 | 507 | | |
510 | 508 | | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
514 | 512 | | |
515 | | - | |
516 | 513 | | |
517 | 514 | | |
518 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | 500 | | |
506 | 501 | | |
507 | 502 | | |
| |||
974 | 969 | | |
975 | 970 | | |
976 | 971 | | |
977 | | - | |
978 | 972 | | |
979 | 973 | | |
980 | 974 | | |
| |||
987 | 981 | | |
988 | 982 | | |
989 | 983 | | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | 984 | | |
997 | 985 | | |
998 | 986 | | |
| |||
1764 | 1752 | | |
1765 | 1753 | | |
1766 | 1754 | | |
1767 | | - | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
1773 | | - | |
1774 | | - | |
1775 | | - | |
1776 | | - | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | | - | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
1805 | 1755 | | |
1806 | 1756 | | |
1807 | 1757 | | |
1808 | 1758 | | |
| 1759 | + | |
1809 | 1760 | | |
1810 | 1761 | | |
1811 | 1762 | | |
| |||
1824 | 1775 | | |
1825 | 1776 | | |
1826 | 1777 | | |
1827 | | - | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1828 | 1790 | | |
1829 | 1791 | | |
1830 | 1792 | | |
1831 | 1793 | | |
1832 | 1794 | | |
1833 | 1795 | | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
1834 | 1799 | | |
1835 | 1800 | | |
1836 | 1801 | | |
| |||
0 commit comments