Thread (13 messages) flat view 13 messages, 4 authors, 2017-01-25

Re: [Xen-devel] xennet_start_xmit assumptions

From: Sowmini Varadhan <hidden>
Date: 2017-01-19 22:41:37

On (01/19/17 13:47), Sowmini Varadhan wrote:
quoted
Specifically I'm talking about the dev_validate_header() check.
That is supposed to protect us from these kinds of situations.
ah, but I run my pf_packet application as root, so I have 
capable(CAP_SYS_RAWIO), so I slip through the dev_validate_header()
check.
and in that light, should dev_validate_header()
always return false if len == 0?

that will take care of all the send paths in af_packet.c
but it impacts all drivers as well (even though it is the
logically correct thing to do..)

--Sowmini
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help