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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Thu, 16 May 2019 12:18:41 -0700 (PDT)
From:   David Miller <>
Subject: Re: [PATCH net] net: test nouarg before dereferencing zerocopy

From: Willem de Bruijn <>
Date: Wed, 15 May 2019 13:29:16 -0400

> From: Willem de Bruijn <>
> Zerocopy skbs without completion notification were added for packet
> sockets with PACKET_TX_RING user buffers. Those signal completion
> through the TP_STATUS_USER bit in the ring. Zerocopy annotation was
> added only to avoid premature notification after clone or orphan, by
> triggering a copy on these paths for these packets.
> The mechanism had to define a special "no-uarg" mode because packet
> sockets already use skb_uarg(skb) == skb_shinfo(skb)->destructor_arg
> for a different pointer.
> Before deferencing skb_uarg(skb), verify that it is a real pointer.
> Fixes: 5cd8d46ea1562 ("packet: copy user buffers before orphan or clone")
> Signed-off-by: Willem de Bruijn <>

Applied and queued up for -stable, thanks.

Powered by blists - more mailing lists