Linux 3.18.99
Greg KH
maintainerI'm announcing the release of the 3.18.99 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 - arch/arm/mach-mvebu/Kconfig | 4 +- drivers/char/tpm/tpm_i2c_infineon.c | 5 +-- drivers/char/tpm/tpm_i2c_nuvoton.c | 8 +++-- drivers/cpufreq/s3c24xx-cpufreq.c | 8 ++++- drivers/leds/led-triggers.c | 12 ++++--- drivers/md/dm-io.c | 1 drivers/net/ethernet/freescale/fec.h | 1 drivers/net/ethernet/freescale/fec_main.c | 5 +-- drivers/net/ethernet/freescale/fec_ptp.c | 10 ++++++ drivers/net/ppp/ppp_generic.c | 9 +++++ drivers/net/wan/hdlc_ppp.c | 5 ++- drivers/s390/net/qeth_core.h | 5 +++ drivers/s390/net/qeth_core_main.c | 33 +++++++++++---------- include/net/udplite.h | 1 net/bridge/br_sysfs_if.c | 3 + net/core/dev.c | 11 +++++-- net/ipv4/fib_semantics.c | 5 +++ net/ipv4/route.c | 7 +++- net/ipv4/udp.c | 5 +++ net/ipv6/ip6_checksum.c | 5 +++ net/ipv6/sit.c | 2 - net/netlink/genetlink.c | 12 ++++++- net/sctp/ipv6.c | 10 ++++-- net/sctp/sm_make_chunk.c | 8 +++-- sound/usb/quirks-table.h | 47 ++++++++++++++++++++++++++++++ 26 files changed, 180 insertions(+), 44 deletions(-)
Alexey Kodanev (3):
udplite: fix partial checksum initialization
sctp: fix dst refcnt leak in sctp_v6_get_dst()
sctp: verify size of a new chunk in _sctp_make_chunk()
Arnd Bergmann (1):
ipv6 sit: work around bogus gcc-8 -Wrestrict warning
Denis Du (1):
hdlc_ppp: carrier detect ok, don't turn off negotiation
Erik Veijola (1):
ALSA: usb-audio: Add a quirck for B&W PX headphones
Greg Kroah-Hartman (1):
Linux 3.18.99
Guillaume Nault (1):
ppp: prevent unregistered channels from connecting to PPP units
Jakub Kicinski (1):
net: fix race on decreasing number of TX queues
Jeremy Boone (2):
tpm_i2c_infineon: fix potential buffer overruns caused by bit glitches on the bus
tpm_i2c_nuvoton: fix potential buffer overruns caused by bit glitches on the bus
Julian Wiedmann (2):
s390/qeth: fix SETIP command handling
s390/qeth: fix IPA command submission race
Lucas Stach (1):
net: fec: introduce fec_ptp_stop and use in probe fail path
Mike Snitzer (1):
dm io: fix duplicate bio completion due to missing ref count
Nathan Sullivan (1):
leds: do not overflow sysfs buffer in led_trigger_show
Nicolas Dichtel (1):
netlink: ensure to loop over all netns in genlmsg_multicast_allns()
Sabrina Dubroca (1):
net: ipv4: don't allow setting net.ipv4.route.min_pmtu below 68
Stefano Brivio (1):
fib_semantics: Don't match route with mismatching tclassid
Ulf Magnusson (1):
ARM: mvebu: Fix broken PL310_ERRATA_753970 selects
Viresh Kumar (1):
cpufreq: s3c24xx: Fix broken s3c_cpufreq_init()
Xin Long (1):
bridge: check brport attr show in brport_show
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 98 +SUBLEVEL = 99 EXTRAVERSION = NAME = Diseased Newt
arch/arm/mach-mvebu/Kconfig +2 -2
@@ -37,7 +37,7 @@ config MACH_ARMADA_370 config MACH_ARMADA_375 bool "Marvell Armada 375 boards" if ARCH_MULTI_V7 select ARM_ERRATA_720789 - select ARM_ERRATA_753970 + select PL310_ERRATA_753970 select ARM_GIC select ARMADA_375_CLK select HAVE_ARM_SCU
@@ -52,7 +52,7 @@ config MACH_ARMADA_375 config MACH_ARMADA_38X bool "Marvell Armada 380/385 boards" if ARCH_MULTI_V7 select ARM_ERRATA_720789 - select ARM_ERRATA_753970 + select PL310_ERRATA_753970 select ARM_GIC select ARMADA_38X_CLK select HAVE_ARM_SCU
drivers/char/tpm/tpm_i2c_infineon.c +3 -2
@@ -436,7 +436,8 @@ static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count)static int tpm_tis_i2c_recv (struct tpm_chip *chip,u8 *buf,size_t count) {int size =0 ; -int expected, status; +int status; +u32 expected;if (count <TPM_HEADER_SIZE ) { size = -EIO ;
@@ -451,7 +452,7 @@ static int tpm_tis_i2c_recv(struct tpm_chip *chip, u8 *buf, size_t count) } expected =be32_to_cpu (*(__be32 *)(buf +2 )); -if ((size_t ) expected > count) { +if (((size_t ) expected > count) || (expected <TPM_HEADER_SIZE )) { size = -EIO ; goto out; }
drivers/char/tpm/tpm_i2c_nuvoton.c +6 -2
@@ -267,7 +267,11 @@ static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count)struct device *dev = chip->dev;struct i2c_client *client =to_i2c_client (dev);s32 rc; -int expected, status, burst_count, retries, size =0 ; +int status; +int burst_count; +int retries; +int size =0 ; +u32 expected;if (count <TPM_HEADER_SIZE ) {i2c_nuvoton_ready (chip);/* return to idle */
@@ -309,7 +313,7 @@ static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count)* to machine native */ expected =be32_to_cpu (*(__be32 *) (buf +2 )); -if (expected > count) { +if (expected > count || expected < size) {dev_err (dev,"%s() expected > count\n" , __func__); size = -EIO ;continue ;
drivers/cpufreq/s3c24xx-cpufreq.c +7 -1
@@ -364,7 +364,13 @@ struct clk *s3c_cpufreq_clk_get(struct device *dev, const char *name)static int s3c_cpufreq_init (struct cpufreq_policy *policy) { policy->clk = clk_arm; -return cpufreq_generic_init (policy, ftab, cpu_cur.info->latency); + + policy->cpuinfo.transition_latency = cpu_cur.info->latency; + +if (ftab) +return cpufreq_table_validate_and_show (policy, ftab); + +return 0 ; }static int __init s3c_cpufreq_initclks (void )
drivers/leds/led-triggers.c +7 -5
@@ -78,21 +78,23 @@ ssize_t led_trigger_show(struct device *dev, struct device_attribute *attr,down_read (&led_cdev->trigger_lock);if (!led_cdev->trigger) - len +=sprintf (buf+len,"[none] " ); + len +=scnprintf (buf+len,PAGE_SIZE - len,"[none] " );else - len +=sprintf (buf+len,"none " ); + len +=scnprintf (buf+len,PAGE_SIZE - len,"none " );list_for_each_entry (trig, &trigger_list, next_trig) {if (led_cdev->trigger && !strcmp (led_cdev->trigger->name, trig->name)) - len +=sprintf (buf+len,"[%s] " , trig->name); + len +=scnprintf (buf+len,PAGE_SIZE - len,"[%s] " , + trig->name);else - len +=sprintf (buf+len,"%s " , trig->name); + len +=scnprintf (buf+len,PAGE_SIZE - len,"%s " , + trig->name); }up_read (&led_cdev->trigger_lock);up_read (&triggers_list_lock); - len +=sprintf (len+buf,"\n" ); + len +=scnprintf (len+buf,PAGE_SIZE - len,"\n" );return len; }EXPORT_SYMBOL_GPL (led_trigger_show);
drivers/md/dm-io.c +1 -0
@@ -299,6 +299,7 @@ static void do_region(int rw, unsigned region, struct dm_io_region *where,else if (rw &REQ_WRITE_SAME ) special_cmd_max_sectors = q->limits.max_write_same_sectors;if ((rw & (REQ_DISCARD |REQ_WRITE_SAME )) && special_cmd_max_sectors ==0 ) { +atomic_inc (&io->count);dec_count (io, region, -EOPNOTSUPP );return ; }
drivers/net/ethernet/freescale/fec.h +1 -0
@@ -546,6 +546,7 @@ struct fec_enet_private { };void fec_ptp_init (struct platform_device *pdev); +void fec_ptp_stop (struct platform_device *pdev);void fec_ptp_start_cyclecounter (struct net_device *ndev);int fec_ptp_set (struct net_device *ndev,struct ifreq *ifr);int fec_ptp_get (struct net_device *ndev,struct ifreq *ifr);
drivers/net/ethernet/freescale/fec_main.c +2 -3
@@ -3312,6 +3312,7 @@ failed_register: failed_mii_init: failed_irq: failed_init: +fec_ptp_stop (pdev);if (fep->reg_phy)regulator_disable (fep->reg_phy); failed_regulator:
@@ -3331,14 +3332,12 @@ fec_drv_remove(struct platform_device *pdev)struct net_device *ndev =platform_get_drvdata (pdev);struct fec_enet_private *fep =netdev_priv (ndev); -cancel_delayed_work_sync (&fep->time_keep);cancel_work_sync (&fep->tx_timeout_work); +fec_ptp_stop (pdev);unregister_netdev (ndev);fec_enet_mii_remove (fep);if (fep->reg_phy)regulator_disable (fep->reg_phy); -if (fep->ptp_clock) -ptp_clock_unregister (fep->ptp_clock);fec_enet_clk_enable (ndev, false);of_node_put (fep->phy_node);free_netdev (ndev);
drivers/net/ethernet/freescale/fec_ptp.c +10 -0
@@ -620,6 +620,16 @@ void fec_ptp_init(struct platform_device *pdev)schedule_delayed_work (&fep->time_keep,HZ ); } +void fec_ptp_stop (struct platform_device *pdev) +{ +struct net_device *ndev =platform_get_drvdata (pdev); +struct fec_enet_private *fep =netdev_priv (ndev); + +cancel_delayed_work_sync (&fep->time_keep); +if (fep->ptp_clock) +ptp_clock_unregister (fep->ptp_clock); +} +/** * fec_ptp_check_pps_event * @fep: the fec_enet_private structure handle
drivers/net/ppp/ppp_generic.c +9 -0
@@ -2908,6 +2908,15 @@ ppp_connect_channel(struct channel *pch, int unit) goto outl;ppp_lock (ppp); +spin_lock_bh (&pch->downl); +if (!pch->chan) { +/* Don't connect unregistered channels */ +spin_unlock_bh (&pch->downl); +ppp_unlock (ppp); + ret = -ENOTCONN ; + goto outl; + } +spin_unlock_bh (&pch->downl);if (pch->file.hdrlen > ppp->file.hdrlen) ppp->file.hdrlen = pch->file.hdrlen; hdrlen = pch->file.hdrlen +2 ;/* for protocol bytes */
drivers/net/wan/hdlc_ppp.c +4 -1
@@ -574,7 +574,10 @@ static void ppp_timer(unsigned long arg)ppp_cp_event (proto->dev, proto->pid,TO_GOOD ,0 ,0 ,0 ,NULL ); proto->restart_counter--; - }else + }else if (netif_carrier_ok (proto->dev)) +ppp_cp_event (proto->dev, proto->pid,TO_GOOD ,0 ,0 , +0 ,NULL ); +else ppp_cp_event (proto->dev, proto->pid,TO_BAD ,0 ,0 ,0 ,NULL );break ;
drivers/s390/net/qeth_core.h +5 -0
@@ -593,6 +593,11 @@ struct qeth_cmd_buffer {void (*callback) (struct qeth_channel *,struct qeth_cmd_buffer *); }; +static inline struct qeth_ipa_cmd *__ipa_cmd (struct qeth_cmd_buffer *iob) +{ +return (struct qeth_ipa_cmd *)(iob->data +IPA_PDU_HEADER_SIZE ); +} +/** * definition of a qeth channel, used for read and write */
drivers/s390/net/qeth_core_main.c +18 -15
@@ -2023,7 +2023,7 @@ int qeth_send_control_data(struct qeth_card *card, int len,unsigned long flags;struct qeth_reply *reply =NULL ;unsigned long timeout, event_timeout; -struct qeth_ipa_cmd *cmd; +struct qeth_ipa_cmd *cmd =NULL ;QETH_CARD_TEXT (card,2 ,"sendctl" );
@@ -2037,23 +2037,27 @@ int qeth_send_control_data(struct qeth_card *card, int len, } reply->callback = reply_cb; reply->param = reply_param; -if (card->state ==CARD_STATE_DOWN ) - reply->seqno =QETH_IDX_COMMAND_SEQNO ; -else - reply->seqno = card->seqno.ipa++; +init_waitqueue_head (&reply->wait_q); -spin_lock_irqsave (&card->lock, flags); -list_add_tail (&reply->list, &card->cmd_waiter_list); -spin_unlock_irqrestore (&card->lock, flags);QETH_DBF_HEX (CTRL ,2 , iob->data,QETH_DBF_CTRL_LEN );while (atomic_cmpxchg (&card->write.irq_pending,0 ,1 )) ; -qeth_prepare_control_data (card, len, iob); -if (IS_IPA (iob->data)) +if (IS_IPA (iob->data)) { + cmd =__ipa_cmd (iob); + cmd->hdr.seqno = card->seqno.ipa++; + reply->seqno = cmd->hdr.seqno; event_timeout =QETH_IPA_TIMEOUT ; -else + }else { + reply->seqno =QETH_IDX_COMMAND_SEQNO ; event_timeout =QETH_TIMEOUT ; + } +qeth_prepare_control_data (card, len, iob); + +spin_lock_irqsave (&card->lock, flags); +list_add_tail (&reply->list, &card->cmd_waiter_list); +spin_unlock_irqrestore (&card->lock, flags); + timeout = jiffies + event_timeout;QETH_CARD_TEXT (card,6 ,"noirqpnd" );
@@ -2078,9 +2082,8 @@ int qeth_send_control_data(struct qeth_card *card, int len,/* we have only one long running ipassist, since we can ensure process context of this command we can sleep */ - cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE ); -if ((cmd->hdr.command ==IPA_CMD_SETIP ) && - (cmd->hdr.prot_version ==QETH_PROT_IPV4 )) { +if (cmd && cmd->hdr.command ==IPA_CMD_SETIP && + cmd->hdr.prot_version ==QETH_PROT_IPV4 ) {if (!wait_event_timeout (reply->wait_q,atomic_read (&reply->received), event_timeout)) goto time_err;
@@ -2887,7 +2890,7 @@ static void qeth_fill_ipacmd_header(struct qeth_card *card,memset (cmd,0 ,sizeof (struct qeth_ipa_cmd )); cmd->hdr.command = command; cmd->hdr.initiator =IPA_CMD_INITIATOR_HOST ; - cmd->hdr.seqno = card->seqno.ipa; +/* cmd->hdr.seqno is set by qeth_send_control_data() */ cmd->hdr.adapter_type =qeth_get_ipa_adp_type (card->info.link_type); cmd->hdr.rel_adapter_no = (__u8 ) card->info.portno;if (card->options.layer2)
include/net/udplite.h +1 -0
@@ -61,6 +61,7 @@ static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh)UDP_SKB_CB (skb)->cscov = cscov;if (skb->ip_summed ==CHECKSUM_COMPLETE ) skb->ip_summed =CHECKSUM_NONE ; + skb->csum_valid =0 ; }return 0 ;
net/bridge/br_sysfs_if.c +3 -0
@@ -225,6 +225,9 @@ static ssize_t brport_show(struct kobject *kobj,struct brport_attribute *brport_attr =to_brport_attr (attr);struct net_bridge_port *p =to_brport (kobj); +if (!brport_attr->show) +return -EINVAL ; +return brport_attr->show (p, buf); }
net/core/dev.c +9 -2
@@ -2070,8 +2070,11 @@ EXPORT_SYMBOL(netif_set_xps_queue);*/ int netif_set_real_num_tx_queues (struct net_device *dev,unsigned int txq) { +bool disabling;int rc; + disabling = txq < dev->real_num_tx_queues; +if (txq <1 || txq > dev->num_tx_queues)return -EINVAL ;
@@ -2087,15 +2090,19 @@ int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq)if (dev->num_tc)netif_setup_tc (dev, txq); -if (txq < dev->real_num_tx_queues) { + dev->real_num_tx_queues = txq; + +if (disabling) { +synchronize_net ();qdisc_reset_all_tx_gt (dev, txq);#ifdef CONFIG_XPS netif_reset_xps_queues_gt (dev, txq);#endif } + }else { + dev->real_num_tx_queues = txq; } - dev->real_num_tx_queues = txq;return 0 ; }EXPORT_SYMBOL (netif_set_real_num_tx_queues);
net/ipv4/fib_semantics.c +5 -0
@@ -514,6 +514,11 @@ int fib_nh_match(struct fib_config *cfg, struct fib_info *fi)return 1 ;if (cfg->fc_oif || cfg->fc_gw) { +#ifdef CONFIG_IP_ROUTE_CLASSID +if (cfg->fc_flow && + cfg->fc_flow != fi->fib_nh->nh_tclassid) +return 1 ; +#endif if ((!cfg->fc_oif || cfg->fc_oif == fi->fib_nh->nh_oif) && (!cfg->fc_gw || cfg->fc_gw == fi->fib_nh->nh_gw))return 0 ;
net/ipv4/route.c +5 -2
@@ -122,9 +122,11 @@ static int ip_rt_redirect_silence __read_mostly = ((HZ / 50) << (9 + 1));static int ip_rt_error_cost__read_mostly =HZ ;static int ip_rt_error_burst__read_mostly =5 *HZ ;static int ip_rt_mtu_expires__read_mostly =10 *60 *HZ ; -static int ip_rt_min_pmtu__read_mostly =512 +20 +20 ; +static u32 ip_rt_min_pmtu__read_mostly =512 +20 +20 ;static int ip_rt_min_advmss__read_mostly =256 ; +static int ip_min_valid_pmtu__read_mostly =IPV4_MIN_MTU ; +/* * Interface to generic destination cache. */
@@ -2629,7 +2631,8 @@ static struct ctl_table ipv4_route_table[] = { .data = &ip_rt_min_pmtu, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec, + .proc_handler = proc_dointvec_minmax, + .extra1 = &ip_min_valid_pmtu, }, { .procname = "min_adv_mss",
net/ipv4/udp.c +5 -0
@@ -1718,6 +1718,11 @@ static inline int udp4_csum_init(struct sk_buff *skb, struct udphdr *uh, err =udplite_checksum_init (skb, uh);if (err)return err; + +if (UDP_SKB_CB (skb)->partial_cov) { + skb->csum =inet_compute_pseudo (skb, proto); +return 0 ; + } } return skb_checksum_init_zero_check(skb, proto, uh->check,
net/ipv6/ip6_checksum.c +5 -0
@@ -73,6 +73,11 @@ int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) err =udplite_checksum_init (skb, uh);if (err)return err; + +if (UDP_SKB_CB (skb)->partial_cov) { + skb->csum =ip6_compute_pseudo (skb, proto); +return 0 ; + } }/* To support RFC 6936 (allow zero checksum in UDP/IPV6 for tunnels)
net/ipv6/sit.c +1 -1
@@ -176,7 +176,7 @@ static void ipip6_tunnel_clone_6rd(struct net_device *dev, struct sit_net *sitn)#ifdef CONFIG_IPV6_SIT_6RD struct ip_tunnel *t =netdev_priv (dev); -if (t->dev == sitn->fb_tunnel_dev) { +if (dev == sitn->fb_tunnel_dev) {ipv6_addr_set (&t->ip6rd.prefix,htonl (0x20020000 ),0 ,0 ,0 ); t->ip6rd.relay_prefix =0 ; t->ip6rd.prefixlen =16 ;
net/netlink/genetlink.c +10 -2
@@ -1058,6 +1058,7 @@ static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group, {struct sk_buff *tmp;struct net *net, *prev =NULL ; +bool delivered = false;int err;for_each_net_rcu (net) {
@@ -1069,14 +1070,21 @@ static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group, } err =nlmsg_multicast (prev->genl_sock, tmp, portid, group, flags); -if (err) +if (!err) + delivered = true; +else if (err != -ESRCH ) goto error; } prev = net; } -return nlmsg_multicast (prev->genl_sock, skb, portid, group, flags); + err =nlmsg_multicast (prev->genl_sock, skb, portid, group, flags); +if (!err) + delivered = true; +else if (err != -ESRCH ) + goto error; +return delivered ?0 : -ESRCH ; error:kfree_skb (skb);return err;
net/sctp/ipv6.c +7 -3
@@ -323,8 +323,10 @@ static void sctp_v6_get_dst(struct sctp_transport *t, union sctp_addr *saddr, final_p =fl6_update_dst (fl6,rcu_dereference (np->opt), &final); bdst =ip6_dst_lookup_flow (sk, fl6, final_p); -if (!IS_ERR (bdst) && -ipv6_chk_addr (dev_net (bdst->dev), +if (IS_ERR (bdst)) +continue ; + +if (ipv6_chk_addr (dev_net (bdst->dev), &laddr->a.v6.sin6_addr, bdst->dev,1 )) {if (!IS_ERR_OR_NULL (dst))dst_release (dst);
@@ -333,8 +335,10 @@ static void sctp_v6_get_dst(struct sctp_transport *t, union sctp_addr *saddr, } bmatchlen =sctp_v6_addr_match_len (daddr, &laddr->a); -if (matchlen > bmatchlen) +if (matchlen > bmatchlen) { +dst_release (bdst);continue ; + }if (!IS_ERR_OR_NULL (dst))dst_release (dst);
net/sctp/sm_make_chunk.c +6 -2
@@ -1367,10 +1367,14 @@ static struct sctp_chunk *_sctp_make_chunk(const struct sctp_association *asoc,sctp_chunkhdr_t *chunk_hdr;struct sk_buff *skb;struct sock *sk; +int chunklen; + + chunklen =sizeof (*chunk_hdr) + paylen; +if (chunklen >SCTP_MAX_CHUNK_LEN ) + goto nodata;/* No need to allocate LL here, as this is only a chunk. */ - skb =alloc_skb (WORD_ROUND (sizeof (sctp_chunkhdr_t) + paylen), -GFP_ATOMIC ); + skb =alloc_skb (chunklen,GFP_ATOMIC );if (!skb) goto nodata;
sound/usb/quirks-table.h +47 -0
51 lines not on this page · raw message
Quoted 11 lines · Greg KH,
I'm announcing the release of the 3.18.99 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y
and can be browsed at the normal kernel.org git web browser:http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
Builds and boots on the OnePlus 3T, everything looks good. No merge issues with the CAF msm-3.18 tree.