Commit 0ff0faf
committed
Merge branch 'udp-fix-two-integer-overflows-when-sk-sk_rcvbuf-is-close-to-int_max'
Kuniyuki Iwashima says:
====================
udp: Fix two integer overflows when sk->sk_rcvbuf is close to INT_MAX.
I got a report that UDP mem usage in /proc/net/sockstat did not
drop even after an application was terminated.
The issue could happen if sk->sk_rmem_alloc wraps around due
to a large sk->sk_rcvbuf, which was INT_MAX in our case.
The patch 2 fixes the issue, and the patch 1 fixes yet another
overflow I found while investigating the issue.
v3: https://lore.kernel.org/20250327202722.63756-1-kuniyu@amazon.com
v2: https://lore.kernel.org/20250325195826.52385-1-kuniyu@amazon.com
v1: https://lore.kernel.org/20250323231016.74813-1-kuniyu@amazon.com
====================
Link: https://patch.msgid.link/20250401184501.67377-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 file changed
+24
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1625 | 1625 | | |
1626 | 1626 | | |
1627 | 1627 | | |
1628 | | - | |
1629 | | - | |
| 1628 | + | |
| 1629 | + | |
1630 | 1630 | | |
1631 | 1631 | | |
1632 | 1632 | | |
1633 | | - | |
| 1633 | + | |
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
| |||
1650 | 1650 | | |
1651 | 1651 | | |
1652 | 1652 | | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
| 1653 | + | |
| 1654 | + | |
1657 | 1655 | | |
1658 | 1656 | | |
1659 | 1657 | | |
| |||
1725 | 1723 | | |
1726 | 1724 | | |
1727 | 1725 | | |
1728 | | - | |
| 1726 | + | |
1729 | 1727 | | |
1730 | | - | |
| 1728 | + | |
1731 | 1729 | | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | 1730 | | |
1736 | 1731 | | |
1737 | | - | |
1738 | | - | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1739 | 1745 | | |
1740 | 1746 | | |
1741 | 1747 | | |
| |||
1745 | 1751 | | |
1746 | 1752 | | |
1747 | 1753 | | |
1748 | | - | |
| 1754 | + | |
1749 | 1755 | | |
1750 | 1756 | | |
1751 | | - | |
| 1757 | + | |
1752 | 1758 | | |
1753 | 1759 | | |
1754 | 1760 | | |
| |||
1835 | 1841 | | |
1836 | 1842 | | |
1837 | 1843 | | |
1838 | | - | |
| 1844 | + | |
1839 | 1845 | | |
1840 | 1846 | | |
1841 | 1847 | | |
| |||
1868 | 1874 | | |
1869 | 1875 | | |
1870 | 1876 | | |
| 1877 | + | |
1871 | 1878 | | |
1872 | | - | |
1873 | 1879 | | |
1874 | 1880 | | |
1875 | 1881 | | |
| |||
0 commit comments