Commit b4afe3f
Paolo Abeni
Merge branch 'net-lan966x-fix-page_pool-error-handling-and-error-paths'
David Carlier says:
====================
net: lan966x: fix page_pool error handling and error paths
This series fixes error handling around the lan966x page pool:
1/3 adds the missing IS_ERR check after page_pool_create(), preventing
a kernel oops when the error pointer flows into
xdp_rxq_info_reg_mem_model().
2/3 plugs page pool leaks in the lan966x_fdma_rx_alloc() and
lan966x_fdma_init() error paths, now reachable after 1/3.
3/3 fixes a use-after-free and page pool leak in the
lan966x_fdma_reload() restore path, where the hardware could
resume DMA into pages already returned to the page pool.
====================
Link: https://patch.msgid.link/20260405055241.35767-1-devnexen@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 file changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
808 | 812 | | |
809 | 813 | | |
810 | 814 | | |
| 815 | + | |
811 | 816 | | |
812 | 817 | | |
813 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
814 | 824 | | |
815 | 825 | | |
816 | 826 | | |
| |||
821 | 831 | | |
822 | 832 | | |
823 | 833 | | |
824 | | - | |
825 | 834 | | |
826 | 835 | | |
827 | 836 | | |
828 | 837 | | |
829 | 838 | | |
830 | 839 | | |
831 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
832 | 846 | | |
833 | 847 | | |
834 | 848 | | |
835 | 849 | | |
836 | 850 | | |
837 | 851 | | |
838 | 852 | | |
839 | | - | |
| 853 | + | |
| 854 | + | |
840 | 855 | | |
841 | 856 | | |
842 | 857 | | |
843 | 858 | | |
844 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
845 | 864 | | |
846 | 865 | | |
847 | 866 | | |
| |||
955 | 974 | | |
956 | 975 | | |
957 | 976 | | |
| 977 | + | |
958 | 978 | | |
959 | 979 | | |
960 | 980 | | |
| |||
0 commit comments