Linux 4.4.52
Greg KH
maintainerI'm announcing the release of the 4.4.52 kernel.
All users of the 4.4 kernel series must upgrade.
The updated 4.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.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
------------
Documentation/kernel-parameters.txt | 4 + Makefile | 2 arch/x86/kvm/vmx.c | 56 +++++++++------------- arch/x86/platform/goldfish/goldfish.c | 14 +++++ block/blk-mq.c | 17 +++--- drivers/net/wireless/realtek/rtlwifi/usb.c | 19 +++++++ drivers/platform/goldfish/pdev_bus.c | 13 +++-- drivers/rtc/interface.c | 16 ++++++ drivers/tty/serial/msm_serial.c | 1 drivers/usb/chipidea/ci_hdrc_imx.c | 1 drivers/usb/serial/ark3116.c | 13 ++++- drivers/usb/serial/cp210x.c | 2 drivers/usb/serial/ftdi_sio.c | 31 +++++++----- drivers/usb/serial/mos7840.c | 4 + drivers/usb/serial/opticon.c | 2 drivers/usb/serial/spcp8x5.c | 8 ++- mm/backing-dev.c | 9 ++- net/dccp/input.c | 3 - net/ipv4/ip_sockglue.c | 8 +-- net/irda/irqueue.c | 34 ++++++------- net/llc/llc_conn.c | 3 + net/llc/llc_sap.c | 3 + net/packet/af_packet.c | 72 ++++++++++++++++++----------- net/socket.c | 4 + 24 files changed, 218 insertions(+), 121 deletions(-)
Andrey Konovalov (1):
dccp: fix freeing skb too early for IPV6_RECVPKTINFO
Anoob Soman (1):
packet: Do not call fanout_release from atomic contexts
Colin Ian King (1):
rtc: interface: ignore expired timers when enqueuing new timers
David S. Miller (1):
irda: Fix lockdep annotations in hashbin_delete().
Eric Dumazet (2):
net/llc: avoid BUG_ON() in skb_orphan()
packet: fix races in fanout_add()
Greg Kroah-Hartman (1):
Linux 4.4.52
Javier Martinez Canillas (1):
tty: serial: msm: Fix module autoload
Johan Hovold (7):
USB: serial: mos7840: fix another NULL-deref at open
USB: serial: ftdi_sio: fix modem-status error handling
USB: serial: ftdi_sio: fix extreme low-latency setting
USB: serial: ftdi_sio: fix line-status over-reporting
USB: serial: spcp8x5: fix modem-status handling
USB: serial: opticon: fix CTS retrieval at open
USB: serial: ark3116: fix register-accessor error handling
Ken Lin (1):
USB: serial: cp210x: add new IDs for GE Bx50v3 boards
Larry Finger (1):
rtlwifi: rtl_usb: Fix missing entry in USB driver's private data
Maxime Jayat (1):
net: socket: fix recvmmsg not returning error from sock_error
Michael Schenk (1):
rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down
Omar Sandoval (1):
blk-mq: really fix plug list flushing for nomerge queues
Paolo Abeni (1):
ip: fix IP_CHECKSUM handling
Peter Chen (1):
Revert "usb: chipidea: imx: enable CI_HDRC_SET_NON_ZERO_TTHA"
Peter Feiner (1):
kvm: vmx: ensure VMCS is current while enabling PML
Tejun Heo (1):
block: fix double-free in the failure path of cgwb_bdi_init()
Thomas Gleixner (2):
x86/platform/goldfish: Prevent unconditional loading
goldfish: Sanitize the broken interrupt handler
Greg KH
maintainerDocumentation/kernel-parameters.txt +4 -0
@@ -1255,6 +1255,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted. When zero, profiling data is discarded and associated debugfs files are removed at module unload time. + goldfish [X86] Enable the goldfish android emulator platform. + Don't use this when you are not running on the + android emulator + gpt [EFI] Forces disk with valid GPT signature but invalid Protective MBR to be treated as GPT. If the primary GPT is corrupted, it enables the backup/alternate
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 51 +SUBLEVEL = 52 EXTRAVERSION = NAME = Blurry Fish Butt
arch/x86/kvm/vmx.c +24 -32
90 lines not on this page · raw message
arch/x86/platform/goldfish/goldfish.c +13 -1
@@ -42,10 +42,22 @@ static struct resource goldfish_pdev_bus_resources[] = { } }; +static bool goldfish_enable__initdata ; + +static int __init goldfish_setup (char *str) +{ + goldfish_enable = true; +return 0 ; +} +__setup ("goldfish" , goldfish_setup); +static int __init goldfish_init (void ) { +if (!goldfish_enable) +return -ENODEV ; +platform_device_register_simple ("goldfish_pdev_bus" ,-1 , - goldfish_pdev_bus_resources,2 ); + goldfish_pdev_bus_resources,2 );return 0 ; }device_initcall (goldfish_init);
block/blk-mq.c +8 -9
@@ -1259,12 +1259,9 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio)blk_queue_split (q, &bio, q->bio_split); -if (!is_flush_fua && !blk_queue_nomerges (q)) { -if (blk_attempt_plug_merge (q, bio, &request_count, - &same_queue_rq)) -return BLK_QC_T_NONE ; - }else - request_count =blk_plug_queued_count (q); +if (!is_flush_fua && !blk_queue_nomerges (q) && +blk_attempt_plug_merge (q, bio, &request_count, &same_queue_rq)) +return BLK_QC_T_NONE ; rq =blk_mq_map_request (q, bio, &data);if (unlikely (!rq))
@@ -1355,9 +1352,11 @@ static blk_qc_t blk_sq_make_request(struct request_queue *q, struct bio *bio)blk_queue_split (q, &bio, q->bio_split); -if (!is_flush_fua && !blk_queue_nomerges (q) && -blk_attempt_plug_merge (q, bio, &request_count,NULL )) -return BLK_QC_T_NONE ; +if (!is_flush_fua && !blk_queue_nomerges (q)) { +if (blk_attempt_plug_merge (q, bio, &request_count,NULL )) +return BLK_QC_T_NONE ; + }else + request_count =blk_plug_queued_count (q); rq =blk_mq_map_request (q, bio, &data);if (unlikely (!rq))
drivers/net/wireless/realtek/rtlwifi/usb.c +19 -0
@@ -834,12 +834,30 @@ static void rtl_usb_stop(struct ieee80211_hw *hw)struct rtl_priv *rtlpriv =rtl_priv (hw);struct rtl_hal *rtlhal =rtl_hal (rtl_priv (hw));struct rtl_usb *rtlusb =rtl_usbdev (rtl_usbpriv (hw)); +struct urb *urb;/* should after adapter start and interrupt enable. */ set_hal_stop (rtlhal);cancel_work_sync (&rtlpriv->works.fill_h2c_cmd);/* Enable software */ SET_USB_STOP (rtlusb); + +/* free pre-allocated URBs from rtl_usb_start() */ +usb_kill_anchored_urbs (&rtlusb->rx_submitted); + +tasklet_kill (&rtlusb->rx_work_tasklet); +cancel_work_sync (&rtlpriv->works.lps_change_work); + +flush_workqueue (rtlpriv->works.rtl_wq); + +skb_queue_purge (&rtlusb->rx_queue); + +while ((urb =usb_get_from_anchor (&rtlusb->rx_cleanup_urbs))) { +usb_free_coherent (urb->dev, urb->transfer_buffer_length, + urb->transfer_buffer, urb->transfer_dma); +usb_free_urb (urb); + } + rtlpriv->cfg->ops->hw_disable (hw); }
@@ -1073,6 +1091,7 @@ int rtl_usb_probe(struct usb_interface *intf,return -ENOMEM ; } rtlpriv = hw->priv; + rtlpriv->hw = hw; rtlpriv->usb_data =kzalloc (RTL_USB_MAX_RX_COUNT *sizeof (u32),GFP_KERNEL );if (!rtlpriv->usb_data)
drivers/platform/goldfish/pdev_bus.c +8 -5
@@ -157,23 +157,26 @@ static int goldfish_new_pdev(void)static irqreturn_t goldfish_pdev_bus_interrupt (int irq,void *dev_id) {irqreturn_t ret =IRQ_NONE ; +while (1 ) {u32 op =readl (pdev_bus_base +PDEV_BUS_OP ); -switch (op) { -case PDEV_BUS_OP_DONE : -return IRQ_NONE ; +switch (op) {case PDEV_BUS_OP_REMOVE_DEV :goldfish_pdev_remove (); + ret =IRQ_HANDLED ;break ;case PDEV_BUS_OP_ADD_DEV :goldfish_new_pdev (); + ret =IRQ_HANDLED ;break ; + +case PDEV_BUS_OP_DONE : +default : +return ret; } - ret =IRQ_HANDLED ; } -return ret; }static int goldfish_pdev_bus_probe (struct platform_device *pdev)
drivers/rtc/interface.c +15 -1
@@ -748,9 +748,23 @@ EXPORT_SYMBOL_GPL(rtc_irq_set_freq);*/ static int rtc_timer_enqueue (struct rtc_device *rtc,struct rtc_timer *timer) { +struct timerqueue_node *next =timerqueue_getnext (&rtc->timerqueue); +struct rtc_time tm; +ktime_t now; + timer->enabled =1 ; +__rtc_read_time (rtc, &tm); + now =rtc_tm_to_ktime (tm); + +/* Skip over expired timers */ +while (next) { +if (next->expires.tv64 >= now.tv64) +break ; + next =timerqueue_iterate_next (next); + } +timerqueue_add (&rtc->timerqueue, &timer->node); -if (&timer->node ==timerqueue_getnext (&rtc->timerqueue)) { +if (!next) {struct rtc_wkalrm alarm;int err; alarm.time =rtc_ktime_to_tm (timer->node.expires);
drivers/tty/serial/msm_serial.c +1 -0
@@ -1615,6 +1615,7 @@ static const struct of_device_id msm_match_table[] = { { .compatible = "qcom,msm-uartdm" }, {} }; +MODULE_DEVICE_TABLE (of, msm_match_table);static struct platform_driver msm_platform_driver = { .remove = msm_serial_remove,
drivers/usb/chipidea/ci_hdrc_imx.c +0 -1
@@ -244,7 +244,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)struct ci_hdrc_platform_data pdata = { .name =dev_name (&pdev->dev), .capoffset =DEF_CAPOFFSET , - .flags =CI_HDRC_SET_NON_ZERO_TTHA , };int ret;const struct of_device_id *of_id;
drivers/usb/serial/ark3116.c +10 -3
@@ -99,10 +99,17 @@ static int ark3116_read_reg(struct usb_serial *serial,usb_rcvctrlpipe (serial->dev,0 ),0xfe ,0xc0 ,0 , reg, buf, 1, ARK_TIMEOUT); -if (result <0 ) +if (result <1 ) { +dev_err (&serial->interface->dev, +"failed to read register %u: %d\n" , + reg, result); +if (result >=0 ) + result = -EIO ; +return result; -else -return buf[0 ]; + } + +return buf[0 ]; }static inline int calc_divisor (int bps)
drivers/usb/serial/cp210x.c +2 -0
@@ -171,6 +171,8 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x1901, 0x0190) }, /* GE B850 CP2105 Recorder interface */ { USB_DEVICE(0x1901, 0x0193) }, /* GE B650 CP2104 PMC interface */ { USB_DEVICE(0x1901, 0x0194) }, /* GE Healthcare Remote Alarm Box */ + { USB_DEVICE(0x1901, 0x0195) }, /* GE B850/B650/B450 CP2104 DP UART interface */ + { USB_DEVICE(0x1901, 0x0196) }, /* GE B850 CP2105 DP UART interface */ { USB_DEVICE(0x19CF, 0x3000) }, /* Parrot NMEA GPS Flight Recorder */ { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */ { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */
drivers/usb/serial/ftdi_sio.c +19 -12
@@ -1807,8 +1807,6 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)mutex_init (&priv->cfg_lock); - priv->flags =ASYNC_LOW_LATENCY ; -if (quirk && quirk->port_probe) quirk->port_probe (priv);
@@ -2072,6 +2070,20 @@ static int ftdi_process_packet(struct usb_serial_port *port, priv->prev_status = status; } +/* save if the transmitter is empty or not */ +if (packet[1 ] &FTDI_RS_TEMT ) + priv->transmit_empty =1 ; +else + priv->transmit_empty =0 ; + + len -=2 ; +if (!len) +return 0 ;/* status only */ + +/* +* Break and error status must only be processed for packets with +* data payload to avoid over-reporting. +*/ flag =TTY_NORMAL ;if (packet[1 ] &FTDI_RS_ERR_MASK ) {/* Break takes precedence over parity, which takes precedence
@@ -2094,15 +2106,6 @@ static int ftdi_process_packet(struct usb_serial_port *port, } } -/* save if the transmitter is empty or not */ -if (packet[1 ] &FTDI_RS_TEMT ) - priv->transmit_empty =1 ; -else - priv->transmit_empty =0 ; - - len -=2 ; -if (!len) -return 0 ;/* status only */ port->icount.rx += len; ch = packet +2 ;
@@ -2433,8 +2436,12 @@ static int ftdi_get_modem_status(struct usb_serial_port *port,FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE ,0 , priv->interface, buf, len, WDR_TIMEOUT); -if (ret <0 ) { + +/* NOTE: We allow short responses and handle that below. */ +if (ret <1 ) {dev_err (&port->dev,"failed to get modem status: %d\n" , ret); +if (ret >=0 ) + ret = -EIO ; ret =usb_translate_errors (ret); goto out; }
drivers/usb/serial/mos7840.c +3 -1
@@ -1024,6 +1024,7 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port)* (can't set it up in mos7840_startup as the structures * * were not set up at that time.) */ if (port0->open_ports ==1 ) { +/* FIXME: Buffer never NULL, so URB is not submitted. */ if (serial->port[0 ]->interrupt_in_buffer ==NULL ) {/* set up interrupt urb */ usb_fill_int_urb(serial->port[0]->interrupt_in_urb,
@@ -2119,7 +2120,8 @@ static int mos7840_calc_num_ports(struct usb_serial *serial)static int mos7840_attach (struct usb_serial *serial) {if (serial->num_bulk_in < serial->num_ports || - serial->num_bulk_out < serial->num_ports) { + serial->num_bulk_out < serial->num_ports || + serial->num_interrupt_in <1 ) {dev_err (&serial->interface->dev,"missing endpoints\n" );return -ENODEV ; }
drivers/usb/serial/opticon.c +1 -1
@@ -142,7 +142,7 @@ static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port)usb_clear_halt (port->serial->dev, port->read_urb->pipe); res =usb_serial_generic_open (tty, port); -if (!res) +if (res)return res;/* Request CTS line state, sometimes during opening the current
drivers/usb/serial/spcp8x5.c +7 -1
@@ -232,11 +232,17 @@ static int spcp8x5_get_msr(struct usb_serial_port *port, u8 *status) ret =usb_control_msg (dev,usb_rcvctrlpipe (dev,0 ),GET_UART_STATUS ,GET_UART_STATUS_TYPE ,0 ,GET_UART_STATUS_MSR , buf,1 ,100 ); -if (ret <0 ) +if (ret <1 ) {dev_err (&port->dev,"failed to get modem status: %d\n" , ret); +if (ret >=0 ) + ret = -EIO ; + goto out; + }dev_dbg (&port->dev,"0xc0:0x22:0:6 %d - 0x02%x\n" , ret, *buf); *status = *buf; + ret =0 ; +out:kfree (buf);return ret;
mm/backing-dev.c +7 -2
@@ -757,15 +757,20 @@ static int cgwb_bdi_init(struct backing_dev_info *bdi)if (!bdi->wb_congested)return -ENOMEM ; +atomic_set (&bdi->wb_congested->refcnt,1 ); + err =wb_init (&bdi->wb, bdi,1 ,GFP_KERNEL );if (err) { -kfree (bdi->wb_congested); +wb_congested_put (bdi->wb_congested);return err; } return 0; } -static void cgwb_bdi_destroy (struct backing_dev_info *bdi) { } +static void cgwb_bdi_destroy (struct backing_dev_info *bdi) +{ +wb_congested_put (bdi->wb_congested); +}#endif /* CONFIG_CGROUP_WRITEBACK */
net/dccp/input.c +2 -1
@@ -606,7 +606,8 @@ int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb,if (inet_csk (sk)->icsk_af_ops->conn_request (sk, skb) <0 )return 1 ; - goto discard; +consume_skb (skb); +return 0 ; }if (dh->dccph_type ==DCCP_PKT_RESET ) goto discard;
net/ipv4/ip_sockglue.c +4 -4
@@ -105,10 +105,10 @@ static void ip_cmsg_recv_checksum(struct msghdr *msg, struct sk_buff *skb,if (skb->ip_summed !=CHECKSUM_COMPLETE )return ; -if (offset !=0 ) - csum =csum_sub (csum, -csum_partial (skb->data + tlen, - offset,0 )); +if (offset !=0 ) { +int tend_off =skb_transport_offset (skb) + tlen; + csum =csum_sub (csum,skb_checksum (skb, tend_off, offset,0 )); + }put_cmsg (msg,SOL_IP ,IP_CHECKSUM ,sizeof (__wsum), &csum); }
net/irda/irqueue.c +16 -18
@@ -383,9 +383,6 @@ EXPORT_SYMBOL(hashbin_new);* for deallocating this structure if it's complex. If not the user can * just supply kfree, which should take care of the job. */ -#ifdef CONFIG_LOCKDEP -static int hashbin_lock_depth =0 ; -#endif int hashbin_delete (hashbin_t * hashbin,FREE_FUNC free_func) {irda_queue_t * queue;
@@ -396,22 +393,27 @@ int hashbin_delete( hashbin_t* hashbin, FREE_FUNC free_func) IRDA_ASSERT(hashbin->magic == HB_MAGIC, return -1;);/* Synchronize */ -if ( hashbin->hb_type &HB_LOCK ) { -spin_lock_irqsave_nested (&hashbin->hb_spinlock, flags, - hashbin_lock_depth++); - } +if (hashbin->hb_type &HB_LOCK ) +spin_lock_irqsave (&hashbin->hb_spinlock, flags);/* * Free the entries in the hashbin, TODO: use hashbin_clear when * it has been shown to work */ for (i =0 ; i <HASHBIN_SIZE ; i ++ ) { - queue =dequeue_first ((irda_queue_t **) &hashbin->hb_queue[i]); -while (queue ) { -if (free_func) - (*free_func)(queue); - queue =dequeue_first ( - (irda_queue_t **) &hashbin->hb_queue[i]); +while (1 ) { + queue =dequeue_first ((irda_queue_t **) &hashbin->hb_queue[i]); + +if (!queue) +break ; + +if (free_func) { +if (hashbin->hb_type &HB_LOCK ) +spin_unlock_irqrestore (&hashbin->hb_spinlock, flags); +free_func (queue); +if (hashbin->hb_type &HB_LOCK ) +spin_lock_irqsave (&hashbin->hb_spinlock, flags); + } } }
@@ -420,12 +422,8 @@ int hashbin_delete( hashbin_t* hashbin, FREE_FUNC free_func) hashbin->magic = ~HB_MAGIC ;/* Release lock */ -if ( hashbin->hb_type &HB_LOCK ) { +if (hashbin->hb_type &HB_LOCK )spin_unlock_irqrestore (&hashbin->hb_spinlock, flags); -#ifdef CONFIG_LOCKDEP - hashbin_lock_depth--; -#endif - }/* * Free the hashbin structure
net/llc/llc_conn.c +3 -0
@@ -821,7 +821,10 @@ void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb)* another trick required to cope with how the PROCOM state * machine works. -acme */ +skb_orphan (skb); +sock_hold (sk); skb->sk = sk; + skb->destructor = sock_efree; }if (!sock_owned_by_user (sk))llc_conn_rcv (sk, skb);
net/llc/llc_sap.c +3 -0
@@ -290,7 +290,10 @@ static void llc_sap_rcv(struct llc_sap *sap, struct sk_buff *skb, ev->type =LLC_SAP_EV_TYPE_PDU ; ev->reason =0 ; +skb_orphan (skb); +sock_hold (sk); skb->sk = sk; + skb->destructor = sock_efree;llc_sap_state_process (sap, skb); }
net/packet/af_packet.c +45 -27
151 lines not on this page · raw message
net/socket.c +3 -1
@@ -2185,8 +2185,10 @@ int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, unsigned int vlen,return err; err =sock_error (sock->sk); -if (err) +if (err) { + datagrams = err; goto out_put; + } entry = mmsg; compat_entry = (struct compat_mmsghdr __user *)mmsg;