David S. Miller
51c739d1f4
[NET]: Fix incorrect sg_mark_end() calls.
...
This fixes scatterlist corruptions added by
commit 68e3f5dd4d
[CRYPTO] users: Fix up scatterlist conversion errors
The issue is that the code calls sg_mark_end() which clobbers the
sg_page() pointer of the final scatterlist entry.
The first part fo the fix makes skb_to_sgvec() do __sg_mark_end().
After considering all skb_to_sgvec() call sites the most correct
solution is to call __sg_mark_end() in skb_to_sgvec() since that is
what all of the callers would end up doing anyways.
I suspect this might have fixed some problems in virtio_net which is
the sole non-crypto user of skb_to_sgvec().
Other similar sg_mark_end() cases were converted over to
__sg_mark_end() as well.
Arguably sg_mark_end() is a poorly named function because it doesn't
just "mark", it clears out the page pointer as a side effect, which is
what led to these bugs in the first place.
The one remaining plain sg_mark_end() call is in scsi_alloc_sgtable()
and arguably it could be converted to __sg_mark_end() if only so that
we can delete this confusing interface from linux/scatterlist.h
Signed-off-by: David S. Miller <[email protected] >
2007-10-30 21:29:29 -07:00
..
netfilter
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
2007-10-18 14:40:30 -07:00
addrconf.c
[IPV6]: remove duplicate call to proc_net_remove
2007-10-30 21:16:24 -07:00
addrconf_core.c
[IPV6]: ipv6_addr_type() doesn't know about RFC4193 addresses.
2007-07-31 02:28:21 -07:00
af_inet6.c
[IPV6]: Fix memory leak in cleanup_ipv6_mibs()
2007-10-17 19:30:40 -07:00
ah6.c
[IPSEC] IPV6: Fix to add tunnel mode SA correctly.
2007-10-22 02:59:58 -07:00
anycast.c
[NET]: Make core networking code use seq_open_private
2007-10-10 16:55:33 -07:00
datagram.c
[NET]: Make the device list and device lookups per namespace.
2007-10-10 16:49:10 -07:00
esp6.c
[NET]: Fix incorrect sg_mark_end() calls.
2007-10-30 21:29:29 -07:00
exthdrs.c
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
exthdrs_core.c
fib6_rules.c
[IPV4/IPV6/DECNET]: Small cleanup for fib rules.
2007-10-10 16:51:22 -07:00
icmp.c
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
inet6_connection_sock.c
[IPV6] __inet6_csk_dst_store(): fix check-after-use
2007-10-15 12:26:32 -07:00
inet6_hashtables.c
[INET]: Justification for local port range robustness.
2007-10-18 22:00:17 -07:00
ip6_fib.c
[IPv6]: use container_of() macro in fib6_clean_node()
2007-10-10 16:54:58 -07:00
ip6_flowlabel.c
[IPV6]: Fix again the fl6_sock_lookup() fixed locking
2007-10-18 05:38:48 -07:00
ip6_input.c
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
ip6_output.c
[NET]: Treat the sign of the result of skb_headroom() consistently
2007-10-23 21:27:55 -07:00
ip6_tunnel.c
[NET]: Treat the sign of the result of skb_headroom() consistently
2007-10-23 21:27:55 -07:00
ipcomp6.c
[IPSEC]: Disallow combinations of RO and AH/ESP/IPCOMP
2007-10-17 21:35:15 -07:00
ipv6_sockglue.c
[IPv6]: Update setsockopt(IPV6_MULTICAST_IF) to support RFC 3493, try2
2007-10-11 14:39:29 -07:00
Kconfig
[IPV6] MIP6: Loadable module support for MIPv6.
2007-07-10 22:15:42 -07:00
Makefile
[IPV6] MIP6: Loadable module support for MIPv6.
2007-07-10 22:15:42 -07:00
mcast.c
[NET]: Make core networking code use seq_open_private
2007-10-10 16:55:33 -07:00
mip6.c
[IPSEC]: Move IP length/checksum setting out of transforms
2007-10-10 16:55:56 -07:00
ndisc.c
[IPV6] NDISC: Fix setting base_reachable_time_ms variable.
2007-10-29 22:37:22 -07:00
netfilter.c
[NETFILTER]: Replace sk_buff ** with sk_buff *
2007-10-15 12:26:29 -07:00
proc.c
[INET]: Collect frag queues management objects together
2007-10-15 12:26:39 -07:00
protocol.c
raw.c
[NET]: Make core networking code use seq_open_private
2007-10-10 16:55:33 -07:00
reassembly.c
[INET]: Consolidate frag queues freeing
2007-10-17 19:48:26 -07:00
route.c
sysctl: ipv6 route flushing (kill binary path)
2007-10-18 14:37:22 -07:00
sit.c
[NET]: Treat the sign of the result of skb_headroom() consistently
2007-10-23 21:27:55 -07:00
sysctl_net_ipv6.c
[INET]: Collect common frag sysctl variables together
2007-10-15 12:26:40 -07:00
tcp_ipv6.c
[NET]: Fix incorrect sg_mark_end() calls.
2007-10-30 21:29:29 -07:00
tunnel6.c
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
udp.c
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
udp_impl.h
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
udplite.c
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers
2007-10-15 12:50:28 -07:00
xfrm6_input.c
[IPSEC]: Rename mode to outer_mode and add inner_mode
2007-10-17 21:35:51 -07:00
xfrm6_mode_beet.c
[IPSEC]: Add missing BEET checks
2007-10-17 21:31:50 -07:00
xfrm6_mode_ro.c
[IPSEC]: Disallow combinations of RO and AH/ESP/IPCOMP
2007-10-17 21:35:15 -07:00
xfrm6_mode_transport.c
[IPSEC]: Use IPv6 calling convention as the convention for x->mode->output
2007-10-10 16:55:54 -07:00
xfrm6_mode_tunnel.c
[IPSEC]: Add missing BEET checks
2007-10-17 21:31:50 -07:00
xfrm6_output.c
[IPSEC]: Rename mode to outer_mode and add inner_mode
2007-10-17 21:35:51 -07:00
xfrm6_policy.c
[IPSEC]: Rename mode to outer_mode and add inner_mode
2007-10-17 21:35:51 -07:00
xfrm6_state.c
[IPSEC]: Store afinfo pointer in xfrm_mode
2007-10-17 21:33:12 -07:00
xfrm6_tunnel.c
[IPSEC]: Get nexthdr from caller in xfrm6_rcv_spi
2007-10-17 21:29:25 -07:00