Linux 3.4.69
Greg KH
maintainerI'm announcing the release of the 3.4.69 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.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
------------
Makefile | 2 arch/parisc/kernel/head.S | 4 arch/um/kernel/exitcode.c | 4 arch/xtensa/kernel/signal.c | 2 drivers/ata/libata-eh.c | 6 drivers/gpu/drm/drm_drv.c | 9 + drivers/gpu/drm/radeon/atombios_encoders.c | 2 drivers/md/raid1.c | 1 drivers/md/raid10.c | 1 drivers/net/can/flexcan.c | 10 + drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 3 drivers/scsi/aacraid/linit.c | 2 drivers/staging/bcm/Bcmchar.c | 1 drivers/staging/ozwpan/ozcdev.c | 3 drivers/usb/core/quirks.c | 6 drivers/usb/serial/ftdi_sio.c | 1 drivers/usb/serial/ftdi_sio_ids.h | 6 drivers/usb/serial/option.c | 216 +++++++++++++++++++++++++++ fs/jfs/jfs_inode.c | 3 kernel/time/clockevents.c | 65 ++++++-- lib/scatterlist.c | 3 mm/swap.c | 31 +++ net/mac80211/ieee80211_i.h | 3 net/mac80211/scan.c | 19 ++ net/mac80211/status.c | 3 sound/core/pcm.c | 4 sound/pci/hda/patch_realtek.c | 1 sound/soc/codecs/wm_hubs.c | 1 sound/soc/soc-dapm.c | 2 29 files changed, 382 insertions(+), 32 deletions(-)
Alex Deucher (1):
drm/radeon/atom: workaround vbios bug in transmitter table on rs780
Baruch Siach (1):
xtensa: don't use alternate signal stack on threads
Chris Wilson (1):
drm: Prevent overwriting from userspace underallocating core ioctl structs
Dan Carpenter (4):
staging: ozwpan: prevent overflow in oz_cdev_write()
Staging: bcm: info leak in ioctl
uml: check length in exitcode_proc_write()
aacraid: missing capable() check in compat ioctl
Dave Kleikamp (1):
jfs: fix error path in ialloc
Emmanuel Grumbach (1):
mac80211: correctly close cancelled scans
Fangxiaozhi (Franko) (1):
USB: support new huawei devices in option.c
Felix Fietkau (1):
mac80211: update sta->last_rx on acked tx frames
Greg Kroah-Hartman (1):
Linux 3.4.69
Gwendal Grignou (1):
libata: make ata_eh_qc_retry() bump scmd->allowed on bogus failures
Helge Deller (1):
parisc: Do not crash 64bit SMP kernels on machines with >= 4GB RAM
Khalid Aziz (1):
mm: fix aio performance regression for database caused by THP
Lukasz Dorau (1):
md: Fix skipping recovery for read-only arrays.
Marc Kleine-Budde (1):
can: flexcan: flexcan_chip_start: fix regression, mark one MB for TX and abort pending TX
Mark Cave-Ayland (1):
rtlwifi: rtl8192cu: Fix error in pointer arithmetic
Ming Lei (1):
lib/scatterlist.c: don't flush_kernel_dcache_page on slab page
Oliver Neukum (2):
USB: quirks.c: add one device that cannot deal with suspension
USB: quirks: add touchscreen that is dazzeled by remote wakeup
Russell King (1):
ALSA: fix oops in snd_pcm_info() caused by ASoC DPCM
Takashi Iwai (3):
ALSA: hda - Add a fixup for ASUS N76VZ
ASoC: wm_hubs: Add missing break in hp_supply_event()
ASoC: dapm: Fix source list debugfs outputs
Thomas Gleixner (1):
clockevents: Sanitize ticks to nsec conversion
Алексей Крамаренко (1):
USB: serial: ftdi_sio: add id for Z3X Box device
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 68 +SUBLEVEL = 69 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/parisc/kernel/head.S +4 -0
@@ -195,6 +195,8 @@ common_stext: ldw MEM_PDC_HI(%r0),%r6 depd %r6, 31, 32, %r3 /* move to upper word */ + mfctl %cr30,%r6 /* PCX-W2 firmware bug */ + ldo PDC_PSW(%r0),%arg0 /* 21 */ ldo PDC_PSW_SET_DEFAULTS(%r0),%arg1 /* 2 */ ldo PDC_PSW_WIDE_BIT(%r0),%arg2 /* 2 */
@@ -203,6 +205,8 @@ common_stext: copy %r0,%arg3 stext_pdc_ret: + mtctl %r6,%cr30 /* restore task thread info */ + /* restore rfi target address*/ ldd TI_TASK-THREAD_SZ_ALGN(%sp), %r10 tophys_r1 %r10
arch/um/kernel/exitcode.c +3 -1
@@ -40,9 +40,11 @@ static ssize_t exitcode_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; +size_t size;int tmp; -if (copy_from_user (buf, buffer, count)) + size =min (count,sizeof (buf)); +if (copy_from_user (buf, buffer, size))return -EFAULT ; tmp =simple_strtol (buf, &end,0 );
arch/xtensa/kernel/signal.c +1 -1
@@ -343,7 +343,7 @@ static int setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info, sp = regs->areg[1 ]; -if ((ka->sa.sa_flags &SA_ONSTACK ) !=0 && !on_sig_stack (sp)) { +if ((ka->sa.sa_flags &SA_ONSTACK ) !=0 &&sas_ss_flags (sp) ==0 ) { sp = current->sas_ss_sp + current->sas_ss_size; }
drivers/ata/libata-eh.c +3 -3
@@ -1287,14 +1287,14 @@ void ata_eh_qc_complete(struct ata_queued_cmd *qc)* should be retried. To be used from EH. * * SCSI midlayer limits the number of retries to scmd->allowed. -* scmd->retries is decremented for commands which get retried +* scmd->allowed is incremented for commands which get retried * due to unrelated failures (qc->err_mask is zero). */ void ata_eh_qc_retry (struct ata_queued_cmd *qc) {struct scsi_cmnd *scmd = qc->scsicmd; -if (!qc->err_mask && scmd->retries) - scmd->retries--; +if (!qc->err_mask) + scmd->allowed++;__ata_eh_qc_complete (qc); }
drivers/gpu/drm/drm_drv.c +8 -1
@@ -420,9 +420,16 @@ long drm_ioctl(struct file *filp, asize = drv_size; }else if ((nr >=DRM_COMMAND_END ) || (nr <DRM_COMMAND_BASE )) { +u32 drv_size; + ioctl = &drm_ioctls[nr]; - cmd = ioctl->cmd; + + drv_size =_IOC_SIZE (ioctl->cmd); usize = asize =_IOC_SIZE (cmd); +if (drv_size > asize) + asize = drv_size; + + cmd = ioctl->cmd; }else goto err_i1;
drivers/gpu/drm/radeon/atombios_encoders.c +1 -1
@@ -1430,7 +1430,7 @@ radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode)* does the same thing and more. */ if ((rdev->family !=CHIP_RV710 ) && (rdev->family !=CHIP_RV730 ) && - (rdev->family !=CHIP_RS880 )) + (rdev->family !=CHIP_RS780 ) && (rdev->family !=CHIP_RS880 ))atombios_dig_transmitter_setup (encoder,ATOM_TRANSMITTER_ACTION_ENABLE_OUTPUT ,0 ,0 ); }if (ENCODER_MODE_IS_DP (atombios_get_encoder_mode (encoder)) && connector) {
drivers/md/raid1.c +1 -0
@@ -1357,6 +1357,7 @@ static int raid1_spare_active(struct mddev *mddev) } }if (rdev + && rdev->recovery_offset == MaxSector && !test_bit (Faulty, &rdev->flags) && !test_and_set_bit (In_sync, &rdev->flags)) { count++;
drivers/md/raid10.c +1 -0
@@ -1534,6 +1534,7 @@ static int raid10_spare_active(struct mddev *mddev) }sysfs_notify_dirent_safe (tmp->replacement->sysfs_state); }else if (tmp->rdev + && tmp->rdev->recovery_offset == MaxSector && !test_bit (Faulty, &tmp->rdev->flags) && !test_and_set_bit (In_sync, &tmp->rdev->flags)) { count++;
drivers/net/can/flexcan.c +8 -2
@@ -60,7 +60,7 @@#define FLEXCAN_MCR_BCC BIT(16)#define FLEXCAN_MCR_LPRIO_EN BIT(13)#define FLEXCAN_MCR_AEN BIT(12) -#define FLEXCAN_MCR_MAXMB (x) ((x) & 0xf) +#define FLEXCAN_MCR_MAXMB (x) ((x) & 0x1f)#define FLEXCAN_MCR_IDAM_A (0 << 8)#define FLEXCAN_MCR_IDAM_B (1 << 8)#define FLEXCAN_MCR_IDAM_C (2 << 8)
@@ -701,9 +701,11 @@ static int flexcan_chip_start(struct net_device *dev)* */ reg_mcr =flexcan_read (®s->mcr); + reg_mcr &= ~FLEXCAN_MCR_MAXMB (0xff ); reg_mcr |=FLEXCAN_MCR_FRZ |FLEXCAN_MCR_FEN |FLEXCAN_MCR_HALT |FLEXCAN_MCR_SUPV |FLEXCAN_MCR_WRN_EN | -FLEXCAN_MCR_IDAM_C |FLEXCAN_MCR_SRX_DIS ; +FLEXCAN_MCR_IDAM_C |FLEXCAN_MCR_SRX_DIS | +FLEXCAN_MCR_MAXMB (FLEXCAN_TX_BUF_ID );netdev_dbg (dev,"%s: writing mcr=0x%08x" , __func__, reg_mcr);flexcan_write (reg_mcr, ®s->mcr);
@@ -744,6 +746,10 @@ static int flexcan_chip_start(struct net_device *dev) ®s->cantxfg[i].can_ctrl); } +/* Abort any pending TX, mark Mailbox as INACTIVE */ +flexcan_write (FLEXCAN_MB_CNT_CODE (0x4 ), + ®s->cantxfg[FLEXCAN_TX_BUF_ID ].can_ctrl); +/* acceptance mask/acceptance code (accept everything) */ flexcan_write (0x0 , ®s->rxgmask);flexcan_write (0x0 , ®s->rx14mask);
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +2 -1
@@ -343,7 +343,8 @@ bool rtl92cu_rx_query_desc(struct ieee80211_hw *hw, (bool)GET_RX_DESC_PAGGR(pdesc)); rx_status->mactime =GET_RX_DESC_TSFL (pdesc);if (phystatus) { - p_drvinfo = (struct rx_fwinfo_92c *)(pdesc +RTL_RX_DESC_SIZE ); + p_drvinfo = (struct rx_fwinfo_92c *)(skb->data + + stats->rx_bufshift);rtl92c_translate_rx_signal_stuff (hw, skb, stats, pdesc, p_drvinfo); }
drivers/scsi/aacraid/linit.c +2 -0
@@ -777,6 +777,8 @@ static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned longstatic int aac_compat_ioctl (struct scsi_device *sdev,int cmd,void __user *arg) {struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; +if (!capable (CAP_SYS_RAWIO )) +return -EPERM ;return aac_compat_do_ioctl (dev, cmd, (unsigned long )arg); }
drivers/staging/bcm/Bcmchar.c +1 -0
@@ -1957,6 +1957,7 @@ cntrlEnd:BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,OSAL_DBG ,DBG_LVL_ALL ,"Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n" ); +memset (&DevInfo,0 ,sizeof (DevInfo)); DevInfo.MaxRDMBufferSize =BUFFER_4K ; DevInfo.u32DSDStartOffset =EEPROM_CALPARAM_START ; DevInfo.u32RxAlignmentCorrection =0 ;
drivers/staging/ozwpan/ozcdev.c +3 -0
@@ -153,6 +153,9 @@ ssize_t oz_cdev_write(struct file *filp, const char __user *buf, size_t count,struct oz_app_hdr *app_hdr;struct oz_serial_ctx *ctx; +if (count >sizeof (ei->data) -sizeof (*elt) -sizeof (*app_hdr)) +return -EINVAL ; +spin_lock_bh (&g_cdev.lock); pd = g_cdev.active_pd;if (pd)
drivers/usb/core/quirks.c +6 -0
@@ -119,6 +119,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Alcor Micro Corp. Hub */ { USB_DEVICE(0x058f, 0x9254), .driver_info = USB_QUIRK_RESET_RESUME }, + /* MicroTouch Systems touchscreen */ + { USB_DEVICE(0x0596, 0x051e), .driver_info = USB_QUIRK_RESET_RESUME }, + /* appletouch */ { USB_DEVICE(0x05ac, 0x021a), .driver_info = USB_QUIRK_RESET_RESUME },
@@ -152,6 +155,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Broadcom BCM92035DGROM BT dongle */ { USB_DEVICE(0x0a5c, 0x2021), .driver_info = USB_QUIRK_RESET_RESUME }, + /* MAYA44USB sound device */ + { USB_DEVICE(0x0a92, 0x0091), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Action Semiconductor flash disk */ { USB_DEVICE(0x10d6, 0x2200), .driver_info = USB_QUIRK_STRING_FETCH_255 },
drivers/usb/serial/ftdi_sio.c +1 -0
@@ -916,6 +916,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_LUMEL_PD12_PID) },/* Crucible Devices */ { USB_DEVICE(FTDI_VID, FTDI_CT_COMET_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_Z3X_PID) }, { }, /* Optional parameter entry */ { } /* Terminating entry */ };
drivers/usb/serial/ftdi_sio_ids.h +6 -0
@@ -1307,3 +1307,9 @@* Manufacturer: Crucible Technologies */ #define FTDI_CT_COMET_PID 0x8e08 + +/* +* Product: Z3X Box +* Manufacturer: Smart GSM Team +*/ +#define FTDI_Z3X_PID 0x0011
drivers/usb/serial/option.c +216 -0
222 lines not on this page · raw message
fs/jfs/jfs_inode.c +1 -2
@@ -95,7 +95,7 @@ struct inode *ialloc(struct inode *parent, umode_t mode)if (insert_inode_locked (inode) <0 ) { rc = -EINVAL ; - goto fail_unlock; + goto fail_put; }inode_init_owner (inode, parent, mode);
@@ -156,7 +156,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode) fail_drop:dquot_drop (inode); inode->i_flags |=S_NOQUOTA ; -fail_unlock:clear_nlink (inode);unlock_new_inode (inode); fail_put:
kernel/time/clockevents.c +50 -15
87 lines not on this page · raw message
lib/scatterlist.c +2 -1
@@ -419,7 +419,8 @@ void sg_miter_stop(struct sg_mapping_iter *miter)if (miter->addr) { miter->__offset += miter->consumed; -if (miter->__flags &SG_MITER_TO_SG ) +if ((miter->__flags &SG_MITER_TO_SG ) && + !PageSlab (miter->page))flush_kernel_dcache_page (miter->page);if (miter->__flags &SG_MITER_ATOMIC ) {
mm/swap.c +29 -2
@@ -30,6 +30,7 @@#include <linux/backing-dev.h> #include <linux/memcontrol.h> #include <linux/gfp.h> +#include <linux/hugetlb.h> #include "internal.h"
@@ -68,13 +69,26 @@ static void __put_compound_page(struct page *page) {compound_page_dtor *dtor; -__page_cache_release (page); +if (!PageHuge (page)) +__page_cache_release (page); dtor =get_compound_page_dtor (page); (*dtor)(page); }static void put_compound_page (struct page *page) { +/* +* hugetlbfs pages cannot be split from under us. If this is a +* hugetlbfs page, check refcount on head page and release the page if +* the refcount becomes zero. +*/ +if (PageHuge (page)) { + page =compound_head (page); +if (put_page_testzero (page)) +__put_compound_page (page); +return ; + } +if (unlikely (PageTail (page))) {/* __split_huge_page_refcount can run under us */ struct page *page_head =compound_trans_head (page);
@@ -159,8 +173,20 @@ bool __get_page_tail(struct page *page)*/ unsigned long flags;bool got = false; -struct page *page_head =compound_trans_head (page); +struct page *page_head; + +/* +* If this is a hugetlbfs page it cannot be split under us. Simply +* increment refcount for the head page. +*/ +if (PageHuge (page)) { + page_head =compound_head (page); +atomic_inc (&page_head->_count); + got = true; + goto out; + } + page_head =compound_trans_head (page);if (likely (page != page_head &&get_page_unless_zero (page_head))) {/* * page_head wasn't a dangling pointer but it
@@ -178,6 +204,7 @@ bool __get_page_tail(struct page *page)if (unlikely (!got))put_page (page_head); } +out:return got; }EXPORT_SYMBOL (__get_page_tail);
net/mac80211/ieee80211_i.h +3 -0
@@ -789,12 +789,15 @@ struct tpt_led_trigger {* that the scan completed. * @SCAN_ABORTED: Set for our scan work function when the driver reported * a scan complete for an aborted scan. +* @SCAN_HW_CANCELLED: Set for our scan work function when the scan is being +* cancelled. */ enum {SCAN_SW_SCANNING ,SCAN_HW_SCANNING ,SCAN_COMPLETED ,SCAN_ABORTED , +SCAN_HW_CANCELLED , };/**
net/mac80211/scan.c +19 -0
@@ -259,6 +259,9 @@ static bool ieee80211_prep_hw_scan(struct ieee80211_local *local)enum ieee80211_band band;int i, ielen, n_chans; +if (test_bit (SCAN_HW_CANCELLED , &local->scanning)) +return false; + do { if (local->hw_scan_band == IEEE80211_NUM_BANDS) return false;
@@ -844,7 +847,23 @@ void ieee80211_scan_cancel(struct ieee80211_local *local)if (!local->scan_req) goto out; +/* +* We have a scan running and the driver already reported completion, +* but the worker hasn't run yet or is stuck on the mutex - mark it as +* cancelled. +*/ +if (test_bit (SCAN_HW_SCANNING , &local->scanning) && +test_bit (SCAN_COMPLETED , &local->scanning)) { +set_bit (SCAN_HW_CANCELLED , &local->scanning); + goto out; + } +if (test_bit (SCAN_HW_SCANNING , &local->scanning)) { +/* +* Make sure that __ieee80211_scan_completed doesn't trigger a +* scan on another band. +*/ +set_bit (SCAN_HW_CANCELLED , &local->scanning);if (local->ops->cancel_hw_scan)drv_cancel_hw_scan (local, local->scan_sdata); goto out;
net/mac80211/status.c +3 -0
@@ -183,6 +183,9 @@ static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb)struct ieee80211_local *local = sta->local;struct ieee80211_sub_if_data *sdata = sta->sdata; +if (local->hw.flags &IEEE80211_HW_REPORTS_TX_ACK_STATUS ) + sta->last_rx = jiffies; +if (ieee80211_is_data_qos (mgmt->frame_control)) {struct ieee80211_hdr *hdr = (void *) skb->data;u8 *qc =ieee80211_get_qos_ctl (hdr);
sound/core/pcm.c +4 -0
@@ -49,6 +49,8 @@ static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device)struct snd_pcm *pcm;list_for_each_entry (pcm, &snd_pcm_devices, list) { +if (pcm->internal) +continue ;if (pcm->card == card && pcm->device == device)return pcm; }
@@ -60,6 +62,8 @@ static int snd_pcm_next(struct snd_card *card, int device)struct snd_pcm *pcm;list_for_each_entry (pcm, &snd_pcm_devices, list) { +if (pcm->internal) +continue ;if (pcm->card == card && pcm->device > device)return pcm->device;else if (pcm->card->number > card->number)
sound/pci/hda/patch_realtek.c +1 -0
@@ -6833,6 +6833,7 @@ static const struct snd_pci_quirk alc662_fixup_tbl[] = {SND_PCI_QUIRK (0x1025 ,0x038b ,"Acer Aspire 8943G" ,ALC662_FIXUP_ASPIRE ),SND_PCI_QUIRK (0x103c ,0x1632 ,"HP RP5800" ,ALC662_FIXUP_HP_RP5800 ),SND_PCI_QUIRK (0x1043 ,0x1477 ,"ASUS N56VZ" ,ALC662_FIXUP_ASUS_MODE4 ), +SND_PCI_QUIRK (0x1043 ,0x1bf3 ,"ASUS N76VZ" ,ALC662_FIXUP_ASUS_MODE4 ),SND_PCI_QUIRK (0x1043 ,0x8469 ,"ASUS mobo" ,ALC662_FIXUP_NO_JACK_DETECT ),SND_PCI_QUIRK (0x105b ,0x0cd6 ,"Foxconn" ,ALC662_FIXUP_ASUS_MODE2 ), SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
sound/soc/codecs/wm_hubs.c +1 -0
@@ -413,6 +413,7 @@ static int hp_supply_event(struct snd_soc_dapm_widget *w, hubs->hp_startup_mode);break ; } +break ;case SND_SOC_DAPM_PRE_PMD : snd_soc_update_bits(codec, WM8993_CHARGE_PUMP_1,
sound/soc/soc-dapm.c +1 -1
@@ -1590,7 +1590,7 @@ static ssize_t dapm_widget_power_read_file(struct file *file, w->active ? "active" : "inactive");list_for_each_entry (p, &w->sources, list_sink) { -if (p->connected && !p->connected (w, p->sink)) +if (p->connected && !p->connected (w, p->source))continue ;if (p->connect)