Linux 3.4.48
Greg KH
maintainerI'm announcing the release of the 3.4.48 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/arm/mach-kirkwood/ts219-setup.c | 2 arch/arm/plat-orion/common.c | 12 +-- arch/avr32/kernel/module.c | 2 arch/m68k/kernel/head.S | 29 +++++---- arch/x86/um/sys_call_table_32.c | 4 - drivers/ata/ata_piix.c | 15 ++++ drivers/ata/libata-core.c | 6 + drivers/block/brd.c | 4 - drivers/gpu/drm/radeon/radeon_device.c | 19 ++--- drivers/iommu/amd_iommu.c | 31 ++++++++- drivers/iommu/amd_iommu_types.h | 1 drivers/leds/leds-ot200.c | 14 ++-- drivers/net/xen-netback/netback.c | 5 - drivers/platform/x86/thinkpad_acpi.c | 7 ++ drivers/staging/vt6656/hostap.c | 2 drivers/target/iscsi/iscsi_target_parameters.c | 8 -- drivers/target/iscsi/iscsi_target_parameters.h | 4 - drivers/tty/n_tty.c | 8 ++ drivers/usb/atm/cxacru.c | 3 drivers/usb/core/quirks.c | 3 drivers/usb/host/uhci-hub.c | 3 drivers/usb/host/xhci-mem.c | 17 ++--- drivers/usb/serial/ftdi_sio.c | 2 drivers/usb/serial/ftdi_sio_ids.h | 2 drivers/usb/serial/io_ti.c | 3 drivers/usb/serial/option.c | 13 ++-- drivers/xen/events.c | 19 ++++- fs/cifs/cifs_dfs_ref.c | 4 - fs/cifs/inode.c | 3 fs/fat/inode.c | 15 ++++ fs/jfs/inode.c | 2 fs/jfs/jfs_logmgr.c | 3 fs/nfs/nfs4proc.c | 2 fs/nilfs2/inode.c | 27 +++++++- fs/ocfs2/extent_map.c | 2 fs/xfs/xfs_iops.c | 47 ++++++++++---- include/linux/wait.h | 16 +++-- lib/klist.c | 2 mm/huge_memory.c | 7 +- mm/migrate.c | 2 mm/mmu_notifier.c | 80 ++++++++++++------------- mm/pagewalk.c | 70 +++++++++++---------- net/mac80211/iface.c | 9 ++ tools/perf/scripts/python/net_dropmonitor.py | 8 +- 45 files changed, 354 insertions(+), 185 deletions(-)
Alan Stern (2):
USB: xHCI: override bogus bulk wMaxPacketSize values
USB: UHCI: fix for suspend of virtual HP controller
Alex Deucher (1):
drm/radeon: fix card_posted check for newer asics
Aneesh Kumar K.V (1):
mm/THP: use pmd_populate() to update the pmd with pgtable_t pointer
Ben Hutchings (2):
perf: net_dropmonitor: Fix trace parameter order
perf: net_dropmonitor: Fix symbol-relative addresses
Brian Behlendorf (1):
drivers/block/brd.c: fix brd_lookup_page() race
Chew, Chiau Ee (1):
ata_piix: add PCI IDs for Intel BayTail
Christian Gmeiner (1):
drivers/leds/leds-ot200.c: fix error caused by shifted mask
Cliff Wickman (1):
mm/pagewalk.c: walk_page_range should avoid VM_PFNMAP areas
Dan Carpenter (1):
USB: cxacru: potential underflow in cxacru_cm_get_array()
Dan Williams (1):
USB: option: add device IDs for Dell 5804 (Novatel E371) WWAN card
Dave Chinner (1):
xfs: kill suid/sgid through the truncate path.
Dave Kleikamp (1):
jfs: fix a couple races
Finn Thain (1):
m68k/mac: Fix unexpected interrupt with CONFIG_EARLY_PRINTK
Gomella, Andrew (NIH/NHLBI) [F] (1):
USB: ftdi_sio: Add support for Newport CONEX motor drivers
Greg Kroah-Hartman (1):
Linux 3.4.48
Gregory CLEMENT (1):
ARM: plat-orion: Fix num_resources and id for ge10 and ge11
Hans-Christian Egtvedt (1):
avr32: fix relocation check for signed 18-bit offset
Hema Prathaban (1):
staging: vt6656: use free_netdev instead of kfree
Imre Deak (1):
wait: fix false timeouts when using wait_event_timeout()
Jeff Layton (2):
cifs: only set ops for inodes in I_NEW state
cifs: fix potential buffer overrun when composing a new options string
Joerg Roedel (1):
iommu/amd: Workaround for ERBT1312
Johannes Berg (1):
mac80211: close AP_VLAN interfaces before unregistering all
Joseph Qi (1):
ocfs2: goto out_unlock if ocfs2_get_clusters_nocache() failed in ocfs2_fiemap()
Kees Cook (1):
iscsi-target: fix heap buffer overflow on error
Keir Fraser (1):
xen/events: Handle VIRQ_TIMER before any other hardirq in event loop.
Leonid Yegoshin (1):
mm compaction: fix of improper cache flush in migration code
Manoj Iyer (1):
thinkpad-acpi: recognize latest V-Series using DMI_BIOS_VENDOR
Martin Michlmayr (1):
Kirkwood: Enable PCIe port 1 on QNAP TS-11x/TS-21x
Martin Pelikan (1):
x86, um: Correct syscall table type attributes breaking gcc 4.8
OGAWA Hirofumi (1):
fat: fix possible overflow for fat_clusters
Oliver Neukum (1):
USB: reset resume quirk needed by a hub
Ryusuke Konishi (1):
nilfs2: fix issue of nilfs_set_page_dirty() for page at EOF boundary
Schemmel Hans-Christoph (1):
USB: Blacklisted Cinterion's PLxx WWAN Interface
Suravee Suthikulpanit (1):
iommu/amd: Re-enable IOMMU event log interrupt after handling.
Teppo Kotilainen (1):
usb: option: Add Telewell TW-LTE 4G
Trond Myklebust (1):
NFSv4: Fix a thinko in nfs4_try_open_cached
Vincent Pelletier (1):
libata: make ata_exec_internal_sg honor DMADIR
Wang YanQing (1):
TTY: Fix tty miss restart after we turn off flow-control
Wei Liu (1):
xen-netback: remove skb in xen_netbk_alloc_page
Wolfgang Frisch (1):
USB: io_ti: Fix NULL dereference in chase_port()
Xiao Guangrong (1):
mm: mmu_notifier: re-fix freed page still mapped in secondary MMU
wang, biao (1):
klist: del waiter from klist_remove_waiters before wakeup waitting process
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 47 +SUBLEVEL = 48 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/mach-kirkwood/ts219-setup.c +1 -1
@@ -124,7 +124,7 @@ static void __init qnap_ts219_init(void)static int __init ts219_pci_init (void ) {if (machine_is_ts219 ()) -kirkwood_pcie_init (KW_PCIE0 ); +kirkwood_pcie_init (KW_PCIE1 |KW_PCIE0 );return 0 ; }
arch/arm/plat-orion/common.c +6 -6
@@ -340,7 +340,7 @@ static struct resource orion_ge10_shared_resources[] = {static struct platform_device orion_ge10_shared = { .name =MV643XX_ETH_SHARED_NAME , - .id =1 , + .id =2 , .dev = { .platform_data = &orion_ge10_shared_data, },
@@ -355,8 +355,8 @@ static struct resource orion_ge10_resources[] = {static struct platform_device orion_ge10 = { .name =MV643XX_ETH_NAME , - .id =1 , - .num_resources =2 , + .id =2 , + .num_resources =1 , .resource = orion_ge10_resources, .dev = { .coherent_dma_mask =DMA_BIT_MASK (32 ),
@@ -393,7 +393,7 @@ static struct resource orion_ge11_shared_resources[] = {static struct platform_device orion_ge11_shared = { .name =MV643XX_ETH_SHARED_NAME , - .id =1 , + .id =3 , .dev = { .platform_data = &orion_ge11_shared_data, },
@@ -408,8 +408,8 @@ static struct resource orion_ge11_resources[] = {static struct platform_device orion_ge11 = { .name =MV643XX_ETH_NAME , - .id =1 , - .num_resources =2 , + .id =3 , + .num_resources =1 , .resource = orion_ge11_resources, .dev = { .coherent_dma_mask =DMA_BIT_MASK (32 ),
arch/avr32/kernel/module.c +1 -1
@@ -264,7 +264,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,break ;case R_AVR32_GOT18SW :if ((relocation &0xfffe0003 ) !=0 - && (relocation &0xfffc0003 ) !=0xffff0000 ) + && (relocation &0xfffc0000 ) !=0xfffc0000 )return reloc_overflow (module,"R_AVR32_GOT18SW" , relocation); relocation >>=2 ;
arch/m68k/kernel/head.S +19 -10
@@ -2752,11 +2752,9 @@ func_return get_new_page #ifdef CONFIG_MAC L(scc_initable_mac): - .byte 9,12 /* Reset */ .byte 4,0x44 /* x16, 1 stopbit, no parity */ .byte 3,0xc0 /* receiver: 8 bpc */ .byte 5,0xe2 /* transmitter: 8 bpc, assert dtr/rts */ - .byte 9,0 /* no interrupts */ .byte 10,0 /* NRZ */ .byte 11,0x50 /* use baud rate generator */ .byte 12,1,13,0 /* 38400 baud */
@@ -2899,6 +2897,7 @@ func_start serial_init,%d0/%d1/%a0/%a1 is_not_mac(L(serial_init_not_mac)) #ifdef SERIAL_DEBUG + /* You may define either or both of these. */ #define MAC_USE_SCC_A /* Modem port */ #define MAC_USE_SCC_B /* Printer port */
@@ -2908,9 +2907,21 @@ func_start serial_init,%d0/%d1/%a0/%a1 #define mac_scc_cha_b_data_offset 0x4 #define mac_scc_cha_a_data_offset 0x6 +#if defined(MAC_USE_SCC_A) || defined(MAC_USE_SCC_B) + movel %pc@(L(mac_sccbase)),%a0 + /* Reset SCC device */ + moveb #9,%a0@(mac_scc_cha_a_ctrl_offset) + moveb #0xc0,%a0@(mac_scc_cha_a_ctrl_offset) + /* Wait for 5 PCLK cycles, which is about 68 CPU cycles */ + /* 5 / 3.6864 MHz = approx. 1.36 us = 68 / 50 MHz */ + movel #35,%d0 +5: + subq #1,%d0 + jne 5b +#endif + #ifdef MAC_USE_SCC_A /* Initialize channel A */ - movel %pc@(L(mac_sccbase)),%a0 lea %pc@(L(scc_initable_mac)),%a1 5: moveb %a1@+,%d0 jmi 6f
@@ -2922,9 +2933,6 @@ func_start serial_init,%d0/%d1/%a0/%a1 #ifdef MAC_USE_SCC_B /* Initialize channel B */ -#ifndef MAC_USE_SCC_A /* Load mac_sccbase only if needed */ - movel %pc@(L(mac_sccbase)),%a0 -#endif /* MAC_USE_SCC_A */ lea %pc@(L(scc_initable_mac)),%a1 7: moveb %a1@+,%d0 jmi 8f
@@ -2933,6 +2941,7 @@ func_start serial_init,%d0/%d1/%a0/%a1 jra 7b 8: #endif /* MAC_USE_SCC_B */ + #endif /* SERIAL_DEBUG */ jra L(serial_init_done)
@@ -3006,17 +3015,17 @@ func_start serial_putc,%d0/%d1/%a0/%a1 #ifdef SERIAL_DEBUG -#ifdef MAC_USE_SCC_A +#if defined(MAC_USE_SCC_A) || defined(MAC_USE_SCC_B) movel %pc@(L(mac_sccbase)),%a1 +#endif + +#ifdef MAC_USE_SCC_A 3: btst #2,%a1@(mac_scc_cha_a_ctrl_offset) jeq 3b moveb %d0,%a1@(mac_scc_cha_a_data_offset) #endif /* MAC_USE_SCC_A */ #ifdef MAC_USE_SCC_B -#ifndef MAC_USE_SCC_A /* Load mac_sccbase only if needed */ - movel %pc@(L(mac_sccbase)),%a1 -#endif /* MAC_USE_SCC_A */ 4: btst #2,%a1@(mac_scc_cha_b_ctrl_offset) jeq 4b moveb %d0,%a1@(mac_scc_cha_b_data_offset)
arch/x86/um/sys_call_table_32.c +2 -2
@@ -39,9 +39,9 @@#undef __SYSCALL_I386#define __SYSCALL_I386 (nr, sym, compat) [ nr ] = sym, -typedef void (*sys_call_ptr_t )(void ); +typedef asmlinkage void (*sys_call_ptr_t)(void); -extern void sys_ni_syscall (void ); +extern asmlinkage void sys_ni_syscall(void); const sys_call_ptr_t sys_call_table[] __cacheline_aligned = {/*
drivers/ata/ata_piix.c +15 -0
@@ -151,6 +151,7 @@ enum piix_controller_ids { piix_pata_vmw,/* PIIX4 for VMware, spurious DMA_ERR */ ich8_sata_snb, ich8_2port_sata_snb, + ich8_2port_sata_byt, }; struct piix_map_db {
@@ -348,6 +349,9 @@ static const struct pci_device_id piix_pci_tbl[] = { { 0x8086, 0x8d60, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb },/* SATA Controller IDE (Wellsburg) */ { 0x8086, 0x8d68, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, +/* SATA Controller IDE (BayTrail) */ + { 0x8086, 0x0F20, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_byt }, + { 0x8086, 0x0F21, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_byt }, { } /* terminate list */ };
@@ -513,6 +517,7 @@ static const struct piix_map_db *piix_map_db_table[] = { [tolapai_sata] = &tolapai_map_db, [ich8_sata_snb] = &ich8_map_db, [ich8_2port_sata_snb] = &ich8_2port_map_db, + [ich8_2port_sata_byt] = &ich8_2port_map_db, };static struct ata_port_info piix_port_info[] = {
@@ -663,6 +668,16 @@ static struct ata_port_info piix_port_info[] = { .udma_mask = ATA_UDMA6, .port_ops = &piix_sata_ops, }, + + [ich8_2port_sata_byt] = + { + .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SIDPR | PIIX_FLAG_PIO16, + .pio_mask = ATA_PIO4, + .mwdma_mask = ATA_MWDMA2, + .udma_mask = ATA_UDMA6, + .port_ops = &piix_sata_ops, + }, + };static struct pci_bits piix_enable_bits[] = {
drivers/ata/libata-core.c +6 -0
@@ -1599,6 +1599,12 @@ unsigned ata_exec_internal_sg(struct ata_device *dev, qc->tf = *tf;if (cdb)memcpy (qc->cdb, cdb,ATAPI_CDB_LEN ); + +/* some SATA bridges need us to indicate data xfer direction */ +if (tf->protocol ==ATAPI_PROT_DMA && (dev->flags &ATA_DFLAG_DMADIR ) && + dma_dir ==DMA_FROM_DEVICE ) + qc->tf.feature |=ATAPI_DMADIR ; + qc->flags |=ATA_QCFLAG_RESULT_TF ; qc->dma_dir = dma_dir;if (dma_dir !=DMA_NONE ) {
drivers/block/brd.c +2 -2
@@ -117,13 +117,13 @@ static struct page *brd_insert_page(struct brd_device *brd, sector_t sector)spin_lock (&brd->brd_lock); idx = sector >>PAGE_SECTORS_SHIFT ; + page->index = idx;if (radix_tree_insert (&brd->brd_pages, idx, page)) {__free_page (page); page =radix_tree_lookup (&brd->brd_pages, idx);BUG_ON (!page);BUG_ON (page->index != idx); - }else - page->index = idx; + }spin_unlock (&brd->brd_lock);radix_tree_preload_end ();
drivers/gpu/drm/radeon/radeon_device.c +9 -10
@@ -363,18 +363,17 @@ bool radeon_card_posted(struct radeon_device *rdev)return false;/* first check CRTCs */ -if (ASIC_IS_DCE41 (rdev)) { +if (ASIC_IS_DCE4 (rdev)) { reg =RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC0_REGISTER_OFFSET ) |RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC1_REGISTER_OFFSET ); -if (reg &EVERGREEN_CRTC_MASTER_EN ) -return true; - }else if (ASIC_IS_DCE4 (rdev)) { - reg =RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC0_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC1_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC2_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC3_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC4_REGISTER_OFFSET ) | -RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC5_REGISTER_OFFSET ); +if (rdev->num_crtc >=4 ) { + reg |=RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC2_REGISTER_OFFSET ) | +RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC3_REGISTER_OFFSET ); + } +if (rdev->num_crtc >=6 ) { + reg |=RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC4_REGISTER_OFFSET ) | +RREG32 (EVERGREEN_CRTC_CONTROL +EVERGREEN_CRTC5_REGISTER_OFFSET ); + }if (reg &EVERGREEN_CRTC_MASTER_EN )return true; }else if (ASIC_IS_AVIVO (rdev)) {
drivers/iommu/amd_iommu.c +26 -5
@@ -531,11 +531,23 @@ retry:static void iommu_poll_events (struct amd_iommu *iommu) { -u32 head, tail; +u32 head, tail, status;unsigned long flags;spin_lock_irqsave (&iommu->lock, flags); +/* enable event interrupts again */ +do { +/* +* Workaround for Erratum ERBT1312 +* Clearing the EVT_INT bit may race in the hardware, so read +* it again and make sure it was really cleared +*/ + status =readl (iommu->mmio_base +MMIO_STATUS_OFFSET ); +writel (MMIO_STATUS_EVT_INT_MASK , + iommu->mmio_base +MMIO_STATUS_OFFSET ); + }while (status &MMIO_STATUS_EVT_INT_MASK ); + head =readl (iommu->mmio_base +MMIO_EVT_HEAD_OFFSET ); tail =readl (iommu->mmio_base +MMIO_EVT_TAIL_OFFSET );
@@ -572,16 +584,25 @@ static void iommu_handle_ppr_entry(struct amd_iommu *iommu, u64 *raw)static void iommu_poll_ppr_log (struct amd_iommu *iommu) {unsigned long flags; -u32 head, tail; +u32 head, tail, status;if (iommu->ppr_log ==NULL )return ; -/* enable ppr interrupts again */ -writel (MMIO_STATUS_PPR_INT_MASK , iommu->mmio_base +MMIO_STATUS_OFFSET ); -spin_lock_irqsave (&iommu->lock, flags); +/* enable ppr interrupts again */ +do { +/* +* Workaround for Erratum ERBT1312 +* Clearing the PPR_INT bit may race in the hardware, so read +* it again and make sure it was really cleared +*/ + status =readl (iommu->mmio_base +MMIO_STATUS_OFFSET ); +writel (MMIO_STATUS_PPR_INT_MASK , + iommu->mmio_base +MMIO_STATUS_OFFSET ); + }while (status &MMIO_STATUS_PPR_INT_MASK ); + head =readl (iommu->mmio_base +MMIO_PPR_HEAD_OFFSET ); tail =readl (iommu->mmio_base +MMIO_PPR_TAIL_OFFSET );
drivers/iommu/amd_iommu_types.h +1 -0
@@ -99,6 +99,7 @@#define PASID_MASK 0x000fffff/* MMIO status bits */ +#define MMIO_STATUS_EVT_INT_MASK (1 << 1)#define MMIO_STATUS_COM_WAIT_INT_MASK (1 << 2)#define MMIO_STATUS_PPR_INT_MASK (1 << 6)
drivers/leds/leds-ot200.c +7 -7
@@ -47,37 +47,37 @@ static struct ot200_led leds[] = { { .name = "led_1", .port = 0x49, - .mask = BIT(7), + .mask = BIT(6), }, { .name = "led_2", .port = 0x49, - .mask = BIT(6), + .mask = BIT(5), }, { .name = "led_3", .port = 0x49, - .mask = BIT(5), + .mask = BIT(4), }, { .name = "led_4", .port = 0x49, - .mask = BIT(4), + .mask = BIT(3), }, { .name = "led_5", .port = 0x49, - .mask = BIT(3), + .mask = BIT(2), }, { .name = "led_6", .port = 0x49, - .mask = BIT(2), + .mask = BIT(1), }, { .name = "led_7", .port = 0x49, - .mask = BIT(1), + .mask = BIT(0), } };
drivers/net/xen-netback/netback.c +2 -3
@@ -914,7 +914,6 @@ static int netbk_count_requests(struct xenvif *vif, }static struct page *xen_netbk_alloc_page (struct xen_netbk *netbk, -struct sk_buff *skb,u16 pending_idx) {struct page *page;
@@ -948,7 +947,7 @@ static struct gnttab_copy *xen_netbk_get_requests(struct xen_netbk *netbk, index =pending_index (netbk->pending_cons++); pending_idx = netbk->pending_ring[index]; - page =xen_netbk_alloc_page (netbk, skb, pending_idx); + page =xen_netbk_alloc_page (netbk, pending_idx);if (!page) goto err;
@@ -1353,7 +1352,7 @@ static unsigned xen_netbk_tx_build_gops(struct xen_netbk *netbk) }/* XXX could copy straight to head */ - page =xen_netbk_alloc_page (netbk, skb, pending_idx); + page =xen_netbk_alloc_page (netbk, pending_idx);if (!page) {kfree_skb (skb);netbk_tx_err (vif, &txreq, idx);
drivers/platform/x86/thinkpad_acpi.c +7 -0
@@ -8662,6 +8662,13 @@ static int __must_check __init get_thinkpad_model_data( tp->model_str =kstrdup (s,GFP_KERNEL );if (!tp->model_str)return -ENOMEM ; + }else { + s =dmi_get_system_info (DMI_BIOS_VENDOR ); +if (s && !(strnicmp (s,"Lenovo" ,6 ))) { + tp->model_str =kstrdup (s,GFP_KERNEL ); +if (!tp->model_str) +return -ENOMEM ; + } } s =dmi_get_system_info (DMI_PRODUCT_NAME );
drivers/staging/vt6656/hostap.c +1 -1
@@ -153,7 +153,7 @@ static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked)DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "%s: Netdevice %s unregistered\n" , pDevice->dev->name, pDevice->apdev->name); } -kfree (pDevice->apdev); +free_netdev (pDevice->apdev); pDevice->apdev =NULL ; pDevice->bEnable8021x = FALSE; pDevice->bEnableHostWEP = FALSE;
drivers/target/iscsi/iscsi_target_parameters.c +3 -5
@@ -713,9 +713,9 @@ static int iscsi_add_notunderstood_response( }INIT_LIST_HEAD (&extra_response->er_list); -strncpy (extra_response->key, key,strlen (key) +1 ); -strncpy (extra_response->value,NOTUNDERSTOOD , -strlen (NOTUNDERSTOOD ) +1 ); +strlcpy (extra_response->key, key,sizeof (extra_response->key)); +strlcpy (extra_response->value,NOTUNDERSTOOD , +sizeof (extra_response->value));list_add_tail (&extra_response->er_list, ¶m_list->extra_response_list);
@@ -1571,8 +1571,6 @@ int iscsi_decode_text_input(if (phase &PHASE_SECURITY ) {if (iscsi_check_for_auth_key (key) >0 ) { -char *tmpptr = key +strlen (key); - *tmpptr ='=' ;kfree (tmpbuf);return 1 ; }
drivers/target/iscsi/iscsi_target_parameters.h +3 -1
@@ -1,8 +1,10 @@#ifndef ISCSI_PARAMETERS_H #define ISCSI_PARAMETERS_H +#include <scsi/iscsi_proto.h> +struct iscsi_extra_response { -char key[64 ]; +char key[KEY_MAXLEN ];char value[32 ];struct list_head er_list; }____cacheline_aligned ;
drivers/tty/n_tty.c +8 -0
@@ -1529,6 +1529,14 @@ static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) tty->real_raw =0 ; }n_tty_set_room (tty); +/* +* Fix tty hang when I_IXON(tty) is cleared, but the tty +* been stopped by STOP_CHAR(tty) before it. +*/ +if (!I_IXON (tty) && old && (old->c_iflag &IXON ) && !tty->flow_stopped) { +start_tty (tty); + } +/* The termios change make the tty ready for I/O */ wake_up_interruptible (&tty->write_wait);wake_up_interruptible (&tty->read_wait);
drivers/usb/atm/cxacru.c +2 -1
@@ -686,7 +686,8 @@ static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_requ {int ret, len;__le32 *buf; -int offb, offd; +int offb; +unsigned int offd;const int stride =CMD_PACKET_SIZE / (4 *2 ) -1 ;int buflen = ((size -1 ) / stride +1 + size *2 ) *4 ;
drivers/usb/core/quirks.c +3 -0
@@ -110,6 +110,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* Edirol SD-20 */ { USB_DEVICE(0x0582, 0x0027), .driver_info = USB_QUIRK_RESET_RESUME }, + /* Alcor Micro Corp. Hub */ + { USB_DEVICE(0x058f, 0x9254), .driver_info = USB_QUIRK_RESET_RESUME }, + /* appletouch */ { USB_DEVICE(0x05ac, 0x021a), .driver_info = USB_QUIRK_RESET_RESUME },
drivers/usb/host/uhci-hub.c +2 -1
@@ -222,7 +222,8 @@ static int uhci_hub_status_data(struct usb_hcd *hcd, char *buf)/* auto-stop if nothing connected for 1 second */ if (any_ports_active (uhci)) uhci->rh_state =UHCI_RH_RUNNING ; -else if (time_after_eq (jiffies, uhci->auto_stop_time)) +else if (time_after_eq (jiffies, uhci->auto_stop_time) && + !uhci->wait_for_hp)suspend_rh (uhci,UHCI_RH_AUTO_STOPPED );break ;
drivers/usb/host/xhci-mem.c +9 -8
@@ -1443,15 +1443,17 @@ int xhci_endpoint_init(struct xhci_hcd *xhci, ep_ctx->ep_info2 |=cpu_to_le32 (xhci_get_endpoint_type (udev, ep));/* Set the max packet size and max burst */ + max_packet =GET_MAX_PACKET (usb_endpoint_maxp (&ep->desc)); + max_burst =0 ;switch (udev->speed) {case USB_SPEED_SUPER : - max_packet =usb_endpoint_maxp (&ep->desc); - ep_ctx->ep_info2 |=cpu_to_le32 (MAX_PACKET (max_packet));/* dig out max burst from ep companion desc */ - max_packet = ep->ss_ep_comp.bMaxBurst; - ep_ctx->ep_info2 |=cpu_to_le32 (MAX_BURST (max_packet)); + max_burst = ep->ss_ep_comp.bMaxBurst;break ;case USB_SPEED_HIGH : +/* Some devices get this wrong */ +if (usb_endpoint_xfer_bulk (&ep->desc)) + max_packet =512 ;/* bits 11:12 specify the number of additional transaction * opportunities per microframe (USB 2.0, section 9.6.6) */
@@ -1459,17 +1461,16 @@ int xhci_endpoint_init(struct xhci_hcd *xhci, usb_endpoint_xfer_int(&ep->desc)) { max_burst = (usb_endpoint_maxp (&ep->desc) &0x1800 ) >>11 ; - ep_ctx->ep_info2 |=cpu_to_le32 (MAX_BURST (max_burst)); } -/* Fall through */ +break ;case USB_SPEED_FULL :case USB_SPEED_LOW : - max_packet =GET_MAX_PACKET (usb_endpoint_maxp (&ep->desc)); - ep_ctx->ep_info2 |=cpu_to_le32 (MAX_PACKET (max_packet));break ;default :BUG (); } + ep_ctx->ep_info2 |=cpu_to_le32 (MAX_PACKET (max_packet) | +MAX_BURST (max_burst)); max_esit_payload =xhci_get_max_esit_payload (xhci, udev, ep); ep_ctx->tx_info =cpu_to_le32 (MAX_ESIT_PAYLOAD_FOR_EP (max_esit_payload));
drivers/usb/serial/ftdi_sio.c +2 -0
@@ -199,6 +199,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OPENDCC_GBM_BOOST_PID) }, { USB_DEVICE(NEWPORT_VID, NEWPORT_AGILIS_PID) }, + { USB_DEVICE(NEWPORT_VID, NEWPORT_CONEX_CC_PID) }, + { USB_DEVICE(NEWPORT_VID, NEWPORT_CONEX_AGP_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_IOBOARD_PID) }, { USB_DEVICE(INTERBIOMETRICS_VID, INTERBIOMETRICS_MINI_IOBOARD_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SPROG_II) },
drivers/usb/serial/ftdi_sio_ids.h +2 -0
@@ -772,6 +772,8 @@*/ #define NEWPORT_VID 0x104D#define NEWPORT_AGILIS_PID 0x3000 +#define NEWPORT_CONEX_CC_PID 0x3002 +#define NEWPORT_CONEX_AGP_PID 0x3006/* Interbiometrics USB I/O Board */ /* Developed for Interbiometrics by Rudolf Gugler */
drivers/usb/serial/io_ti.c +3 -0
@@ -550,6 +550,9 @@ static void chase_port(struct edgeport_port *port, unsigned long timeout,wait_queue_t wait;unsigned long flags; +if (!tty) +return ; +if (!timeout) timeout = (HZ *EDGE_CLOSING_WAIT )/100 ;
drivers/usb/serial/option.c +9 -4
@@ -196,6 +196,7 @@ static void option_instat_callback(struct urb *urb);#define DELL_PRODUCT_5800_MINICARD_VZW 0x8195/* Novatel E362 */ #define DELL_PRODUCT_5800_V2_MINICARD_VZW 0x8196/* Novatel E362 */ +#define DELL_PRODUCT_5804_MINICARD_ATT 0x819b/* Novatel E371 */ #define KYOCERA_VENDOR_ID 0x0c88#define KYOCERA_PRODUCT_KPC650 0x17da
@@ -341,8 +342,8 @@ static void option_instat_callback(struct urb *urb);#define CINTERION_PRODUCT_EU3_E 0x0051#define CINTERION_PRODUCT_EU3_P 0x0052#define CINTERION_PRODUCT_PH8 0x0053 -#define CINTERION_PRODUCT_AH6 0x0055 -#define CINTERION_PRODUCT_PLS8 0x0060 +#define CINTERION_PRODUCT_AHXX 0x0055 +#define CINTERION_PRODUCT_PLXX 0x0060/* Olivetti products */ #define OLIVETTI_VENDOR_ID 0x0b3c
@@ -771,6 +772,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5730_MINICARD_VZW) }, /* Dell Wireless 5730 Mobile Broadband EVDO/HSPA Mini-Card */ { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_MINICARD_VZW, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5800_V2_MINICARD_VZW, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(DELL_VENDOR_ID, DELL_PRODUCT_5804_MINICARD_ATT, 0xff, 0xff, 0xff) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_E100A) }, /* ADU-E100, ADU-310 */ { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_500A) }, { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_620UW) },
@@ -966,6 +968,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0330, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0395, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0412, 0xff, 0xff, 0xff), /* Telewell TW-LTE 4G */ + .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0414, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0417, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1008, 0xff, 0xff, 0xff),
@@ -1264,8 +1268,9 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_EU3_E) }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_EU3_P) }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_PH8) }, - { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_AH6) }, - { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_PLS8) }, + { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_AHXX) }, + { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_PLXX), + .driver_info = (kernel_ulong_t)&net_intf4_blacklist }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_HC28_MDM) }, { USB_DEVICE(CINTERION_VENDOR_ID, CINTERION_PRODUCT_HC28_MDMNET) }, { USB_DEVICE(SIEMENS_VENDOR_ID, CINTERION_PRODUCT_HC25_MDM) },
drivers/xen/events.c +15 -4
@@ -1258,7 +1258,7 @@ static void __xen_evtchn_do_upcall(void) {int start_word_idx, start_bit_idx;int word_idx, bit_idx; -int i; +int i, irq;int cpu =get_cpu ();struct shared_info *s = HYPERVISOR_shared_info;struct vcpu_info *vcpu_info =__this_cpu_read (xen_vcpu);
@@ -1266,6 +1266,8 @@ static void __xen_evtchn_do_upcall(void) do { unsigned long pending_words; + unsigned long pending_bits; + struct irq_desc *desc; vcpu_info->evtchn_upcall_pending = 0;
@@ -1276,6 +1278,17 @@ static void __xen_evtchn_do_upcall(void)/* Clear master flag /before/ clearing selector flag. */ wmb ();#endif +if ((irq =per_cpu (virq_to_irq, cpu)[VIRQ_TIMER ]) !=-1 ) { +int evtchn =evtchn_from_irq (irq); + word_idx = evtchn /BITS_PER_LONG ; + pending_bits = evtchn %BITS_PER_LONG ; +if (active_evtchns (cpu, s, word_idx) & (1ULL << pending_bits)) { + desc =irq_to_desc (irq); +if (desc) +generic_handle_irq_desc (irq, desc); + } + } + pending_words =xchg (&vcpu_info->evtchn_pending_sel,0 ); start_word_idx =__this_cpu_read (current_word_idx);
@@ -1284,7 +1297,6 @@ static void __xen_evtchn_do_upcall(void) word_idx = start_word_idx;for (i =0 ; pending_words !=0 ; i++) { -unsigned long pending_bits;unsigned long words; words =MASK_LSBS (pending_words, word_idx);
@@ -1313,8 +1325,7 @@ static void __xen_evtchn_do_upcall(void) do { unsigned long bits; - int port, irq; - struct irq_desc *desc; + int port; bits = MASK_LSBS(pending_bits, bit_idx);
fs/cifs/cifs_dfs_ref.c +3 -1
@@ -18,6 +18,7 @@#include <linux/slab.h> #include <linux/vfs.h> #include <linux/fs.h> +#include <linux/inet.h> #include "cifsglob.h" #include "cifsproto.h" #include "cifsfs.h"
@@ -150,7 +151,8 @@ char *cifs_compose_mount_options(const char *sb_mountdata,* assuming that we have 'unc=' and 'ip=' in * the original sb_mountdata */ - md_len =strlen (sb_mountdata) + rc +strlen (ref->node_name) +12 ; + md_len =strlen (sb_mountdata) + rc +strlen (ref->node_name) +12 + +INET6_ADDRSTRLEN ; mountdata =kzalloc (md_len+1 ,GFP_KERNEL );if (mountdata ==NULL ) { rc = -ENOMEM ;
fs/cifs/inode.c +2 -1
@@ -173,7 +173,8 @@ cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr)if (fattr->cf_flags &CIFS_FATTR_DFS_REFERRAL ) inode->i_flags |=S_AUTOMOUNT ; -cifs_set_ops (inode); +if (inode->i_state &I_NEW ) +cifs_set_ops (inode); }void
fs/fat/inode.c +14 -1
@@ -1237,6 +1237,19 @@ static int fat_read_root(struct inode *inode)return 0 ; } +static unsigned long calc_fat_clusters (struct super_block *sb) +{ +struct msdos_sb_info *sbi =MSDOS_SB (sb); + +/* Divide first to avoid overflow */ +if (sbi->fat_bits !=12 ) { +unsigned long ent_per_sec = sb->s_blocksize *8 / sbi->fat_bits; +return ent_per_sec * sbi->fat_length; + } + +return sbi->fat_length * sb->s_blocksize *8 / sbi->fat_bits; +} +/* * Read the super block of an MS-DOS FS. */
@@ -1433,7 +1446,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat, sbi->fat_bits = (total_clusters >MAX_FAT12 ) ?16 :12 ;/* check that FAT table does not overflow */ - fat_clusters = sbi->fat_length * sb->s_blocksize *8 / sbi->fat_bits; + fat_clusters =calc_fat_clusters (sb); total_clusters =min (total_clusters, fat_clusters -FAT_START_ENT );if (total_clusters >MAX_FAT (sb)) {if (!silent)
fs/jfs/inode.c +1 -1
@@ -125,7 +125,7 @@ int jfs_write_inode(struct inode *inode, struct writeback_control *wbc) {int wait = wbc->sync_mode ==WB_SYNC_ALL ; -if (test_cflag (COMMIT_Nolink, inode)) +if (inode->i_nlink ==0 )return 0 ;/* * If COMMIT_DIRTY is not set, the inode isn't really dirty.
fs/jfs/jfs_logmgr.c +2 -1
@@ -1058,7 +1058,8 @@ static int lmLogSync(struct jfs_log * log, int hard_sync)*/ void jfs_syncpt (struct jfs_log *log,int hard_sync) {LOG_LOCK (log); -lmLogSync (log, hard_sync); +if (!test_bit (log_QUIESCE, &log->flag)) +lmLogSync (log, hard_sync);LOG_UNLOCK (log); }
fs/nfs/nfs4proc.c +1 -1
@@ -1053,7 +1053,7 @@ static struct nfs4_state *nfs4_try_open_cached(struct nfs4_opendata *opendata)struct nfs4_state *state = opendata->state;struct nfs_inode *nfsi =NFS_I (state->inode);struct nfs_delegation *delegation; -int open_mode = opendata->o_arg.open_flags & (O_EXCL |O_TRUNC ); +int open_mode = opendata->o_arg.open_flags;fmode_t fmode = opendata->o_arg.fmode;nfs4_stateid stateid;int ret = -EAGAIN ;
fs/nilfs2/inode.c +23 -4
@@ -195,13 +195,32 @@ static int nilfs_writepage(struct page *page, struct writeback_control *wbc)static int nilfs_set_page_dirty (struct page *page) { -int ret =__set_page_dirty_buffers (page); +int ret =__set_page_dirty_nobuffers (page); -if (ret) { +if (page_has_buffers (page)) {struct inode *inode = page->mapping->host; -unsigned nr_dirty =1 << (PAGE_SHIFT - inode->i_blkbits); +unsigned nr_dirty =0 ; +struct buffer_head *bh, *head; -nilfs_set_file_dirty (inode, nr_dirty); +/* +* This page is locked by callers, and no other thread +* concurrently marks its buffers dirty since they are +* only dirtied through routines in fs/buffer.c in +* which call sites of mark_buffer_dirty are protected +* by page lock. +*/ + bh = head =page_buffers (page); +do { +/* Do not mark hole blocks dirty */ +if (buffer_dirty (bh) || !buffer_mapped (bh)) +continue ; + +set_buffer_dirty (bh); + nr_dirty++; + }while (bh = bh->b_this_page, bh != head); + +if (nr_dirty) +nilfs_set_file_dirty (inode, nr_dirty); }return ret; }
fs/ocfs2/extent_map.c +1 -1
@@ -791,7 +791,7 @@ int ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, &hole_size, &rec, &is_last);if (ret) {mlog_errno (ret); - goto out; + goto out_unlock; }if (rec.e_blkno ==0ULL ) {
fs/xfs/xfs_iops.c +32 -15
71 lines not on this page · raw message
include/linux/wait.h +11 -5
@@ -233,6 +233,8 @@ do { \if (!ret) \break ; \ } \ +if (!ret && (condition)) \ + ret =1 ; \finish_wait (&wq, &__wait); \ }while (0 )
@@ -249,8 +251,9 @@ do { \* wake_up() has to be called after changing any variable that could * change the result of the wait condition. * -* The function returns 0 if the @timeout elapsed, and the remaining -* jiffies if the condition evaluated to true before the timeout elapsed. +* The function returns 0 if the @timeout elapsed, or the remaining +* jiffies (at least 1) if the @condition evaluated to %true before +* the @timeout elapsed. */ #define wait_event_timeout (wq, condition, timeout) \ ({ \
@@ -318,6 +321,8 @@ do { \ ret = -ERESTARTSYS ; \break ; \ } \ +if (!ret && (condition)) \ + ret =1 ; \finish_wait (&wq, &__wait); \ }while (0 )
@@ -334,9 +339,10 @@ do { \* wake_up() has to be called after changing any variable that could * change the result of the wait condition. * -* The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it -* was interrupted by a signal, and the remaining jiffies otherwise -* if the condition evaluated to true before the timeout elapsed. +* Returns: +* 0 if the @timeout elapsed, -%ERESTARTSYS if it was interrupted by +* a signal, or the remaining jiffies (at least 1) if the @condition +* evaluated to %true before the @timeout elapsed. */ #define wait_event_interruptible_timeout (wq, condition, timeout) \ ({ \
lib/klist.c +1 -1
@@ -193,10 +193,10 @@ static void klist_release(struct kref *kref)if (waiter->node != n)continue ; +list_del (&waiter->list); waiter->woken =1 ;mb ();wake_up_process (waiter->process); -list_del (&waiter->list); }spin_unlock (&klist_remove_lock);knode_set_klist (n,NULL );
mm/huge_memory.c +6 -1
@@ -1949,7 +1949,12 @@ static void collapse_huge_page(struct mm_struct *mm,pte_unmap (pte);spin_lock (&mm->page_table_lock);BUG_ON (!pmd_none (*pmd)); -set_pmd_at (mm, address, pmd, _pmd); +/* +* We can only use set_pmd_at when establishing +* hugepmds and never for establishing regular pmds that +* points to regular pagetables. Use pmd_populate for that +*/ +pmd_populate (mm, pmd,pmd_pgtable (_pmd));spin_unlock (&mm->page_table_lock);anon_vma_unlock (vma->anon_vma); goto out;
mm/migrate.c +1 -1
@@ -145,7 +145,7 @@ static int remove_migration_pte(struct page *new, struct vm_area_struct *vma,if (PageHuge (new)) pte =pte_mkhuge (pte);#endif -flush_cache_page (vma, addr,pte_pfn (pte)); +flush_dcache_page (new);set_pte_at (mm, addr, ptep, pte);if (PageHuge (new)) {
mm/mmu_notifier.c +40 -40
122 lines not on this page · raw message
mm/pagewalk.c +36 -34
94 lines not on this page · raw message
net/mac80211/iface.c +9 -0
@@ -1257,6 +1257,15 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local)ASSERT_RTNL (); +/* +* Close all AP_VLAN interfaces first, as otherwise they +* might be closed while the AP interface they belong to +* is closed, causing unregister_netdevice_many() to crash. +*/ +list_for_each_entry (sdata, &local->interfaces, list) +if (sdata->vif.type ==NL80211_IFTYPE_AP_VLAN ) +dev_close (sdata->dev); +mutex_lock (&local->iflist_mtx);list_for_each_entry_safe (sdata, tmp, &local->interfaces, list) {list_del (&sdata->list);
tools/perf/scripts/python/net_dropmonitor.py +4 -4
@@ -40,9 +40,9 @@ def get_kallsyms_table(): def get_sym(sloc): loc = int(sloc) - for i in kallsyms: - if (i['loc'] >= loc): - return (i['name'], i['loc']-loc) + for i in kallsyms[::-1]: + if loc >= i['loc']: + return (i['name'], loc - i['loc']) return (None, 0) def print_drop_table():
@@ -64,7 +64,7 @@ def trace_end(): # called from perf, when it finds a correspoinding event def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, - skbaddr, protocol, location): + skbaddr, location, protocol): slocation = str(location) try: drop_log[slocation] = drop_log[slocation] + 1