[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DCFE6C974@AcuExch.aculab.com>
Date: Tue, 21 Feb 2017 13:25:03 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Al Viro' <viro@...IV.linux.org.uk>,
David Miller <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"eric.dumazet@...il.com" <eric.dumazet@...il.com>,
"rlwinm@....org" <rlwinm@....org>,
"alexmcwhirter@...adic.us" <alexmcwhirter@...adic.us>,
"chunkeey@...glemail.com" <chunkeey@...glemail.com>
Subject: RE: [PATCH][CFT] Saner error handling in skb_copy_datagram_iter()
et.al.
From: Al Viro
> Sent: 18 February 2017 00:02
...
> Actually, I've a better solution. Namely, analogue of iov_iter_advance()
> for going backwards. The restriction is that you should never unroll
> further than where you've initially started *or* have the iovec, etc.
> array modified under you
...
> +void iov_iter_unroll(struct iov_iter *i, size_t unroll)
...
I'm sure there is a better name, maybe iov_iter_backup() ?
David
Powered by blists - more mailing lists