aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorLin Ma <linma@zju.edu.cn>2023-06-30 16:19:11 +0800
committerSteffen Klassert <steffen.klassert@secunet.com>2023-07-03 10:51:45 +0200
commitd1e0e61d617ba17aa516db707aa871387566bbf7 (patch)
tree8ffa3623abaf8794ee7e3f870b227fce40a84f68 /tools/perf/scripts/python/export-to-postgresql.py
parentnet: af_key: fix sadb_x_filter validation (diff)
downloadlinux-d1e0e61d617ba17aa516db707aa871387566bbf7.tar.gz
linux-d1e0e61d617ba17aa516db707aa871387566bbf7.zip
net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure
According to all consumers code of attrs[XFRMA_SEC_CTX], like * verify_sec_ctx_len(), convert to xfrm_user_sec_ctx* * xfrm_state_construct(), call security_xfrm_state_alloc whose prototype is int security_xfrm_state_alloc(.., struct xfrm_user_sec_ctx *sec_ctx); * copy_from_user_sec_ctx(), convert to xfrm_user_sec_ctx * ... It seems that the expected parsing result for XFRMA_SEC_CTX should be structure xfrm_user_sec_ctx, and the current xfrm_sec_ctx is confusing and misleading (Luckily, they happen to have same size 8 bytes). This commit amend the policy structure to xfrm_user_sec_ctx to avoid ambiguity. Fixes: cf5cb79f6946 ("[XFRM] netlink: Establish an attribute policy") Signed-off-by: Lin Ma <linma@zju.edu.cn> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
=cf00f379d82d170712150588accd2ebe316c2226&follow=1'>wl12xx: silence tx_attr uninitialized warning in wl1271_tx_fill_hdrJohn W. Linville1-1/+1 2011-12-09udp_diag: Wire the udp_diag module into kbuildPavel Emelyanov2-0/+5 2011-12-09udp_diag: Implement the dump-all functionalityPavel Emelyanov1-0/+54 2011-12-09udp_diag: Implement the get_exact dumping functionalityPavel Emelyanov1-1/+51