Commit b6ecc66
net: mana: Fix error handling in mana_create_txq/rxq's NAPI cleanup
Currently napi_disable() gets called during rxq and txq cleanup,
even before napi is enabled and hrtimer is initialized. It causes
kernel panic.
? page_fault_oops+0x136/0x2b0
? page_counter_cancel+0x2e/0x80
? do_user_addr_fault+0x2f2/0x640
? refill_obj_stock+0xc4/0x110
? exc_page_fault+0x71/0x160
? asm_exc_page_fault+0x27/0x30
? __mmdrop+0x10/0x180
? __mmdrop+0xec/0x180
? hrtimer_active+0xd/0x50
hrtimer_try_to_cancel+0x2c/0xf0
hrtimer_cancel+0x15/0x30
napi_disable+0x65/0x90
mana_destroy_rxq+0x4c/0x2f0
mana_create_rxq.isra.0+0x56c/0x6d0
? mana_uncfg_vport+0x50/0x50
mana_alloc_queues+0x21b/0x320
? skb_dequeue+0x5f/0x80
Cc: stable@vger.kernel.org
Fixes: e1b5683 ("net: mana: Move NAPI from EQ to CQ")
Signed-off-by: Souradeep Chakrabarti <schakrabarti@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 33f339a commit b6ecc66
2 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1872 | 1872 | | |
1873 | 1873 | | |
1874 | 1874 | | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
1879 | 1881 | | |
1880 | 1882 | | |
1881 | 1883 | | |
| |||
1931 | 1933 | | |
1932 | 1934 | | |
1933 | 1935 | | |
| 1936 | + | |
1934 | 1937 | | |
1935 | 1938 | | |
1936 | 1939 | | |
| |||
1997 | 2000 | | |
1998 | 2001 | | |
1999 | 2002 | | |
| 2003 | + | |
2000 | 2004 | | |
2001 | 2005 | | |
2002 | 2006 | | |
| |||
2008 | 2012 | | |
2009 | 2013 | | |
2010 | 2014 | | |
2011 | | - | |
| 2015 | + | |
2012 | 2016 | | |
2013 | 2017 | | |
2014 | 2018 | | |
| |||
2023 | 2027 | | |
2024 | 2028 | | |
2025 | 2029 | | |
2026 | | - | |
| 2030 | + | |
2027 | 2031 | | |
2028 | 2032 | | |
2029 | | - | |
| 2033 | + | |
2030 | 2034 | | |
| 2035 | + | |
| 2036 | + | |
2031 | 2037 | | |
2032 | 2038 | | |
2033 | | - | |
2034 | | - | |
2035 | 2039 | | |
2036 | 2040 | | |
2037 | 2041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments