lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 5 Sep 2011 22:47:22 -0400 From: David Ward <david.ward@...mit.edu> To: <netdev@...r.kernel.org> CC: Julian Anastasov <ja@....bg>, Michał Mirosław <mirqus@...il.com>, David Ward <david.ward@...mit.edu> Subject: [PATCH 0/2] Fixes to flow cache for AF-specifc flowi structs v2: Return the length of the flow key as a multiple of sizeof(flow_compare_t), to reduce the number of shift operations. These fixes to the flow cache are needed with the conversion to AF-specific flowi structs. They are written so as to avoid introducing AF-specific code into net/core/flow.c. Note that __xfrm_policy_check (in net/xfrm/xfrm_policy.c) still allocates a struct flowi on the stack and passes it to flow_cache_lookup. My understanding is that since this is on the stack, this will not be aligned, and therefore it will cause problems with flow_hash_code and flow_key_compare. Is that correct? Signed-off-by: David Ward <david.ward@...mit.edu> David Ward (2): net: Align AF-specific flowi structs to long net: Handle different key sizes between address families in flow cache include/net/flow.h | 25 ++++++++++++++++++++++--- net/core/flow.c | 31 +++++++++++++++++-------------- 2 files changed, 39 insertions(+), 17 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists