Linux 2.6.14.3
Subsystems (15)
We (the -stable team) are announcing the release of the 2.6.14.3 kernel.
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.14.2 and 2.6.14.3, as it is small enough to do so.
The updated 2.6.14.y git tree can be found at:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/chrisw/linux-2.6.14.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
-chris
--------
Makefile | 2 arch/i386/kernel/cpu/mtrr/main.c | 8 +++ arch/ppc64/Kconfig | 11 +--- arch/x86_64/kernel/setup.c | 5 ++ drivers/block/pktcdvd.c | 2 drivers/char/rtc.c | 65 +++++++++++++++------------ drivers/hwmon/it87.c | 7 ++ drivers/hwmon/lm78.c | 2 drivers/hwmon/w83627hf.c | 8 ++- drivers/isdn/hardware/eicon/os_4bri.c | 3 - drivers/net/wan/hdlc_cisco.c | 6 ++ drivers/net/wan/hdlc_fr.c | 4 + drivers/net/wan/hdlc_generic.c | 6 ++ fs/locks.c | 2 include/net/ipv6.h | 2 kernel/signal.c | 2 net/ipv4/netfilter/ip_conntrack_ftp.c | 4 - net/ipv4/netfilter/ip_conntrack_irc.c | 4 - net/ipv4/netfilter/ip_conntrack_netlink.c | 9 ++- net/ipv4/netfilter/ip_conntrack_proto_icmp.c | 3 - net/ipv4/netfilter/ip_conntrack_proto_tcp.c | 6 ++ net/ipv4/netfilter/ip_conntrack_tftp.c | 4 - net/ipv4/netfilter/ip_nat_core.c | 6 -- net/ipv4/netfilter/ip_nat_helper_pptp.c | 28 ++++++++++- net/ipv4/netfilter/ip_nat_proto_gre.c | 4 - net/ipv4/netfilter/ip_nat_proto_unknown.c | 2 net/ipv6/datagram.c | 2 net/ipv6/exthdrs.c | 22 ++++++++- net/ipv6/ip6_flowlabel.c | 12 +--- net/ipv6/raw.c | 4 + net/ipv6/udp.c | 4 + net/netfilter/nf_queue.c | 2 32 files changed, 177 insertions(+), 74 deletions(-)
Summary of changes from v2.6.14.2 to v2.6.14.3
==============================================
Adrian Bunk:
drivers/isdn/hardware/eicon/os_4bri.c: correct the xdiLoadFile() signature
Andi Kleen:
x86_64/i386: Compute correct MTRR mask on early Noconas
Chris Wright:
Linux 2.6.14.3
Harald Welte:
PPTP helper: Fix endianness bug in GRE key / CallID NAT
nf_queue: Fix Ooops when no queue handler registered
ctnetlink: check if protoinfo is present
ip_conntrack: fix ftp/irc/tftp helpers on ports >= 32768
J. Bruce Fields:
VFS: Fix memory leak with file leases
Jean Delvare:
hwmon: Fix lm78 VID conversion
hwmon: Fix missing it87 fan div init
Joel Schopp:
ppc64 memory model depends on NUMA
Krzysztof Halasa:
Generic HDLC WAN drivers - disable netif_carrier_off()
Krzysztof Piotr Oledzki:
ctnetlink: Fix oops when no ICMP ID info in message
Oleg Nesterov:
Don't auto-reap traced children
Peter Osterlund:
packet writing oops fix
Philip Craig:
PPTP helper: fix PNS-PAC expectation call id
Rusty Rusty:
NAT: Fix module refcount dropping too far
Takashi Iwai:
Fix soft lockup with ALSA rtc-timer
Ville Nuorvala:
Fix calculation of AH length during filling ancillary data.
Vlad Drukker:
ip_conntrack TCP: Accept SYN+PUSH like SYN
Yasuyuki Kozakai:
refcount leak of proto when ctnetlink dumping tuple
YOSHIFUJI Hideaki:
Fix memory management error during setting up new advapi sockopts. Fix sending extension headers before and including routing header.
Yuan Mu:
hwmon: Fix missing boundary check when setting W83627THF in0 limits
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 14 -EXTRAVERSION = .2 +EXTRAVERSION = .3 NAME=Affluent Albatross # *DOCUMENTATION*
arch/i386/kernel/cpu/mtrr/main.c +8 -0
@@ -626,6 +626,14 @@ void __init mtrr_bp_init(void)if (cpuid_eax (0x80000000 ) >=0x80000008 ) {u32 phys_addr; phys_addr =cpuid_eax (0x80000008 ) &0xff ; +/* CPUID workaround for Intel 0F33/0F34 CPU */ +if (boot_cpu_data.x86_vendor ==X86_VENDOR_INTEL && + boot_cpu_data.x86 ==0xF && + boot_cpu_data.x86_model ==0x3 && + (boot_cpu_data.x86_mask ==0x3 || + boot_cpu_data.x86_mask ==0x4 )) + phys_addr =36 ; + size_or_mask = ~((1 << (phys_addr -PAGE_SHIFT )) -1 ); size_and_mask = ~size_or_mask &0xfff00000 ; } else if (boot_cpu_data.x86_vendor == X86_VENDOR_CENTAUR &&
arch/ppc64/Kconfig +4 -7
@@ -234,6 +234,10 @@ config HMT This option enables hardware multithreading on RS64 cpus. pSeries systems p620 and p660 have such a cpu type. +config NUMA + bool "NUMA support" + default y if DISCONTIGMEM || SPARSEMEM + config ARCH_SELECT_MEMORY_MODEL def_bool y
@@ -249,9 +253,6 @@ config ARCH_DISCONTIGMEM_DEFAULT def_bool y depends on ARCH_DISCONTIGMEM_ENABLE -config ARCH_FLATMEM_ENABLE - def_bool y - config ARCH_SPARSEMEM_ENABLE def_bool y depends on ARCH_DISCONTIGMEM_ENABLE
@@ -274,10 +275,6 @@ config NODES_SPAN_OTHER_NODES def_bool y depends on NEED_MULTIPLE_NODES -config NUMA - bool "NUMA support" - default y if DISCONTIGMEM || SPARSEMEM - config SCHED_SMT bool "SMT (Hyperthreading) scheduler support" depends on SMP
arch/x86_64/kernel/setup.c +5 -0
@@ -993,6 +993,11 @@ static void __cpuinit init_intel(structunsigned eax =cpuid_eax (0x80000008 ); c->x86_virt_bits = (eax >>8 ) &0xff ; c->x86_phys_bits = eax &0xff ; +/* CPUID workaround for Intel 0F34 CPU */ +if (c->x86_vendor ==X86_VENDOR_INTEL && + c->x86 ==0xF && c->x86_model ==0x3 && + c->x86_mask ==0x4 ) + c->x86_phys_bits =36 ; }if (c->x86 ==15 )
drivers/block/pktcdvd.c +1 -1
@@ -1191,7 +1191,7 @@ static void pkt_count_states(struct pktcstruct packet_data *pkt;int i; -for (i =0 ; i <=PACKET_NUM_STATES ; i++) +for (i =0 ; i <PACKET_NUM_STATES ; i++) states[i] =0 ;spin_lock (&pd->cdrw.active_list_lock);
drivers/char/rtc.c +38 -27
152 lines not on this page · raw message
drivers/hwmon/it87.c +7 -0
@@ -522,8 +522,15 @@ static ssize_t set_fan_min(struct devicestruct i2c_client *client =to_i2c_client (dev);struct it87_data *data =i2c_get_clientdata (client);int val =simple_strtol (buf,NULL ,10 ); +u8 reg =it87_read_value (client,IT87_REG_FAN_DIV );down (&data->update_lock); +switch (nr) { +case 0 : data->fan_div[nr] = reg &0x07 ;break ; +case 1 : data->fan_div[nr] = (reg >>3 ) &0x07 ;break ; +case 2 : data->fan_div[nr] = (reg &0x40 ) ?3 :1 ;break ; + } + data->fan_min[nr] =FAN_TO_REG (val,DIV_FROM_REG (data->fan_div[nr]));it87_write_value (client,IT87_REG_FAN_MIN (nr), data->fan_min[nr]);up (&data->update_lock);
drivers/hwmon/lm78.c +1 -1
@@ -451,7 +451,7 @@ static DEVICE_ATTR(fan3_div, S_IRUGO, shstatic ssize_t show_vid (struct device *dev,struct device_attribute *attr,char *buf) {struct lm78_data *data =lm78_update_device (dev); -return sprintf (buf,"%d\n" ,vid_from_reg (82 , data->vid)); +return sprintf (buf,"%d\n" ,vid_from_reg (data->vid,82 )); } static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL);
drivers/hwmon/w83627hf.c +6 -2
@@ -454,7 +454,9 @@ static ssize_t store_regs_in_min0(struct (w83627thf == data->type || w83637hf == data->type))/* use VRM9 calculation */ - data->in_min[0 ] = (u8)(((val *100 ) -70000 +244 ) /488 ); + data->in_min[0 ] = +SENSORS_LIMIT (((val *100 ) -70000 +244 ) /488 ,0 , +255 ); else/* use VRM8 (standard) calculation */ data->in_min[0] = IN_TO_REG(val);
@@ -479,7 +481,9 @@ static ssize_t store_regs_in_max0(struct (w83627thf == data->type || w83637hf == data->type))/* use VRM9 calculation */ - data->in_max[0 ] = (u8)(((val *100 ) -70000 +244 ) /488 ); + data->in_max[0 ] = +SENSORS_LIMIT (((val *100 ) -70000 +244 ) /488 ,0 , +255 ); else/* use VRM8 (standard) calculation */ data->in_max[0] = IN_TO_REG(val);
drivers/isdn/hardware/eicon/os_4bri.c +2 -1
@@ -16,6 +16,7 @@#include "diva_pci.h" #include "mi_pc.h" #include "dsrv4bri.h" +#include "helpers.h" static void *diva_xdiLoadFileFile =NULL ;static dword diva_xdiLoadFileLength =0 ;
@@ -815,7 +816,7 @@ diva_4bri_cmd_card_proc(struct _diva_os_return (ret); } -void *xdiLoadFile (char *FileName,unsigned long *FileLength, +void *xdiLoadFile (char *FileName,dword *FileLength,unsigned long lim) {void *ret = diva_xdiLoadFileFile;
drivers/net/wan/hdlc_cisco.c +6 -0
@@ -192,7 +192,9 @@ static int cisco_rx(struct sk_buff *skb)"uptime %ud%uh%um%us)\n" , dev->name, days, hrs, min, sec); +#if 0 netif_carrier_on (dev); +#endif hdlc->state.cisco.up =1 ; } }
@@ -225,7 +227,9 @@ static void cisco_timer(unsigned long ar hdlc->state.cisco.settings.timeout * HZ)) { hdlc->state.cisco.up =0 ;printk (KERN_INFO "%s: Link down\n" , dev->name); +#if 0 netif_carrier_off (dev); +#endif } cisco_keepalive_send(dev, CISCO_KEEPALIVE_REQ,
@@ -261,8 +265,10 @@ static void cisco_stop(struct net_device {hdlc_device *hdlc =dev_to_hdlc (dev);del_timer_sync (&hdlc->state.cisco.timer); +#if 0 if (netif_carrier_ok (dev))netif_carrier_off (dev); +#endif hdlc->state.cisco.up =0 ; hdlc->state.cisco.request_sent =0 ; }
drivers/net/wan/hdlc_fr.c +4 -0
@@ -545,8 +545,10 @@ static void fr_set_link_state(int reliab hdlc->state.fr.reliable = reliable;if (reliable) { +#if 0 if (!netif_carrier_ok (dev))netif_carrier_on (dev); +#endif hdlc->state.fr.n391cnt =0 ;/* Request full status */ hdlc->state.fr.dce_changed =1 ;
@@ -560,8 +562,10 @@ static void fr_set_link_state(int reliab } } }else { +#if 0 if (netif_carrier_ok (dev))netif_carrier_off (dev); +#endif while (pvc) {/* Deactivate all PVCs */ pvc_carrier (0 , pvc);
drivers/net/wan/hdlc_generic.c +6 -0
@@ -79,11 +79,13 @@ static void __hdlc_set_carrier_on(structhdlc_device *hdlc =dev_to_hdlc (dev);if (hdlc->proto.start)return hdlc->proto.start (dev); +#if 0 #ifdef DEBUG_LINK if (netif_carrier_ok (dev))printk (KERN_ERR "hdlc_set_carrier_on(): already on\n" );#endif netif_carrier_on (dev); +#endif }
@@ -94,11 +96,13 @@ static void __hdlc_set_carrier_off(strucif (hdlc->proto.stop)return hdlc->proto.stop (dev); +#if 0 #ifdef DEBUG_LINK if (!netif_carrier_ok (dev))printk (KERN_ERR "hdlc_set_carrier_off(): already off\n" );#endif netif_carrier_off (dev); +#endif }
@@ -294,8 +298,10 @@ int register_hdlc_device(struct net_deviif (result !=0 )return -EIO ; +#if 0 if (netif_carrier_ok (dev))netif_carrier_off (dev);/* no carrier until DCD goes up */ +#endif return 0 ; }
fs/locks.c +1 -1
@@ -1418,7 +1418,7 @@ int fcntl_setlease(unsigned int fd, strulock_kernel (); error =__setlease (filp, arg, &flp); -if (error) +if (error || arg ==F_UNLCK ) goto out_unlock; error =fasync_helper (fd, filp,1 , &flp->fl_fasync);
include/net/ipv6.h +2 -0
@@ -237,6 +237,8 @@ extern struct ipv6_txoptions * ipv6_reneint newtype, struct ipv6_opt_hdr __user *newopt, int newoptlen); +struct ipv6_txoptions *ipv6_fixup_options (struct ipv6_txoptions *opt_space, +struct ipv6_txoptions *opt);extern int ip6_frag_nqueues;extern atomic_t ip6_frag_mem;
kernel/signal.c +1 -1
@@ -1524,7 +1524,7 @@ void do_notify_parent(struct task_struct psig = tsk->parent->sighand;spin_lock_irqsave (&psig->siglock, flags); -if (sig ==SIGCHLD && +if (!tsk->ptrace && sig ==SIGCHLD && (psig->action[SIGCHLD -1 ].sa.sa_handler ==SIG_IGN || (psig->action[SIGCHLD -1 ].sa.sa_flags &SA_NOCLDWAIT ))) {/*
net/ipv4/netfilter/ip_conntrack_ftp.c +2 -2
@@ -29,9 +29,9 @@ static char *ftp_buffer;static DEFINE_SPINLOCK (ip_ftp_lock);#define MAX_PORTS 8 -static short ports[MAX_PORTS ]; +static unsigned short ports[MAX_PORTS ];static int ports_c; -module_param_array (ports, short, &ports_c,0400 ); +module_param_array (ports, ushort, &ports_c,0400 );static int loose;module_param (loose, int,0600 );
net/ipv4/netfilter/ip_conntrack_irc.c +2 -2
@@ -34,7 +34,7 @@#include <linux/moduleparam.h> #define MAX_PORTS 8 -static short ports[MAX_PORTS ]; +static unsigned short ports[MAX_PORTS ];static int ports_c;static int max_dcc_channels =8 ;static unsigned int dcc_timeout =300 ;
@@ -52,7 +52,7 @@ EXPORT_SYMBOL_GPL(ip_nat_irc_hook);MODULE_AUTHOR ("Harald Welte <[email protected]>" );MODULE_DESCRIPTION ("IRC (DCC) connection tracking helper" );MODULE_LICENSE ("GPL" ); -module_param_array (ports, short, &ports_c,0400 ); +module_param_array (ports, ushort, &ports_c,0400 );MODULE_PARM_DESC (ports,"port numbers of IRC servers" );module_param (max_dcc_channels, int,0400 );MODULE_PARM_DESC (max_dcc_channels,"max number of expected DCC channels per IRC session" );
net/ipv4/netfilter/ip_conntrack_netlink.c +6 -3
@@ -58,14 +58,17 @@ ctnetlink_dump_tuples_proto(struct sk_bu const struct ip_conntrack_tuple *tuple) {struct ip_conntrack_protocol *proto; +int ret =0 ;NFA_PUT (skb,CTA_PROTO_NUM ,sizeof (u_int8_t), &tuple->dst.protonum); proto =ip_conntrack_proto_find_get (tuple->dst.protonum); -if (proto && proto->tuple_to_nfattr) -return proto->tuple_to_nfattr (skb, tuple); +if (likely (proto && proto->tuple_to_nfattr)) { + ret = proto->tuple_to_nfattr (skb, tuple); +ip_conntrack_proto_put (proto); + } -return 0 ; +return ret; nfattr_failure:return -1 ;
net/ipv4/netfilter/ip_conntrack_proto_icmp.c +2 -1
@@ -296,7 +296,8 @@ static int icmp_nfattr_to_tuple(struct n struct ip_conntrack_tuple *tuple) {if (!tb[CTA_PROTO_ICMP_TYPE -1 ] - || !tb[CTA_PROTO_ICMP_CODE -1 ]) + || !tb[CTA_PROTO_ICMP_CODE -1 ] + || !tb[CTA_PROTO_ICMP_ID -1 ])return -1 ; tuple->dst.u.icmp.type =
net/ipv4/netfilter/ip_conntrack_proto_tcp.c +6 -0
@@ -362,6 +362,11 @@ static int nfattr_to_tcp(struct nfattr *struct nfattr *attr = cda[CTA_PROTOINFO_TCP -1 ];struct nfattr *tb[CTA_PROTOINFO_TCP_MAX ]; +/* updates could not contain anything about the private +* protocol info, in that case skip the parsing */ +if (!attr) +return 0 ; +if (nfattr_parse_nested (tb,CTA_PROTOINFO_TCP_MAX , attr) <0 ) goto nfattr_failure;
@@ -813,6 +818,7 @@ static u8 tcp_valid_flags[(TH_FIN|TH_SYN { [TH_SYN] = 1, [TH_SYN|TH_ACK] = 1, + [TH_SYN|TH_PUSH] = 1, [TH_SYN|TH_ACK|TH_PUSH] = 1, [TH_RST] = 1, [TH_RST|TH_ACK] = 1,
net/ipv4/netfilter/ip_conntrack_tftp.c +2 -2
@@ -26,9 +26,9 @@ MODULE_DESCRIPTION("tftp connection tracMODULE_LICENSE ("GPL" );#define MAX_PORTS 8 -static short ports[MAX_PORTS ]; +static unsigned short ports[MAX_PORTS ];static int ports_c; -module_param_array (ports, short, &ports_c,0400 ); +module_param_array (ports, ushort, &ports_c,0400 );MODULE_PARM_DESC (ports,"port numbers of tftp servers" );#if 0
net/ipv4/netfilter/ip_nat_core.c +2 -4
@@ -66,10 +66,8 @@ ip_nat_proto_find_get(u_int8_t protonum)* removed until we've grabbed the reference */ preempt_disable (); p =__ip_nat_proto_find (protonum); -if (p) { -if (!try_module_get (p->me)) - p = &ip_nat_unknown_protocol; - } +if (!try_module_get (p->me)) + p = &ip_nat_unknown_protocol;preempt_enable ();return p;
net/ipv4/netfilter/ip_nat_helper_pptp.c +26 -2
@@ -73,6 +73,7 @@ static void pptp_nat_expected(struct ip_struct ip_conntrack_tuple t;struct ip_ct_pptp_master *ct_pptp_info;struct ip_nat_pptp *nat_pptp_info; +struct ip_nat_range range; ct_pptp_info = &master->help.ct_pptp_info; nat_pptp_info = &master->nat.help.nat_pptp_info;
@@ -110,7 +111,30 @@ static void pptp_nat_expected(struct ip_DEBUGP ("not found!\n" ); } -ip_nat_follow_master (ct, exp); +/* This must be a fresh one. */ +BUG_ON (ct->status &IPS_NAT_DONE_MASK ); + +/* Change src to where master sends to */ + range.flags =IP_NAT_RANGE_MAP_IPS ; + range.min_ip = range.max_ip + = ct->master->tuplehash[!exp->dir].tuple.dst.ip; +if (exp->dir ==IP_CT_DIR_ORIGINAL ) { + range.flags |=IP_NAT_RANGE_PROTO_SPECIFIED ; + range.min = range.max = exp->saved_proto; + } +/* hook doesn't matter, but it has to do source manip */ +ip_nat_setup_info (ct, &range,NF_IP_POST_ROUTING ); + +/* For DST manip, map port here to where it's expected. */ + range.flags =IP_NAT_RANGE_MAP_IPS ; + range.min_ip = range.max_ip + = ct->master->tuplehash[!exp->dir].tuple.src.ip; +if (exp->dir ==IP_CT_DIR_REPLY ) { + range.flags |=IP_NAT_RANGE_PROTO_SPECIFIED ; + range.min = range.max = exp->saved_proto; + } +/* hook doesn't matter, but it has to do destination manip */ +ip_nat_setup_info (ct, &range,NF_IP_PRE_ROUTING ); }/* outbound packets == from PNS to PAC */
@@ -213,7 +237,7 @@ pptp_exp_gre(struct ip_conntrack_expect/* alter expectation for PNS->PAC direction */ invert_tuplepr (&inv_t, &expect_orig->tuple); - expect_orig->saved_proto.gre.key =htons (nat_pptp_info->pac_call_id); + expect_orig->saved_proto.gre.key =htons (ct_pptp_info->pns_call_id); expect_orig->tuple.src.u.gre.key =htons (nat_pptp_info->pns_call_id); expect_orig->tuple.dst.u.gre.key =htons (ct_pptp_info->pac_call_id); inv_t.src.ip = reply_t->src.ip;
net/ipv4/netfilter/ip_nat_proto_gre.c +2 -2
@@ -139,8 +139,8 @@ gre_manip_pkt(struct sk_buff **pskb,break ;case GRE_VERSION_PPTP :DEBUGP ("call_id -> 0x%04x\n" , -ntohl (tuple->dst.u.gre.key)); - pgreh->call_id =htons (ntohl (tuple->dst.u.gre.key)); +ntohs (tuple->dst.u.gre.key)); + pgreh->call_id = tuple->dst.u.gre.key;break ;default :DEBUGP ("can't nat unknown GRE version\n" );
net/ipv4/netfilter/ip_nat_proto_unknown.c +1 -1
@@ -62,7 +62,7 @@ unknown_print_range(char *buffer, conststruct ip_nat_protocol ip_nat_unknown_protocol = { .name ="unknown" , - .me =THIS_MODULE , +/* .me isn't set: getting a ref to this cannot fail. */ .manip_pkt = unknown_manip_pkt, .in_range = unknown_in_range, .unique_tuple = unknown_unique_tuple,
net/ipv6/datagram.c +1 -1
@@ -437,7 +437,7 @@ int datagram_recv_ctl(struct sock *sk, sbreak ;case IPPROTO_AH : nexthdr = ptr[0 ]; - len = (ptr[1 ] +1 ) <<2 ; + len = (ptr[1 ] +2 ) <<2 ;break ;default : nexthdr = ptr[0 ];
net/ipv6/exthdrs.c +21 -1
@@ -628,6 +628,7 @@ ipv6_renew_options(struct sock *sk, struif (!tot_len)return NULL ; + tot_len +=sizeof (*opt2); opt2 =sock_kmalloc (sk, tot_len,GFP_ATOMIC );if (!opt2)return ERR_PTR (-ENOBUFS );
@@ -668,7 +669,26 @@ ipv6_renew_options(struct sock *sk, strureturn opt2; out: -sock_kfree_s (sk, p, tot_len); +sock_kfree_s (sk, opt2, opt2->tot_len);return ERR_PTR (err); } +struct ipv6_txoptions *ipv6_fixup_options (struct ipv6_txoptions *opt_space, +struct ipv6_txoptions *opt) +{ +/* +* ignore the dest before srcrt unless srcrt is being included. +* --yoshfuji +*/ +if (opt && opt->dst0opt && !opt->srcrt) { +if (opt_space != opt) { +memcpy (opt_space, opt,sizeof (*opt_space)); + opt = opt_space; + } + opt->opt_nflen -=ipv6_optlen (opt->dst0opt); + opt->dst0opt =NULL ; + } + +return opt; +} +
net/ipv6/ip6_flowlabel.c +4 -8
@@ -225,20 +225,16 @@ struct ipv6_txoptions *fl6_merge_optionsstruct ip6_flowlabel * fl, struct ipv6_txoptions * fopt) { - struct ipv6_txoptions * fl_opt = fl ? fl->opt : NULL; + struct ipv6_txoptions * fl_opt = fl->opt; -if (fopt ==NULL || fopt->opt_flen ==0 ) { -if (!fl_opt || !fl_opt->dst0opt || fl_opt->srcrt) -return fl_opt; - } +if (fopt ==NULL || fopt->opt_flen ==0 ) +return fl_opt;if (fl_opt !=NULL ) { opt_space->hopopt = fl_opt->hopopt; - opt_space->dst0opt = fl_opt->srcrt ? fl_opt->dst0opt :NULL ; + opt_space->dst0opt = fl_opt->dst0opt; opt_space->srcrt = fl_opt->srcrt; opt_space->opt_nflen = fl_opt->opt_nflen; -if (fl_opt->dst0opt && !fl_opt->srcrt) - opt_space->opt_nflen -=ipv6_optlen (fl_opt->dst0opt); }else {if (fopt->opt_nflen ==0 )return fopt;
net/ipv6/raw.c +3 -1
@@ -756,7 +756,9 @@ static int rawv6_sendmsg(struct kiocb *i }if (opt ==NULL ) opt = np->opt; - opt =fl6_merge_options (&opt_space, flowlabel, opt); +if (flowlabel) + opt =fl6_merge_options (&opt_space, flowlabel, opt); + opt =ipv6_fixup_options (&opt_space, opt); fl.proto = proto;rawv6_probe_proto_opt (&fl, msg);
net/ipv6/udp.c +3 -1
@@ -778,7 +778,9 @@ do_udp_sendmsg: }if (opt ==NULL ) opt = np->opt; - opt =fl6_merge_options (&opt_space, flowlabel, opt); +if (flowlabel) + opt =fl6_merge_options (&opt_space, flowlabel, opt); + opt =ipv6_fixup_options (&opt_space, opt); fl->proto =IPPROTO_UDP ;ipv6_addr_copy (&fl->fl6_dst, daddr);
net/netfilter/nf_queue.c +1 -1
@@ -117,7 +117,7 @@ int nf_queue(struct sk_buff **skb,/* QUEUE == DROP if noone is waiting, to be safe. */ read_lock (&queue_handler_lock); -if (!queue_handler[pf]->outfn) { +if (!queue_handler[pf] || !queue_handler[pf]->outfn) {read_unlock (&queue_handler_lock);kfree_skb (*skb);return 1 ;