Revision 9c1c2b35f1d94de8325344c2777d7ee67492db3b authored by Jeff Layton on 03 April 2019, 17:16:01 UTC, committed by Ilya Dryomov on 21 January 2020, 18:02:37 UTC
Currently, we just assume that it will stick around by virtue of the submitter's reference, but later patches will allow the syscall to return early and we can't rely on that reference at that point. While I'm not aware of any reports of it, Xiubo pointed out that this may fix a use-after-free. If the wait for a reply times out or is canceled via signal, and then the reply comes in after the syscall returns, the client can end up trying to access r_parent without a reference. Take an extra reference to the inode when setting r_parent and release it when releasing the request. Cc: stable@vger.kernel.org Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent def9d27
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 8.8 KB |
Makefile | -rw-r--r-- | 1.1 KB |
aead_api.c | -rw-r--r-- | 2.5 KB |
aead_api.h | -rw-r--r-- | 569 bytes |
aes_ccm.h | -rw-r--r-- | 1.0 KB |
aes_cmac.c | -rw-r--r-- | 1.6 KB |
aes_cmac.h | -rw-r--r-- | 592 bytes |
aes_gcm.h | -rw-r--r-- | 1013 bytes |
aes_gmac.c | -rw-r--r-- | 1.9 KB |
aes_gmac.h | -rw-r--r-- | 534 bytes |
agg-rx.c | -rw-r--r-- | 16.5 KB |
agg-tx.c | -rw-r--r-- | 28.7 KB |
airtime.c | -rw-r--r-- | 16.2 KB |
cfg.c | -rw-r--r-- | 107.7 KB |
chan.c | -rw-r--r-- | 44.9 KB |
debug.h | -rw-r--r-- | 5.0 KB |
debugfs.c | -rw-r--r-- | 14.7 KB |
debugfs.h | -rw-r--r-- | 440 bytes |
debugfs_key.c | -rw-r--r-- | 11.6 KB |
debugfs_key.h | -rw-r--r-- | 1.2 KB |
debugfs_netdev.c | -rw-r--r-- | 24.0 KB |
debugfs_netdev.h | -rw-r--r-- | 771 bytes |
debugfs_sta.c | -rw-r--r-- | 32.0 KB |
debugfs_sta.h | -rw-r--r-- | 466 bytes |
driver-ops.c | -rw-r--r-- | 7.9 KB |
driver-ops.h | -rw-r--r-- | 34.2 KB |
ethtool.c | -rw-r--r-- | 6.2 KB |
fils_aead.c | -rw-r--r-- | 8.3 KB |
fils_aead.h | -rw-r--r-- | 473 bytes |
he.c | -rw-r--r-- | 2.4 KB |
ht.c | -rw-r--r-- | 17.2 KB |
ibss.c | -rw-r--r-- | 51.1 KB |
ieee80211_i.h | -rw-r--r-- | 71.8 KB |
iface.c | -rw-r--r-- | 52.5 KB |
key.c | -rw-r--r-- | 35.0 KB |
key.h | -rw-r--r-- | 4.6 KB |
led.c | -rw-r--r-- | 10.0 KB |
led.h | -rw-r--r-- | 2.5 KB |
main.c | -rw-r--r-- | 40.2 KB |
mesh.c | -rw-r--r-- | 42.6 KB |
mesh.h | -rw-r--r-- | 13.1 KB |
mesh_hwmp.c | -rw-r--r-- | 36.3 KB |
mesh_pathtbl.c | -rw-r--r-- | 21.0 KB |
mesh_plink.c | -rw-r--r-- | 32.0 KB |
mesh_ps.c | -rw-r--r-- | 16.2 KB |
mesh_sync.c | -rw-r--r-- | 6.4 KB |
michael.c | -rw-r--r-- | 2.0 KB |
michael.h | -rw-r--r-- | 456 bytes |
mlme.c | -rw-r--r-- | 163.6 KB |
ocb.c | -rw-r--r-- | 6.6 KB |
offchannel.c | -rw-r--r-- | 26.3 KB |
pm.c | -rw-r--r-- | 5.5 KB |
rate.c | -rw-r--r-- | 25.2 KB |
rate.h | -rw-r--r-- | 2.3 KB |
rc80211_minstrel.c | -rw-r--r-- | 17.4 KB |
rc80211_minstrel.h | -rw-r--r-- | 3.9 KB |
rc80211_minstrel_debugfs.c | -rw-r--r-- | 5.8 KB |
rc80211_minstrel_ht.c | -rw-r--r-- | 46.9 KB |
rc80211_minstrel_ht.h | -rw-r--r-- | 2.8 KB |
rc80211_minstrel_ht_debugfs.c | -rw-r--r-- | 8.8 KB |
rx.c | -rw-r--r-- | 128.6 KB |
scan.c | -rw-r--r-- | 37.0 KB |
spectmgmt.c | -rw-r--r-- | 7.6 KB |
sta_info.c | -rw-r--r-- | 68.0 KB |
sta_info.h | -rw-r--r-- | 28.9 KB |
status.c | -rw-r--r-- | 35.4 KB |
tdls.c | -rw-r--r-- | 55.6 KB |
tkip.c | -rw-r--r-- | 11.0 KB |
tkip.h | -rw-r--r-- | 697 bytes |
trace.c | -rw-r--r-- | 1.3 KB |
trace.h | -rw-r--r-- | 56.3 KB |
trace_msg.h | -rw-r--r-- | 1.3 KB |
tx.c | -rw-r--r-- | 137.7 KB |
util.c | -rw-r--r-- | 103.4 KB |
vht.c | -rw-r--r-- | 18.6 KB |
wep.c | -rw-r--r-- | 8.3 KB |
wep.h | -rw-r--r-- | 906 bytes |
wme.c | -rw-r--r-- | 6.2 KB |
wme.h | -rw-r--r-- | 681 bytes |
wpa.c | -rw-r--r-- | 31.7 KB |
wpa.h | -rw-r--r-- | 1.6 KB |
Computing file changes ...