Re: [PATCH] net: Make skb_seq_read unmap the last fragment

2007-06-23 Thread David Miller
From: Olaf Kirch <[EMAIL PROTECTED]> Date: Tue, 19 Jun 2007 09:56:24 +0200 > From: Olaf Kirch <[EMAIL PROTECTED]> > > Make skb_seq_read unmap the last fragment > > Having walked through the entire skbuff, skb_seq_read would leave the > last fragment mapped. As a consequence, the unwary caller w

[PATCH] net: Make skb_seq_read unmap the last fragment

2007-06-19 Thread Olaf Kirch
From: Olaf Kirch <[EMAIL PROTECTED]> Make skb_seq_read unmap the last fragment Having walked through the entire skbuff, skb_seq_read would leave the last fragment mapped. As a consequence, the unwary caller would leak kmaps, and proceed with preempt_count off by one. The only (kind of non-intuit