]> git.baikalelectronics.ru Git - kernel.git/commit
af-packet: fix - avoid reading stale data
authorChetan Loke <loke.chetan@gmail.com>
Thu, 14 Jul 2011 15:36:33 +0000 (08:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:36:33 +0000 (08:36 -0700)
commit1afc47220cbc8dde364e59c2ffe9bb559ad14928
treefb362018297a83c9c288a000893d7dbb88a3aead
parentc422ff65cc1ac49aa904a0e0208bda348a5587b9
af-packet: fix - avoid reading stale data

Currently we flush tp_status and then flush the remainder of the header+payload.
tp_status should be flushed in the end to avoid stale data being read by user-space.

Incorrectly re-ordered barriers in v1.

Signed-off-by: Chetan Loke <loke.chetan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c