Commit 4ce72eb
ath11k: Avoid NULL ptr access during mgmt tx cleanup
[ Upstream commit a93789a ]
Currently 'ar' reference is not added in skb_cb during
WMI mgmt tx. Though this is generally not used during tx completion
callbacks, on interface removal the remaining idr cleanup callback
uses the ar ptr from skb_cb from mgmt txmgmt_idr. Hence
fill them during tx call for proper usage.
Also free the skb which is missing currently in these
callbacks.
Crash_info:
[19282.489476] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[19282.489515] pgd = 91eb8000
[19282.496702] [00000000] *pgd=00000000
[19282.502524] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[19282.783728] PC is at ath11k_mac_vif_txmgmt_idr_remove+0x28/0xd8 [ath11k]
[19282.789170] LR is at idr_for_each+0xa0/0xc8
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-00729-QCAHKSWPL_SILICONZ-3 v2
Signed-off-by: Sriram R <quic_srirrama@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1637832614-13831-1-git-send-email-quic_srirrama@quicinc.com
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent bd2b526 commit 4ce72eb
1 file changed
+20
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
4935 | 4936 | | |
4936 | 4937 | | |
4937 | 4938 | | |
4938 | | - | |
| 4939 | + | |
4939 | 4940 | | |
4940 | | - | |
| 4941 | + | |
4941 | 4942 | | |
4942 | | - | |
4943 | | - | |
4944 | 4943 | | |
4945 | 4944 | | |
4946 | | - | |
| 4945 | + | |
4947 | 4946 | | |
4948 | | - | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
4949 | 4952 | | |
4950 | 4953 | | |
4951 | 4954 | | |
4952 | 4955 | | |
4953 | 4956 | | |
4954 | 4957 | | |
| 4958 | + | |
| 4959 | + | |
| 4960 | + | |
| 4961 | + | |
| 4962 | + | |
| 4963 | + | |
| 4964 | + | |
4955 | 4965 | | |
4956 | 4966 | | |
4957 | 4967 | | |
| |||
4960 | 4970 | | |
4961 | 4971 | | |
4962 | 4972 | | |
4963 | | - | |
4964 | 4973 | | |
4965 | | - | |
4966 | 4974 | | |
4967 | | - | |
4968 | | - | |
4969 | | - | |
4970 | | - | |
4971 | | - | |
4972 | | - | |
4973 | | - | |
| 4975 | + | |
| 4976 | + | |
4974 | 4977 | | |
4975 | 4978 | | |
4976 | 4979 | | |
| |||
4985 | 4988 | | |
4986 | 4989 | | |
4987 | 4990 | | |
| 4991 | + | |
| 4992 | + | |
4988 | 4993 | | |
4989 | 4994 | | |
4990 | 4995 | | |
| |||
0 commit comments