Repository navigation
Commit adbe148
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 [raspberrypi#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 ab523ea commit adbe148
1 file changed
Lines changed: 20 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
3883 | 3884 | | |
3884 | 3885 | | |
3885 | 3886 | | |
3886 | | - | |
| 3887 | + | |
3887 | 3888 | | |
3888 | | - | |
| 3889 | + | |
3889 | 3890 | | |
3890 | | - | |
3891 | | - | |
3892 | 3891 | | |
3893 | 3892 | | |
3894 | | - | |
| 3893 | + | |
3895 | 3894 | | |
3896 | | - | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
3897 | 3900 | | |
3898 | 3901 | | |
3899 | 3902 | | |
3900 | 3903 | | |
3901 | 3904 | | |
3902 | 3905 | | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
3903 | 3913 | | |
3904 | 3914 | | |
3905 | 3915 | | |
| |||
3908 | 3918 | | |
3909 | 3919 | | |
3910 | 3920 | | |
3911 | | - | |
3912 | 3921 | | |
3913 | | - | |
3914 | 3922 | | |
3915 | | - | |
3916 | | - | |
3917 | | - | |
3918 | | - | |
3919 | | - | |
3920 | | - | |
3921 | | - | |
| 3923 | + | |
| 3924 | + | |
3922 | 3925 | | |
3923 | 3926 | | |
3924 | 3927 | | |
| |||
3933 | 3936 | | |
3934 | 3937 | | |
3935 | 3938 | | |
| 3939 | + | |
| 3940 | + | |
3936 | 3941 | | |
3937 | 3942 | | |
3938 | 3943 | | |
| |||
0 commit comments