Linux 3.0.90
Greg KH
maintainerI'm announcing the release of the 3.0.90 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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
------------
MAINTAINERS | 4 +- Makefile | 2 - arch/x86/kernel/i387.c | 2 - drivers/acpi/battery.c | 2 + drivers/net/arcnet/arcnet.c | 2 - drivers/net/usb/smsc75xx.c | 12 ++------ drivers/net/wireless/ath/ath9k/htc_drv_init.c | 1 drivers/net/wireless/mwifiex/sdio.c | 4 +- drivers/net/wireless/rt2x00/rt2x00queue.c | 18 +++++++----- drivers/tty/serial/mxs-auart.c | 38 +++++++++++++++----------- fs/notify/fanotify/fanotify_user.c | 1 kernel/events/core.c | 30 +++++++++++++++++--- kernel/sched_fair.c | 2 - net/ipv4/sysctl_net_ipv4.c | 6 +++- net/ipv6/ip6mr.c | 5 +++ net/key/af_key.c | 4 ++ net/mac80211/rx.c | 10 +++++- net/sched/sch_atm.c | 1 net/sched/sch_cbq.c | 1 net/sctp/outqueue.c | 8 +---- net/wireless/nl80211.c | 7 +++- 21 files changed, 104 insertions(+), 56 deletions(-)
Dan Carpenter (4):
fanotify: info leak in copy_event_to_user()
arcnet: cleanup sizeof parameter
af_key: more info leaks in pfkey messages
net_sched: info leak in atm_tc_dump_class()
David S. Miller (1):
net_sched: Fix stack info leak in cbq_dump_wrr().
Eric Dumazet (1):
usbnet: do not pretend to support SG/TSO
Greg Kroah-Hartman (2):
MAINTAINERS: fix up stable_kernel_rules.txt location Linux 3.0.90
H.J. Lu (1):
x86, fpu: correct the asm constraints for fxsave, unbreak mxcsr.daz
Hannes Frederic Sowa (1):
ipv6: take rtnl_lock and mark mrt6 table as freed on namespace cleanup
Jiri Olsa (1):
perf: Fix event group context move
Johannes Berg (1):
mac80211: fix duplicate retransmission detection
Lan Tianyu (1):
ACPI / battery: Fix parsing _BIX return value
Michal Kazior (1):
nl80211: fix mgmt tx status and testmode reporting for netns
Michal Tesar (1):
sysctl net: Keep tcp_syn_retries inside the boundary
Neil Horman (1):
sctp: fully initialize sctp_outq in sctp_outq_init
Oleksij Rempel (1):
ath9k_htc: do some initial hardware configuration
Salman Qazi (1):
perf: Use css_tryget() to avoid propping up css refcount
Stanislaw Gruszka (1):
rt2x00: fix stop queue
Tomasz Moń (1):
mwifiex: Add missing endian conversion.
Uwe Kleine-König (2):
serial/mxs-auart: fix race condition in interrupt handler serial/mxs-auart: increase time to wait for transmitter to become idle
Zhu Yanhai (1):
sched: Fix the broken sched_rr_get_interval()
Greg KH
maintainerMAINTAINERS +2 -2
@@ -5725,7 +5725,6 @@ P: Vincent Sanders <[email protected]> M: Simtec Linux Team <[email protected]> W: http://www.simtec.co.uk/products/EB110ATX/ S: Supported -F: Documentation/stable_kernel_rules.txt SIMTEC EB2410ITX (BAST) P: Ben Dooks
@@ -6041,7 +6040,8 @@ F: arch/alpha/kernel/srm_env.c STABLE BRANCH M: Greg Kroah-Hartman <[email protected]> L: [email protected] -S: Maintained +S: Supported +F: Documentation/stable_kernel_rules.txt STAGING SUBSYSTEM M: Greg Kroah-Hartman <[email protected]>
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 89 +SUBLEVEL = 90 EXTRAVERSION = NAME = Sneaky Weasel
arch/x86/kernel/i387.c +1 -1
@@ -51,7 +51,7 @@ void __cpuinit mxcsr_feature_mask_init(void)clts ();if (cpu_has_fxsr) {memset (&fx_scratch,0 ,sizeof (struct i387_fxsave_struct )); - asmvolatile ("fxsave %0" : :"m" (fx_scratch)); + asmvolatile ("fxsave %0" :"+m" (fx_scratch)); mask = fx_scratch.mxcsr_mask;if (mask ==0 ) mask =0x0000ffbf ;
drivers/acpi/battery.c +2 -0
@@ -118,6 +118,7 @@ struct acpi_battery {struct acpi_device *device;struct notifier_block pm_nb;unsigned long update_time; +int revision;int rate_now;int capacity_now;int voltage_now;
@@ -350,6 +351,7 @@ static struct acpi_offsets info_offsets[] = { };static struct acpi_offsets extended_info_offsets[] = { + {offsetof(struct acpi_battery , revision),0 }, {offsetof(struct acpi_battery , power_unit),0 }, {offsetof(struct acpi_battery , design_capacity),0 }, {offsetof(struct acpi_battery , full_charge_capacity),0 },
drivers/net/arcnet/arcnet.c +1 -1
@@ -1007,7 +1007,7 @@ static void arcnet_rx(struct net_device *dev, int bufnum) soft = &pkt.soft.rfc1201; - lp->hw.copy_from_card (dev, bufnum,0 , &pkt,sizeof (ARC_HDR_SIZE )); + lp->hw.copy_from_card (dev, bufnum,0 , &pkt,ARC_HDR_SIZE );if (pkt.hard.offset[0 ]) { ofs = pkt.hard.offset[0 ]; length =256 - ofs;
drivers/net/usb/smsc75xx.c +3 -9
@@ -43,7 +43,6 @@#define EEPROM_MAC_OFFSET (0x01)#define DEFAULT_TX_CSUM_ENABLE (true)#define DEFAULT_RX_CSUM_ENABLE (true) -#define DEFAULT_TSO_ENABLE (true)#define SMSC75XX_INTERNAL_PHY_ID (1)#define SMSC75XX_TX_OVERHEAD (8)#define MAX_RX_FIFO_SIZE (20 * 1024)
@@ -1034,17 +1033,14 @@ static int smsc75xx_bind(struct usbnet *dev, struct usb_interface *intf)INIT_WORK (&pdata->set_multicast, smsc75xx_deferred_multicast_write); -if (DEFAULT_TX_CSUM_ENABLE ) { +if (DEFAULT_TX_CSUM_ENABLE ) dev->net->features |=NETIF_F_IP_CSUM |NETIF_F_IPV6_CSUM ; -if (DEFAULT_TSO_ENABLE ) - dev->net->features |=NETIF_F_SG | -NETIF_F_TSO |NETIF_F_TSO6 ; - } +if (DEFAULT_RX_CSUM_ENABLE ) dev->net->features |=NETIF_F_RXCSUM ; dev->net->hw_features =NETIF_F_IP_CSUM |NETIF_F_IPV6_CSUM | -NETIF_F_SG |NETIF_F_TSO |NETIF_F_TSO6 |NETIF_F_RXCSUM ; +NETIF_F_RXCSUM ;/* Init all registers */ ret =smsc75xx_reset (dev);
@@ -1169,8 +1165,6 @@ static struct sk_buff *smsc75xx_tx_fixup(struct usbnet *dev, {u32 tx_cmd_a, tx_cmd_b; -skb_linearize (skb); -if (skb_headroom (skb) <SMSC75XX_TX_OVERHEAD ) {struct sk_buff *skb2 =skb_copy_expand (skb,SMSC75XX_TX_OVERHEAD ,0 , flags);
drivers/net/wireless/ath/ath9k/htc_drv_init.c +1 -0
@@ -873,6 +873,7 @@ static int ath9k_init_device(struct ath9k_htc_priv *priv,if (error !=0 ) goto err_rx; +ath9k_hw_disable (priv->ah);#ifdef CONFIG_MAC80211_LEDS /* must be initialized before ieee80211_register_hw */ priv->led_cdev.default_trigger = ieee80211_create_tpt_led_trigger(priv->hw,
drivers/net/wireless/mwifiex/sdio.c +2 -2
@@ -1387,8 +1387,8 @@ static int mwifiex_sdio_host_to_card(struct mwifiex_adapter *adapter,/* Allocate buffer and copy payload */ blk_size =MWIFIEX_SDIO_BLOCK_SIZE ; buf_block_len = (pkt_len + blk_size -1 ) / blk_size; - *(u16 *) &payload[0 ] = (u16 ) pkt_len; - *(u16 *) &payload[2 ] = type; + *(__le16 *)&payload[0 ] =cpu_to_le16 ((u16 )pkt_len); + *(__le16 *)&payload[2 ] =cpu_to_le16 (type);/* * This is SDIO specific header
drivers/net/wireless/rt2x00/rt2x00queue.c +11 -7
@@ -848,13 +848,8 @@ void rt2x00queue_index_inc(struct queue_entry *entry, enum queue_index index)spin_unlock_irqrestore (&queue->index_lock, irqflags); } -void rt2x00queue_pause_queue (struct data_queue *queue) +void rt2x00queue_pause_queue_nocheck (struct data_queue *queue) { -if (!test_bit (DEVICE_STATE_PRESENT , &queue->rt2x00dev->flags) || - !test_bit (QUEUE_STARTED , &queue->flags) || -test_and_set_bit (QUEUE_PAUSED , &queue->flags)) -return ; -switch (queue->qid) {case QID_AC_VO :case QID_AC_VI :
@@ -870,6 +865,15 @@ void rt2x00queue_pause_queue(struct data_queue *queue)break ; } } +void rt2x00queue_pause_queue (struct data_queue *queue) +{ +if (!test_bit (DEVICE_STATE_PRESENT , &queue->rt2x00dev->flags) || + !test_bit (QUEUE_STARTED , &queue->flags) || +test_and_set_bit (QUEUE_PAUSED , &queue->flags)) +return ; + +rt2x00queue_pause_queue_nocheck (queue); +}EXPORT_SYMBOL_GPL (rt2x00queue_pause_queue);void rt2x00queue_unpause_queue (struct data_queue *queue)
@@ -931,7 +935,7 @@ void rt2x00queue_stop_queue(struct data_queue *queue)return ; } -rt2x00queue_pause_queue (queue); +rt2x00queue_pause_queue_nocheck (queue); queue->rt2x00dev->ops->lib->stop_queue (queue);
drivers/tty/serial/mxs-auart.c +22 -16
@@ -374,11 +374,18 @@ static void mxs_auart_settermios(struct uart_port *u,static irqreturn_t mxs_auart_irq_handle (int irq,void *context) { -u32 istatus, istat; +u32 istat;struct mxs_auart_port *s = context;u32 stat =readl (s->port.membase +AUART_STAT ); - istatus = istat =readl (s->port.membase +AUART_INTR ); + istat =readl (s->port.membase +AUART_INTR ); + +/* ack irq */ +writel (istat & (AUART_INTR_RTIS + |AUART_INTR_TXIS + |AUART_INTR_RXIS + |AUART_INTR_CTSMIS ), + s->port.membase +AUART_INTR_CLR );if (istat &AUART_INTR_CTSMIS ) {uart_handle_cts_change (&s->port, stat &AUART_STAT_CTS );
@@ -397,12 +404,6 @@ static irqreturn_t mxs_auart_irq_handle(int irq, void *context) istat &= ~AUART_INTR_TXIS ; } -writel (istatus & (AUART_INTR_RTIS - |AUART_INTR_TXIS - |AUART_INTR_RXIS - |AUART_INTR_CTSMIS ), - s->port.membase +AUART_INTR_CLR ); -return IRQ_HANDLED ; }
@@ -542,7 +543,7 @@ auart_console_write(struct console *co, const char *str, unsigned int count)struct mxs_auart_port *s;struct uart_port *port;unsigned int old_ctrl0, old_ctrl2; -unsigned int to =1000 ; +unsigned int to =20000 ;if (co->index >MXS_AUART_PORTS || co->index <0 )return ;
@@ -563,18 +564,23 @@ auart_console_write(struct console *co, const char *str, unsigned int count)uart_console_write (port, str, count, mxs_auart_console_putchar); -/* -* Finally, wait for transmitter to become empty -* and restore the TCR -*/ +/* Finally, wait for transmitter to become empty ... */ while (readl (port->membase +AUART_STAT ) &AUART_STAT_BUSY ) { +udelay (1 );if (!to--)break ; -udelay (1 ); } -writel (old_ctrl0, port->membase +AUART_CTRL0 ); -writel (old_ctrl2, port->membase +AUART_CTRL2 ); +/* +* ... and restore the TCR if we waited long enough for the transmitter +* to be idle. This might keep the transmitter enabled although it is +* unused, but that is better than to disable it while it is still +* transmitting. +*/ +if (!(readl (port->membase +AUART_STAT ) &AUART_STAT_BUSY )) { +writel (old_ctrl0, port->membase +AUART_CTRL0 ); +writel (old_ctrl2, port->membase +AUART_CTRL2 ); + }clk_disable (s->clk); }
fs/notify/fanotify/fanotify_user.c +1 -0
@@ -118,6 +118,7 @@ static int fill_event_metadata(struct fsnotify_group *group, metadata->event_len =FAN_EVENT_METADATA_LEN ; metadata->metadata_len =FAN_EVENT_METADATA_LEN ; metadata->vers =FANOTIFY_METADATA_VERSION ; + metadata->reserved =0 ; metadata->mask = event->mask &FAN_ALL_OUTGOING_EVENTS ; metadata->pid =pid_vnr (event->tgid);if (unlikely (event->mask &FAN_Q_OVERFLOW ))
kernel/events/core.c +25 -5
@@ -223,9 +223,9 @@ perf_cgroup_match(struct perf_event *event)return !event->cgrp || event->cgrp == cpuctx->cgrp; } -static inline void perf_get_cgroup (struct perf_event *event) +static inline bool perf_tryget_cgroup (struct perf_event *event) { -css_get (&event->cgrp->css); +return css_tryget (&event->cgrp->css); }static inline void perf_put_cgroup (struct perf_event *event)
@@ -415,7 +415,11 @@ static inline int perf_cgroup_connect(int fd, struct perf_event *event, event->cgrp = cgrp;/* must be done before we fput() the file */ -perf_get_cgroup (event); +if (!perf_tryget_cgroup (event)) { + event->cgrp =NULL ; + ret = -ENOENT ; + goto out; + }/* * all events in a group must monitor
@@ -839,6 +843,15 @@ list_add_event(struct perf_event *event, struct perf_event_context *ctx) }/* +* Initialize event state based on the perf_event_attr::disabled. +*/ +static inline void perf_event__state_init (struct perf_event *event) +{ + event->state = event->attr.disabled ?PERF_EVENT_STATE_OFF : +PERF_EVENT_STATE_INACTIVE ; +} + +/* * Called at perf_event creation and when events are attached/detached from a * group. */
@@ -6241,8 +6254,7 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu, event->overflow_handler = overflow_handler; -if (attr->disabled) - event->state =PERF_EVENT_STATE_OFF ; +perf_event__state_init (event); pmu =NULL ;
@@ -6616,9 +6628,17 @@ SYSCALL_DEFINE5(perf_event_open,mutex_lock (&gctx->mutex);perf_remove_from_context (group_leader); + +/* +* Removing from the context ends up with disabled +* event. What we want here is event in the initial +* startup state, ready to be add into new context. +*/ +perf_event__state_init (group_leader);list_for_each_entry (sibling, &group_leader->sibling_list, group_entry) {perf_remove_from_context (sibling); +perf_event__state_init (sibling);put_ctx (gctx); }mutex_unlock (&gctx->mutex);
kernel/sched_fair.c +1 -1
@@ -4277,7 +4277,7 @@ static unsigned int get_rr_interval_fair(struct rq *rq, struct task_struct *task* idle runqueue: */ if (rq->cfs.load.weight) - rr_interval =NS_TO_JIFFIES (sched_slice (&rq->cfs, se)); + rr_interval =NS_TO_JIFFIES (sched_slice (cfs_rq_of (se), se));return rr_interval; }
net/ipv4/sysctl_net_ipv4.c +5 -1
@@ -32,6 +32,8 @@ static int tcp_adv_win_scale_min = -31;static int tcp_adv_win_scale_max =31 ;static int ip_ttl_min =1 ;static int ip_ttl_max =255 ; +static int tcp_syn_retries_min =1 ; +static int tcp_syn_retries_max =MAX_TCP_SYNCNT ;static int ip_ping_group_range_min[] = {0 ,0 };static int ip_ping_group_range_max[] = {GID_T_MAX ,GID_T_MAX };
@@ -231,7 +233,9 @@ static struct ctl_table ipv4_table[] = { .data = &sysctl_tcp_syn_retries, .maxlen = sizeof(int), .mode = 0644, - .proc_handler = proc_dointvec + .proc_handler = proc_dointvec_minmax, + .extra1 = &tcp_syn_retries_min, + .extra2 = &tcp_syn_retries_max }, { .procname = "tcp_synack_retries",
net/ipv6/ip6mr.c +5 -0
@@ -256,10 +256,12 @@ static void __net_exit ip6mr_rules_exit(struct net *net) {struct mr6_table *mrt, *next; +rtnl_lock ();list_for_each_entry_safe (mrt, next, &net->ipv6.mr6_tables, list) {list_del (&mrt->list);ip6mr_free_table (mrt); } +rtnl_unlock ();fib_rules_unregister (net->ipv6.mr6_rules_ops); }#else
@@ -286,7 +288,10 @@ static int __net_init ip6mr_rules_init(struct net *net) static void __net_exit ip6mr_rules_exit(struct net *net) { +rtnl_lock ();ip6mr_free_table (net->ipv6.mrt6); + net->ipv6.mrt6 =NULL ; +rtnl_unlock (); }#endif
net/key/af_key.c +4 -0
@@ -2073,6 +2073,7 @@ static int pfkey_xfrm_policy2msg(struct sk_buff *skb, const struct xfrm_policy * pol->sadb_x_policy_type =IPSEC_POLICY_NONE ; } pol->sadb_x_policy_dir = dir+1 ; + pol->sadb_x_policy_reserved =0 ; pol->sadb_x_policy_id = xp->index; pol->sadb_x_policy_priority = xp->priority;
@@ -3108,7 +3109,9 @@ static int pfkey_send_acquire(struct xfrm_state *x, struct xfrm_tmpl *t, struct pol->sadb_x_policy_exttype =SADB_X_EXT_POLICY ; pol->sadb_x_policy_type =IPSEC_POLICY_IPSEC ; pol->sadb_x_policy_dir = dir+1 ; + pol->sadb_x_policy_reserved =0 ; pol->sadb_x_policy_id = xp->index; + pol->sadb_x_policy_priority = xp->priority;/* Set sadb_comb's. */ if (x->id.proto ==IPPROTO_AH )
@@ -3496,6 +3499,7 @@ static int pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, pol->sadb_x_policy_exttype =SADB_X_EXT_POLICY ; pol->sadb_x_policy_type =IPSEC_POLICY_IPSEC ; pol->sadb_x_policy_dir = dir +1 ; + pol->sadb_x_policy_reserved =0 ; pol->sadb_x_policy_id =0 ; pol->sadb_x_policy_priority =0 ;
net/mac80211/rx.c +8 -2
@@ -810,8 +810,14 @@ ieee80211_rx_h_check(struct ieee80211_rx_data *rx)struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;struct ieee80211_rx_status *status =IEEE80211_SKB_RXCB (rx->skb); -/* Drop duplicate 802.11 retransmissions (IEEE 802.11 Chap. 9.2.9) */ -if (rx->sta && !is_multicast_ether_addr (hdr->addr1)) { +/* +* Drop duplicate 802.11 retransmissions +* (IEEE 802.11-2012: 9.3.2.10 "Duplicate detection and recovery") +*/ +if (rx->skb->len >=24 && rx->sta && + !ieee80211_is_ctl (hdr->frame_control) && + !ieee80211_is_qos_nullfunc (hdr->frame_control) && + !is_multicast_ether_addr (hdr->addr1)) {if (unlikely (ieee80211_has_retry (hdr->frame_control) && rx->sta->last_seq_ctrl[rx->queue] == hdr->seq_ctrl)) {
net/sched/sch_atm.c +1 -0
@@ -605,6 +605,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl,struct sockaddr_atmpvc pvc;int state; +memset (&pvc,0 ,sizeof (pvc)); pvc.sap_family =AF_ATMPVC ; pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number :-1 ; pvc.sap_addr.vpi = flow->vcc->vpi;
net/sched/sch_cbq.c +1 -0
@@ -1467,6 +1467,7 @@ static int cbq_dump_wrr(struct sk_buff *skb, struct cbq_class *cl)unsigned char *b =skb_tail_pointer (skb);struct tc_cbq_wrropt opt; +memset (&opt,0 ,sizeof (opt)); opt.flags =0 ; opt.allot = cl->allot; opt.priority = cl->priority +1 ;
net/sctp/outqueue.c +2 -6
@@ -205,6 +205,8 @@ static inline int sctp_cacc_skip(struct sctp_transport *primary,*/ void sctp_outq_init (struct sctp_association *asoc,struct sctp_outq *q) { +memset (q,0 ,sizeof (struct sctp_outq )); + q->asoc = asoc;INIT_LIST_HEAD (&q->out_chunk_list);INIT_LIST_HEAD (&q->control_chunk_list);
@@ -212,13 +214,7 @@ void sctp_outq_init(struct sctp_association *asoc, struct sctp_outq *q)INIT_LIST_HEAD (&q->sacked);INIT_LIST_HEAD (&q->abandoned); - q->fast_rtx =0 ; - q->outstanding_bytes =0 ; q->empty =1 ; - q->cork =0 ; - - q->malloced =0 ; - q->out_qlen =0 ; }/* Free the outqueue structure and any related pending chunks.
net/wireless/nl80211.c +5 -2
@@ -4454,12 +4454,14 @@ EXPORT_SYMBOL(cfg80211_testmode_alloc_event_skb);void cfg80211_testmode_event (struct sk_buff *skb,gfp_t gfp) { +struct cfg80211_registered_device *rdev = ((void **)skb->cb)[0 ];void *hdr = ((void **)skb->cb)[1 ];struct nlattr *data = ((void **)skb->cb)[2 ];nla_nest_end (skb, data);genlmsg_end (skb, hdr); -genlmsg_multicast (skb,0 , nl80211_testmode_mcgrp.id, gfp); +genlmsg_multicast_netns (wiphy_net (&rdev->wiphy), skb,0 , + nl80211_testmode_mcgrp.id, gfp); }EXPORT_SYMBOL (cfg80211_testmode_event);#endif
@@ -6745,7 +6747,8 @@ void nl80211_send_mgmt_tx_status(struct cfg80211_registered_device *rdev,return ; } -genlmsg_multicast (msg,0 , nl80211_mlme_mcgrp.id, gfp); +genlmsg_multicast_netns (wiphy_net (&rdev->wiphy), msg,0 , + nl80211_mlme_mcgrp.id, gfp);return ; nla_put_failure: