Staging
v0.8.1
https://github.com/torvalds/linux
Revision 5b5a60da281c767196427ce8144deae6ec46b389 authored by Olaf Kirch on 24 June 2007, 06:11:52 UTC, committed by David S. Miller on 24 June 2007, 06:11:52 UTC
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-intuitive) workaround is to use skb_seq_read_abort.

This patch makes sure skb_seq_read always unmaps frag_data after
having cycled through the skb's paged part.

Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 515e06c
History
Tip revision: 5b5a60da281c767196427ce8144deae6ec46b389 authored by Olaf Kirch on 24 June 2007, 06:11:52 UTC
[NET]: Make skb_seq_read unmap the last fragment
Tip revision: 5b5a60d
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 89.3 KB
Kbuild -rw-r--r-- 1.5 KB
MAINTAINERS -rw-r--r-- 87.8 KB
Makefile -rw-r--r-- 49.2 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top