On 06/27/2018 02:59 PM, Jesus Sanchez-Palencia wrote: > From: Richard Cochran <rcoch...@linutronix.de> > > This patch introduces SO_TXTIME. User space enables this option in > order to pass a desired future transmit time in a CMSG when calling > sendmsg(2). The argument to this socket option is a 6-bytes long struct > defined as: > > struct sock_txtime { > clockid_t clockid; > u16 flags; > }; Note that sizeof(struct sock_txtime) is 8, not 6, because of alignments. This means that your implementation of getsockopt(... SO_TXTIME ) is probably leaking two bytes of kernel stack to user space.
- [PATCH v1 net-next 06/14] net/sched: Introduce the ... Jesus Sanchez-Palencia
- [PATCH v1 net-next 10/14] igb: Refactor igb_offload... Jesus Sanchez-Palencia
- [PATCH v1 net-next 04/14] net: packet: Hook into ti... Jesus Sanchez-Palencia
- [PATCH v1 net-next 12/14] igb: Only call skb_tx_tim... Jesus Sanchez-Palencia
- Re: [PATCH v1 net-next 12/14] igb: Only call s... Eric Dumazet
- Re: [PATCH v1 net-next 12/14] igb: Only ca... Jesus Sanchez-Palencia
- [PATCH v1 net-next 11/14] igb: Add support for ETF ... Jesus Sanchez-Palencia
- [PATCH v1 net-next 05/14] net/sched: Allow creating... Jesus Sanchez-Palencia
- [PATCH v1 net-next 01/14] net: Clear skb->tstamp... Jesus Sanchez-Palencia
- [PATCH v1 net-next 02/14] net: Add a new socket opt... Jesus Sanchez-Palencia
- Re: [PATCH v1 net-next 02/14] net: Add a new s... Eric Dumazet
- Re: [PATCH v1 net-next 02/14] net: Add a n... Jesus Sanchez-Palencia
- Re: [PATCH v1 net-next 02/14] net: Add... Eric Dumazet
- Re: [PATCH v1 net-next 02/14] net: Add a new s... kbuild test robot
- Re: [PATCH v1 net-next 02/14] net: Add a new s... Willem de Bruijn
- Re: [PATCH v1 net-next 02/14] net: Add a n... Willem de Bruijn
- Re: [PATCH v1 net-next 02/14] net: Add... Jesus Sanchez-Palencia