summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_vti.c
diff options
context:
space:
mode:
authorLv Yunlong <lyl2019@mail.ustc.edu.cn>2021-03-31 04:59:59 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-01 00:26:56 +0300
commitbdc2ab5c61a5c07388f4820ff21e787b4dfd1ced (patch)
treee4de98593b2567237161731b200b533b4de41f87 /net/ipv6/ip6_vti.c
parentd47ec7a0a7271dda08932d6208e4ab65ab0c987c (diff)
downloadlinux-bdc2ab5c61a5c07388f4820ff21e787b4dfd1ced.tar.xz
net/rds: Fix a use after free in rds_message_map_pages
In rds_message_map_pages, the rm is freed by rds_message_put(rm). But rm is still used by rm->data.op_sg in return value. My patch assigns ERR_CAST(rm->data.op_sg) to err before the rm is freed to avoid the uaf. Fixes: 7dba92037baf3 ("net/rds: Use ERR_PTR for rds_message_alloc_sgs()") Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn> Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_vti.c')
0 files changed, 0 insertions, 0 deletions