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
| ||
|
Message-Id: <1424916612-744-1-git-send-email-eyal.birger@gmail.com> Date: Thu, 26 Feb 2015 04:10:05 +0200 From: Eyal Birger <eyal.birger@...il.com> To: davem@...emloft.net Cc: willemb@...gle.com, edumazet@...gle.com, shmulik.ladkani@...il.com, marcel@...tmann.org, netdev@...r.kernel.org, Eyal Birger <eyal.birger@...il.com> Subject: [PATCH net-next 0/7] net: move skb->dropcount to skb->cb[] Commit 977750076d98 ("af_packet: add interframe drop cmsg (v6)") unionized skb->mark and skb->dropcount in order to allow recording of the socket drop count while maintaining struct sk_buff size. skb->dropcount was introduced since there was no available room in skb->cb[] in packet sockets. However, its introduction led to the inability to export skb->mark to userspace. It was considered to alias skb->priority instead of skb->mark. However, that would lead to the inabilty to export skb->priority to userspace if desired. Such change may also lead to hard-to-find issues as skb->priority is assumed to be alias free, and, as noted by Shmulik Ladkani, is not 'naturally orthogonal' with other skb fields. This patch series follows the suggestions made by Eric Dumazet moving the dropcount metric to skb->cb[], eliminating this problem at the expense of 4 bytes less in skb->cb[] for protocol families using it. The patch series include compactization of bluetooth and packet use of skb->cb[] as well as the infrastructure for placing dropcount in skb->cb[]. Eyal Birger (7): net: bluetooth: compact struct bt_skb_cb by inlining struct hci_req_ctrl net: bluetooth: compact struct bt_skb_cb by converting boolean fields to bit fields net: rxrpc: change call to sock_recv_ts_and_drops() on rxrpc recvmsg to sock_recv_timestamp() net: packet: use skb->dev as storage for skb orig len instead of skb->cb[] net: use common macro for assering skb->cb[] available size in protocol families net: add common accessor for setting dropcount on packets net: move skb->dropcount to skb->cb[] include/linux/skbuff.h | 2 -- include/net/bluetooth/bluetooth.h | 14 +++++--------- include/net/sock.h | 22 ++++++++++++++++++++++ net/bluetooth/af_bluetooth.c | 3 +-- net/bluetooth/hci_core.c | 12 ++++++------ net/bluetooth/hci_event.c | 4 ++-- net/bluetooth/hci_request.c | 6 +++--- net/bluetooth/hci_sock.c | 2 +- net/can/bcm.c | 2 +- net/can/raw.c | 6 +++--- net/core/sock.c | 2 +- net/ipv4/af_inet.c | 2 +- net/ipv4/tcp.c | 3 +-- net/ipv6/af_inet6.c | 2 +- net/packet/af_packet.c | 12 +++++------- net/rxrpc/ar-recvmsg.c | 2 +- net/sctp/protocol.c | 3 +-- net/socket.c | 4 ++-- 18 files changed, 57 insertions(+), 46 deletions(-) -- 2.1.4 -- 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