Linux 3.2.18
I'm announcing the release of the 3.2.18 kernel.
All users of the 3.2 kernel series should upgrade.
The updated 3.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.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
Ben.
------------
Documentation/networking/ip-sysctl.txt | 4 +- Makefile | 2 +- .../include/mach/ctrl_module_pad_core_44xx.h | 8 +- arch/arm/mach-orion5x/mpp.h | 4 +- arch/arm/mm/fault.c | 4 +- arch/arm/vfp/vfpmodule.c | 10 ++- arch/ia64/include/asm/unistd.h | 3 +- arch/ia64/kernel/entry.S | 1 + arch/sparc/kernel/central.c | 2 +- arch/sparc/mm/ultra.S | 6 +- arch/tile/kernel/compat_signal.c | 12 ++- drivers/crypto/Kconfig | 1 + drivers/gpio/gpio-ml-ioh.c | 1 + drivers/md/dm-mpath.c | 4 +- drivers/md/md.c | 2 + drivers/media/rc/ene_ir.c | 32 ++++---- drivers/media/rc/fintek-cir.c | 20 ++--- drivers/media/rc/ite-cir.c | 20 ++--- drivers/media/rc/nuvoton-cir.c | 36 ++++----- drivers/media/rc/winbond-cir.c | 78 ++++++++++---------- drivers/media/video/marvell-ccic/mmp-driver.c | 1 - drivers/media/video/s5p-fimc/fimc-capture.c | 2 +- drivers/net/ethernet/broadcom/tg3.c | 18 ++++- drivers/net/ethernet/intel/e1000/e1000_main.c | 6 +- drivers/net/ethernet/marvell/sky2.c | 31 +++++--- drivers/net/ethernet/marvell/sky2.h | 1 - drivers/net/ethernet/stmicro/stmmac/mmc_core.c | 1 + drivers/net/ethernet/sun/sungem.c | 2 +- drivers/net/phy/icplus.c | 3 +- drivers/net/usb/asix.c | 4 +- drivers/net/usb/cdc_ether.c | 30 +++++++- drivers/net/usb/usbnet.c | 54 ++++++++++---- drivers/net/wireless/brcm80211/brcmsmac/ampdu.c | 6 +- drivers/net/wireless/brcm80211/brcmsmac/main.c | 2 +- drivers/regulator/max8997.c | 2 +- drivers/spi/spi-topcliff-pch.c | 78 +++++++++++++++++--- drivers/target/target_core_file.c | 22 ++++-- drivers/target/target_core_pr.c | 3 + drivers/target/target_core_tpg.c | 22 ------ fs/ext4/xattr.c | 7 +- fs/jffs2/gc.c | 2 +- fs/nfs/nfs4proc.c | 1 + include/linux/mtd/map.h | 2 +- include/linux/usb/usbnet.h | 3 +- kernel/fork.c | 3 + mm/hugetlb.c | 1 - mm/nobootmem.c | 3 +- mm/percpu.c | 10 +++ net/core/dev.c | 20 +++++ net/core/pktgen.c | 10 ++- net/ipv4/tcp.c | 12 +-- net/ipv4/tcp_input.c | 11 ++- net/l2tp/l2tp_ip.c | 3 +- net/sched/sch_netem.c | 6 +- sound/pci/echoaudio/echoaudio_dsp.c | 2 +- sound/pci/hda/hda_intel.c | 6 +- sound/pci/hda/patch_sigmatel.c | 6 +- sound/soc/codecs/wm8994.c | 2 +- 58 files changed, 408 insertions(+), 240 deletions(-)
Alexander Clouter (1):
crypto: mv_cesa requires on CRYPTO_HASH to build
Archit Taneja (1):
ARM: OMAP: Revert "ARM: OMAP: ctrl: Fix CONTROL_DSIPHY register fields"
Arend van Spriel (1):
brcm80211: smac: fix endless retry of A-MPDU transmissions
Artem Bityutskiy (1):
mtd: map.h: fix arm cross-build failure
Axel Lin (2):
regulator: Fix the logic to ensure new voltage setting in valid range
gpio: Add missing spin_lock_init in gpio-ml-ioh driver
Ben Hutchings (2):
ARM: orion5x: Fix GPIO enable bits for MPP9
Linux 3.2.18
Bernhard Kohl (1):
target: Fix SPC-2 RELEASE bug for multi-session iSCSI client setups
Bjørn Mork (1):
cdc_ether: Ignore bogus union descriptor for RNDIS devices
Chris Metcalf (2):
hugetlb: prevent BUG_ON in hugetlb_fault() -> hugetlb_cow() arch/tile: apply commit 74fca9da0 to the compat signal handling as well
Dan Williams (1):
cdc_ether: add Novatel USB551L device IDs for FLAG_WWAN
David Henningsson (1):
ALSA: HDA: Lessen CPU usage when waiting for chip to respond
David S. Miller (1):
sparc64: Do not clobber %g2 in xcall_fetch_glob_regs().
Eric Dumazet (4):
netem: fix possible skb leak
tcp: change tcp_adv_win_scale and tcp_rmem[2]
pktgen: fix crash at module unload
pktgen: fix module unload for good
Eric Sandeen (1):
ext4: avoid deadlock on sync-mounted FS w/o journal
Eric W. Biederman (1):
net: In unregister_netdevice_notifier unregister the netdevices.
Gerard Lledo (1):
sungem: Fix WakeOnLan
Ingo van Lil (1):
asix: Fix tx transfer padding for full-speed USB
Jonathan Brassow (1):
MD: Add del_timer_sync to mddev_suspend (fix nasty panic)
Jonathan Corbet (1):
marvell-cam: fix an ARM build error
Jonathan Nieder (2):
brcm80211: smac: pass missing argument to 'brcms_b_mute'
NFSv4: Revalidate uid/gid after open
Josh Cartwright (1):
jffs2: Fix lock acquisition order bug in gc path
Luis Henriques (1):
rc: Postpone ISR registration
Mark Brown (1):
ASoC: wm8994: Fix AIF2ADC power down
Mark Hills (1):
ALSA: echoaudio: Remove incorrect part of assertion
Matt Carlson (1):
tg3: Avoid panic from reserved statblk field access
Mike Galbraith (1):
namespaces, pid_ns: fix leakage on fork() failure
Mike Snitzer (1):
dm mpath: check if scsi_dh module already loaded before trying to load
Ming Lei (1):
usbnet: fix skb traversing races during unlink(v2)
Nicholas Bellinger (2):
target: Drop incorrect se_lun_acl release for dynamic -> explict ACL conversion
target: Fix bug in handling of FILEIO + block_device resize ops
Russ Anderson (1):
mm: nobootmem: fix sign extend problem in __free_pages_memory()
Russell King (1):
ARM: prevent VM_GROWSDOWN mmaps extending below FIRST_USER_ADDRESS
Sasha Levin (1):
net: l2tp: unlock socket lock before returning from l2tp_ip_sendmsg
Srinivas Kandagatla (1):
phy:icplus:fix Auto Power Saving in ip101a_config_init.
Stefan Roese (1):
stmmac: Fix compilation error in mmc_core.c
Sylwester Nawrocki (1):
s5p-fimc: Fix locking in subdev set_crop op
Takashi Iwai (1):
ALSA: hda/idt - Fix power-map for speaker-pins with some HP laptops
Tejun Heo (1):
percpu: pcpu_embed_first_chunk() should free unused parts after all allocs are complete
Tomoya MORINAGA (4):
spi-topcliff-pch: Modify pci-bus number dynamically to get DMA device info
spi-topcliff-pch: Fix issue for transmitting over 4KByte
spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
spi-topcliff-pch: add recovery processing in case wait-event timeout
Tushar Dave (1):
e1000: Prevent reset task killing itself.
Will Deacon (1):
ARM: 7417/1: vfp: ensure preemption is disabled when enabling VFP access
Willy Tarreau (1):
tcp: do_tcp_sendpages() must try to push data out on oom conditions
Yuchung Cheng (1):
tcp: fix infinite cwnd in tcp_complete_cwr()
stephen hemminger (2):
sky2: propogate rx hash when packet is copied
sky2: fix receive length error in mixed non-VLAN/VLAN traffic
Émeric Maschino (1):
ia64: Add accept4() syscall
Signature · 3 lines
Ben Hutchings
Life is what happens to you while you're busy making other plans.
- John LennonDocumentation/networking/ip-sysctl.txt +2 -2
@@ -137,7 +137,7 @@ tcp_adv_win_scale - INTEGER (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale), if it is <= 0. Possible values are [-31, 31], inclusive. - Default: 2 + Default: 1 tcp_allowed_congestion_control - STRING Show/set the congestion control choices available to non-privileged
@@ -397,7 +397,7 @@ tcp_rmem - vector of 3 INTEGERs: min, default, max net.core.rmem_max. Calling setsockopt() with SO_RCVBUF disables automatic tuning of that socket's receive buffer size, in which case this value is ignored. - Default: between 87380B and 4MB, depending on RAM size. + Default: between 87380B and 6MB, depending on RAM size. tcp_sack - BOOLEAN Enable select acknowledgments (SACKS).
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 17 +SUBLEVEL = 18 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/mach-omap2/include/mach/ctrl_module_pad_core_44xx.h +4 -4
@@ -941,10 +941,10 @@#define OMAP4_DSI2_LANEENABLE_MASK (0x7 << 29)#define OMAP4_DSI1_LANEENABLE_SHIFT 24#define OMAP4_DSI1_LANEENABLE_MASK (0x1f << 24) -#define OMAP4_DSI2_PIPD_SHIFT 19 -#define OMAP4_DSI2_PIPD_MASK (0x1f << 19) -#define OMAP4_DSI1_PIPD_SHIFT 14 -#define OMAP4_DSI1_PIPD_MASK (0x1f << 14) +#define OMAP4_DSI1_PIPD_SHIFT 19 +#define OMAP4_DSI1_PIPD_MASK (0x1f << 19) +#define OMAP4_DSI2_PIPD_SHIFT 14 +#define OMAP4_DSI2_PIPD_MASK (0x1f << 14)/* CONTROL_MCBSPLP */ #define OMAP4_ALBCTRLRX_FSX_SHIFT 31
arch/arm/mach-orion5x/mpp.h +2 -2
@@ -65,8 +65,8 @@#define MPP8_GIGE MPP(8, 0x1, 0, 0, 1, 1, 1)#define MPP9_UNUSED MPP(9, 0x0, 0, 0, 1, 1, 1) -#define MPP9_GPIO MPP(9, 0x0, 0, 0, 1, 1, 1) -#define MPP9_GIGE MPP(9, 0x1, 1, 1, 1, 1, 1) +#define MPP9_GPIO MPP(9, 0x0, 1, 1, 1, 1, 1) +#define MPP9_GIGE MPP(9, 0x1, 0, 0, 1, 1, 1)#define MPP10_UNUSED MPP(10, 0x0, 0, 0, 1, 1, 1)#define MPP10_GPIO MPP(10, 0x0, 1, 1, 1, 1, 1)
arch/arm/mm/fault.c +3 -1
@@ -267,7 +267,9 @@ good_area:return fault; check_stack: -if (vma->vm_flags &VM_GROWSDOWN && !expand_stack (vma, addr)) +/* Don't allow expansion below FIRST_USER_ADDRESS */ +if (vma->vm_flags &VM_GROWSDOWN && + addr >=FIRST_USER_ADDRESS && !expand_stack (vma, addr)) goto good_area; out:return fault;
arch/arm/vfp/vfpmodule.c +6 -4
@@ -11,6 +11,7 @@#include <linux/types.h> #include <linux/cpu.h> #include <linux/cpu_pm.h> +#include <linux/hardirq.h> #include <linux/kernel.h> #include <linux/notifier.h> #include <linux/signal.h>
@@ -428,7 +429,10 @@ void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs)static void vfp_enable (void *unused) { -u32 access =get_copro_access (); +u32 access; + +BUG_ON (preemptible ()); + access =get_copro_access ();/* * Enable full access to VFP (cp10 and cp11)
@@ -556,7 +560,7 @@ static int __init vfp_init(void)unsigned int cpu_arch =cpu_architecture ();if (cpu_arch >= CPU_ARCH_ARMv6) -vfp_enable (NULL ); +on_each_cpu (vfp_enable,NULL ,1 );/* * First check that there is a VFP that we can use.
@@ -577,8 +581,6 @@ static int __init vfp_init(void) }else {hotcpu_notifier (vfp_hotplug,0 ); -smp_call_function (vfp_enable,NULL ,1 ); - VFP_arch = (vfpsid &FPSID_ARCH_MASK ) >>FPSID_ARCH_BIT ;/* Extract the architecture version */ printk("implementor %02x architecture %d part %02x variant %x rev %x\n", (vfpsid & FPSID_IMPLEMENTER_MASK) >> FPSID_IMPLEMENTER_BIT,
arch/ia64/include/asm/unistd.h +2 -1
@@ -323,11 +323,12 @@#define __NR_sendmmsg 1331#define __NR_process_vm_readv 1332#define __NR_process_vm_writev 1333 +#define __NR_accept4 1334#ifdef __KERNEL__ -#define NR_syscalls 310/* length of syscall table */ +#define NR_syscalls 311/* length of syscall table */ /* * The following defines stop scripts/checksyscalls.sh from complaining about
arch/ia64/kernel/entry.S +1 -0
@@ -1779,6 +1779,7 @@ sys_call_table: data8 sys_sendmmsg data8 sys_process_vm_readv data8 sys_process_vm_writev + data8 sys_accept4 .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */
arch/sparc/kernel/central.c +1 -1
@@ -269,4 +269,4 @@ static int __init sunfire_init(void)return 0 ; } -subsys_initcall (sunfire_init); +fs_initcall (sunfire_init);
arch/sparc/mm/ultra.S +3 -3
@@ -495,11 +495,11 @@ xcall_fetch_glob_regs: stx %o7, [%g1 + GR_SNAP_O7] stx %i7, [%g1 + GR_SNAP_I7] /* Don't try this at home kids... */ - rdpr %cwp, %g2 - sub %g2, 1, %g7 + rdpr %cwp, %g3 + sub %g3, 1, %g7 wrpr %g7, %cwp mov %i7, %g7 - wrpr %g2, %cwp + wrpr %g3, %cwp stx %g7, [%g1 + GR_SNAP_RPC] sethi %hi(trap_block), %g7 or %g7, %lo(trap_block), %g7
arch/tile/kernel/compat_signal.c +5 -7
@@ -406,19 +406,17 @@ int compat_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,* Set up registers for signal handler. * Registers that we don't modify keep the value they had from * user-space at the time we took the signal. +* We always pass siginfo and mcontext, regardless of SA_SIGINFO, +* since some things rely on this (e.g. glibc's debug/segfault.c). */ regs->pc =ptr_to_compat_reg (ka->sa.sa_handler); regs->ex1 =PL_ICS_EX1 (USER_PL ,1 );/* set crit sec in handler */ regs->sp =ptr_to_compat_reg (frame); regs->lr = restorer; regs->regs[0 ] = (unsigned long ) usig; - -if (ka->sa.sa_flags &SA_SIGINFO ) { -/* Need extra arguments, so mark to restore caller-saves. */ - regs->regs[1 ] =ptr_to_compat_reg (&frame->info); - regs->regs[2 ] =ptr_to_compat_reg (&frame->uc); - regs->flags |=PT_FLAGS_CALLER_SAVES ; - } + regs->regs[1 ] =ptr_to_compat_reg (&frame->info); + regs->regs[2 ] =ptr_to_compat_reg (&frame->uc); + regs->flags |=PT_FLAGS_CALLER_SAVES ;/* * Notify any tracer that was single-stepping it.
drivers/crypto/Kconfig +1 -0
@@ -173,6 +173,7 @@ config CRYPTO_DEV_MV_CESA select CRYPTO_ALGAPI select CRYPTO_AES select CRYPTO_BLKCIPHER2 + select CRYPTO_HASH help This driver allows you to utilize the Cryptographic Engines and Security Accelerator (CESA) which can be found on the Marvell Orion
drivers/gpio/gpio-ml-ioh.c +1 -0
@@ -448,6 +448,7 @@ static int __devinit ioh_gpio_probe(struct pci_dev *pdev, chip->reg = chip->base; chip->ch = i;mutex_init (&chip->lock); +spin_lock_init (&chip->spinlock);ioh_gpio_setup (chip, num_ports[i]); ret =gpiochip_add (&chip->gpio);if (ret) {
drivers/md/dm-mpath.c +2 -2
@@ -698,8 +698,8 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)return 0 ; m->hw_handler_name =kstrdup (dm_shift_arg (as),GFP_KERNEL ); -request_module ("scsi_dh_%s" , m->hw_handler_name); -if (scsi_dh_handler_exist (m->hw_handler_name) ==0 ) { +if (!try_then_request_module (scsi_dh_handler_exist (m->hw_handler_name), +"scsi_dh_%s" , m->hw_handler_name)) { ti->error ="unknown hardware handler type" ; ret = -EINVAL ; goto fail;
drivers/md/md.c +2 -0
@@ -392,6 +392,8 @@ void mddev_suspend(struct mddev *mddev)synchronize_rcu ();wait_event (mddev->sb_wait,atomic_read (&mddev->active_io) ==0 ); mddev->pers->quiesce (mddev,1 ); + +del_timer_sync (&mddev->safemode_timer); }EXPORT_SYMBOL_GPL (mddev_suspend);
drivers/media/rc/ene_ir.c +16 -16
@@ -1018,22 +1018,6 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)spin_lock_init (&dev->hw_lock); -/* claim the resources */ - error = -EBUSY ; - dev->hw_io =pnp_port_start (pnp_dev,0 ); -if (!request_region (dev->hw_io,ENE_IO_SIZE ,ENE_DRIVER_NAME )) { - dev->hw_io =-1 ; - dev->irq =-1 ; - goto error; - } - - dev->irq =pnp_irq (pnp_dev,0 ); -if (request_irq (dev->irq, ene_isr, -IRQF_SHARED ,ENE_DRIVER_NAME , (void *)dev)) { - dev->irq =-1 ; - goto error; - } -pnp_set_drvdata (pnp_dev, dev); dev->pnp_dev = pnp_dev;
@@ -1086,6 +1070,22 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)device_set_wakeup_capable (&pnp_dev->dev, true);device_set_wakeup_enable (&pnp_dev->dev, true); +/* claim the resources */ + error = -EBUSY ; + dev->hw_io =pnp_port_start (pnp_dev,0 ); +if (!request_region (dev->hw_io,ENE_IO_SIZE ,ENE_DRIVER_NAME )) { + dev->hw_io =-1 ; + dev->irq =-1 ; + goto error; + } + + dev->irq =pnp_irq (pnp_dev,0 ); +if (request_irq (dev->irq, ene_isr, +IRQF_SHARED ,ENE_DRIVER_NAME , (void *)dev)) { + dev->irq =-1 ; + goto error; + } + error =rc_register_device (rdev);if (error <0 ) goto error;
drivers/media/rc/fintek-cir.c +10 -10
@@ -504,16 +504,6 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_idspin_lock_init (&fintek->fintek_lock); - ret = -EBUSY ; -/* now claim resources */ -if (!request_region (fintek->cir_addr, - fintek->cir_port_len,FINTEK_DRIVER_NAME )) - goto failure; - -if (request_irq (fintek->cir_irq, fintek_cir_isr,IRQF_SHARED , -FINTEK_DRIVER_NAME , (void *)fintek)) - goto failure; -pnp_set_drvdata (pdev, fintek); fintek->pdev = pdev;
@@ -548,6 +538,16 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id/* rx resolution is hardwired to 50us atm, 1, 25, 100 also possible */ rdev->rx_resolution =US_TO_NS (CIR_SAMPLE_PERIOD ); + ret = -EBUSY ; +/* now claim resources */ +if (!request_region (fintek->cir_addr, + fintek->cir_port_len,FINTEK_DRIVER_NAME )) + goto failure; + +if (request_irq (fintek->cir_irq, fintek_cir_isr,IRQF_SHARED , +FINTEK_DRIVER_NAME , (void *)fintek)) + goto failure; + ret =rc_register_device (rdev);if (ret) goto failure;
drivers/media/rc/ite-cir.c +10 -10
@@ -1515,16 +1515,6 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id/* initialize raw event */ init_ir_raw_event (&itdev->rawir); - ret = -EBUSY ; -/* now claim resources */ -if (!request_region (itdev->cir_addr, - dev_desc->io_region_size,ITE_DRIVER_NAME )) - goto failure; - -if (request_irq (itdev->cir_irq, ite_cir_isr,IRQF_SHARED , -ITE_DRIVER_NAME , (void *)itdev)) - goto failure; -/* set driver data into the pnp device */ pnp_set_drvdata (pdev, itdev); itdev->pdev = pdev;
@@ -1600,6 +1590,16 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id rdev->driver_name =ITE_DRIVER_NAME ; rdev->map_name =RC_MAP_RC6_MCE ; + ret = -EBUSY ; +/* now claim resources */ +if (!request_region (itdev->cir_addr, + dev_desc->io_region_size,ITE_DRIVER_NAME )) + goto failure; + +if (request_irq (itdev->cir_irq, ite_cir_isr,IRQF_SHARED , +ITE_DRIVER_NAME , (void *)itdev)) + goto failure; + ret =rc_register_device (rdev);if (ret) goto failure;
drivers/media/rc/nuvoton-cir.c +18 -18
@@ -1021,24 +1021,6 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)spin_lock_init (&nvt->nvt_lock);spin_lock_init (&nvt->tx.lock); - ret = -EBUSY ; -/* now claim resources */ -if (!request_region (nvt->cir_addr, -CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) - goto failure; - -if (request_irq (nvt->cir_irq, nvt_cir_isr,IRQF_SHARED , -NVT_DRIVER_NAME , (void *)nvt)) - goto failure; - -if (!request_region (nvt->cir_wake_addr, -CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) - goto failure; - -if (request_irq (nvt->cir_wake_irq, nvt_cir_wake_isr,IRQF_SHARED , -NVT_DRIVER_NAME , (void *)nvt)) - goto failure; -pnp_set_drvdata (pdev, nvt); nvt->pdev = pdev;
@@ -1085,6 +1067,24 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) rdev->tx_resolution =XYZ ;#endif + ret = -EBUSY ; +/* now claim resources */ +if (!request_region (nvt->cir_addr, +CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) + goto failure; + +if (request_irq (nvt->cir_irq, nvt_cir_isr,IRQF_SHARED , +NVT_DRIVER_NAME , (void *)nvt)) + goto failure; + +if (!request_region (nvt->cir_wake_addr, +CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) + goto failure; + +if (request_irq (nvt->cir_wake_irq, nvt_cir_wake_isr,IRQF_SHARED , +NVT_DRIVER_NAME , (void *)nvt)) + goto failure; + ret =rc_register_device (rdev);if (ret) goto failure;
drivers/media/rc/winbond-cir.c +39 -39
107 lines not on this page · raw message
drivers/media/video/marvell-ccic/mmp-driver.c +0 -1
@@ -175,7 +175,6 @@ static int mmpcam_probe(struct platform_device *pdev)INIT_LIST_HEAD (&cam->devlist); mcam = &cam->mcam; - mcam->platform = MHP_Armada610; mcam->plat_power_up = mmpcam_power_up; mcam->plat_power_down = mmpcam_power_down; mcam->dev = &pdev->dev;
drivers/media/video/s5p-fimc/fimc-capture.c +1 -1
@@ -1304,7 +1304,7 @@ static int fimc_subdev_set_crop(struct v4l2_subdev *sd,fimc_capture_try_crop (ctx, r, crop->pad);if (crop->which ==V4L2_SUBDEV_FORMAT_TRY ) { -mutex_lock (&fimc->lock); +mutex_unlock (&fimc->lock); *v4l2_subdev_get_try_crop (fh, crop->pad) = *r;return 0 ; }
drivers/net/ethernet/broadcom/tg3.c +16 -2
@@ -879,8 +879,13 @@ static inline unsigned int tg3_has_work(struct tg3_napi *tnapi)if (sblk->status &SD_STATUS_LINK_CHG ) work_exists =1 ; } -/* check for RX/TX work to do */ -if (sblk->idx[0 ].tx_consumer != tnapi->tx_cons || + +/* check for TX work to do */ +if (sblk->idx[0 ].tx_consumer != tnapi->tx_cons) + work_exists =1 ; + +/* check for RX work to do */ +if (tnapi->rx_rcb_prod_idx && *(tnapi->rx_rcb_prod_idx) != tnapi->rx_rcb_ptr) work_exists =1 ;
@@ -5895,6 +5900,9 @@ static int tg3_poll_work(struct tg3_napi *tnapi, int work_done, int budget)return work_done; } +if (!tnapi->rx_rcb_prod_idx) +return work_done; +/* run RX thread, within the bounds set by NAPI. * All RX "locking" is done by ensuring outside * code synchronizes with tg3->napi.poll()
@@ -7448,6 +7456,12 @@ static int tg3_alloc_consistent(struct tg3 *tp)*/ switch (i) {default : +if (tg3_flag (tp,ENABLE_RSS )) { + tnapi->rx_rcb_prod_idx =NULL ; +break ; + } +/* Fall through */ +case 1 : tnapi->rx_rcb_prod_idx = &sblk->idx[0 ].rx_producer;break ;case 2 :
drivers/net/ethernet/intel/e1000/e1000_main.c +5 -1
@@ -494,7 +494,11 @@ out:static void e1000_down_and_stop (struct e1000_adapter *adapter) {set_bit (__E1000_DOWN, &adapter->flags); -cancel_work_sync (&adapter->reset_task); + +/* Only kill reset task if adapter is not resetting */ +if (!test_bit (__E1000_RESETTING, &adapter->flags)) +cancel_work_sync (&adapter->reset_task); +cancel_delayed_work_sync (&adapter->watchdog_task);cancel_delayed_work_sync (&adapter->phy_info_task);cancel_delayed_work_sync (&adapter->fifo_stall_task);
drivers/net/ethernet/marvell/sky2.c +20 -11
@@ -2475,8 +2475,13 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2,skb_copy_from_linear_data (re->skb, skb->data, length); skb->ip_summed = re->skb->ip_summed; skb->csum = re->skb->csum; + skb->rxhash = re->skb->rxhash; + skb->vlan_tci = re->skb->vlan_tci; +pci_dma_sync_single_for_device (sky2->hw->pdev, re->data_addr, length,PCI_DMA_FROMDEVICE ); + re->skb->vlan_tci =0 ; + re->skb->rxhash =0 ; re->skb->ip_summed =CHECKSUM_NONE ;skb_put (skb, length); }
@@ -2561,9 +2566,6 @@ static struct sk_buff *sky2_receive(struct net_device *dev,struct sk_buff *skb =NULL ;u16 count = (status &GMR_FS_LEN ) >>16 ; -if (status &GMR_FS_VLAN ) - count -=VLAN_HLEN ;/* Account for vlan tag */ -netif_printk (sky2, rx_status,KERN_DEBUG , dev,"rx slot %u status 0x%x len %d\n" , sky2->rx_next, status, length);
@@ -2571,6 +2573,9 @@ static struct sk_buff *sky2_receive(struct net_device *dev, sky2->rx_next = (sky2->rx_next +1 ) % sky2->rx_pending;prefetch (sky2->rx_ring + sky2->rx_next); +if (vlan_tx_tag_present (re->skb)) + count -=VLAN_HLEN ;/* Account for vlan tag */ +/* This chip has hardware problems that generates bogus status. * So do only marginal checking and expect higher level protocols * to handle crap frames.
@@ -2628,11 +2633,8 @@ static inline void sky2_tx_done(struct net_device *dev, u16 last) }static inline void sky2_skb_rx (const struct sky2_port *sky2, -u32 status,struct sk_buff *skb) +struct sk_buff *skb) { -if (status &GMR_FS_VLAN ) -__vlan_hwaccel_put_tag (skb,be16_to_cpu (sky2->rx_tag)); -if (skb->ip_summed ==CHECKSUM_NONE )netif_receive_skb (skb);else
@@ -2686,6 +2688,14 @@ static void sky2_rx_checksum(struct sky2_port *sky2, u32 status) } } +static void sky2_rx_tag (struct sky2_port *sky2,u16 length) +{ +struct sk_buff *skb; + + skb = sky2->rx_ring[sky2->rx_next].skb; +__vlan_hwaccel_put_tag (skb,be16_to_cpu (length)); +} +static void sky2_rx_hash (struct sky2_port *sky2,u32 status) {struct sk_buff *skb;
@@ -2744,8 +2754,7 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx) } skb->protocol =eth_type_trans (skb, dev); - -sky2_skb_rx (sky2, status, skb); +sky2_skb_rx (sky2, skb);/* Stop after net poll weight */ if (++work_done >= to_do)
@@ -2753,11 +2762,11 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx)break ;case OP_RXVLAN : - sky2->rx_tag = length; +sky2_rx_tag (sky2, length);break ;case OP_RXCHKSVLAN : - sky2->rx_tag = length; +sky2_rx_tag (sky2, length);/* fall through */ case OP_RXCHKS :if (likely (dev->features &NETIF_F_RXCSUM ))
drivers/net/ethernet/marvell/sky2.h +0 -1
@@ -2241,7 +2241,6 @@ struct sky2_port {u16 rx_pending;u16 rx_data_size;u16 rx_nfrags; -u16 rx_tag;struct {unsigned long last;
drivers/net/ethernet/stmicro/stmmac/mmc_core.c +1 -0
@@ -22,6 +22,7 @@Author: Giuseppe Cavallaro <[email protected]> *******************************************************************************/ +#include <linux/kernel.h> #include <linux/io.h> #include "mmc.h"
drivers/net/ethernet/sun/sungem.c +1 -1
@@ -2340,7 +2340,7 @@ static int gem_suspend(struct pci_dev *pdev, pm_message_t state)netif_device_detach (dev);/* Switch off chip, remember WOL setting */ - gp->asleep_wol = gp->wake_on_lan; + gp->asleep_wol = !!gp->wake_on_lan;gem_do_stop (dev, gp->asleep_wol);/* Unlock the network stack */
drivers/net/phy/icplus.c +2 -1
@@ -150,7 +150,8 @@ static int ip101a_config_init(struct phy_device *phydev)/* Enable Auto Power Saving mode */ c =phy_read (phydev,IP10XX_SPEC_CTRL_STATUS ); c |=IP101A_APS_ON ; -return c; + +return phy_write (phydev,IP10XX_SPEC_CTRL_STATUS , c); }static int ip175c_read_status (struct phy_device *phydev)
drivers/net/usb/asix.c +2 -2
@@ -403,7 +403,7 @@ static struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb,u32 packet_len;u32 padbytes =0xffff0000 ; - padlen = ((skb->len +4 ) %512 ) ?0 :4 ; + padlen = ((skb->len +4 ) & (dev->maxpacket -1 )) ?0 :4 ;if ((!skb_cloned (skb)) && ((headroom + tailroom) >= (4 + padlen))) {
@@ -425,7 +425,7 @@ static struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb,cpu_to_le32s (&packet_len);skb_copy_to_linear_data (skb, &packet_len,sizeof (packet_len)); -if ((skb->len %512 ) ==0 ) { +if (padlen) {cpu_to_le32s (&padbytes);memcpy (skb_tail_pointer (skb), &padbytes,sizeof (padbytes));skb_put (skb,sizeof (padbytes));
drivers/net/usb/cdc_ether.c +28 -2
@@ -83,6 +83,7 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)struct cdc_state *info = (void *) &dev->data;int status;int rndis; +bool android_rndis_quirk = false;struct usb_driver *driver =driver_of (intf);struct usb_cdc_mdlm_desc *desc =NULL ;struct usb_cdc_mdlm_detail_desc *detail =NULL ;
@@ -195,6 +196,11 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) info->control, info->u->bSlaveInterface0, info->data); +/* fall back to hard-wiring for RNDIS */ +if (rndis) { + android_rndis_quirk = true; + goto next_desc; + } goto bad_desc; }if (info->control != intf) {
@@ -271,11 +277,15 @@ next_desc:/* Microsoft ActiveSync based and some regular RNDIS devices lack the * CDC descriptors, so we'll hard-wire the interfaces and not check * for descriptors. +* +* Some Android RNDIS devices have a CDC Union descriptor pointing +* to non-existing interfaces. Ignore that and attempt the same +* hard-wired 0 and 1 interfaces. */ -if (rndis && !info->u) { +if (rndis && (!info->u || android_rndis_quirk)) { info->control =usb_ifnum_to_if (dev->udev,0 ); info->data =usb_ifnum_to_if (dev->udev,1 ); -if (!info->control || !info->data) { +if (!info->control || !info->data || info->control != intf) { dev_dbg(&intf->dev, "rndis: master #0/%p slave #1/%p\n", info->control,
@@ -472,6 +482,7 @@ static const struct driver_info wwan_info = {/*-------------------------------------------------------------------------*/ #define HUAWEI_VENDOR_ID 0x12D1 +#define NOVATEL_VENDOR_ID 0x1410static const struct usb_device_id products [] = {/*
@@ -589,6 +600,21 @@ static const struct usb_device_id products [] = {* because of bugs/quirks in a given product (like Zaurus, above). */ { +/* Novatel USB551L */ +/* This match must come *before* the generic CDC-ETHER match so that +* we get FLAG_WWAN set on the device, since it's descriptors are +* generic CDC-ETHER. +*/ + .match_flags = USB_DEVICE_ID_MATCH_VENDOR + |USB_DEVICE_ID_MATCH_PRODUCT + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = NOVATEL_VENDOR_ID, + .idProduct = 0xB001, + .bInterfaceClass = USB_CLASS_COMM, + .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET, + .bInterfaceProtocol = USB_CDC_PROTO_NONE, + .driver_info = (unsigned long )&wwan_info, +}, {USB_INTERFACE_INFO (USB_CLASS_COMM ,USB_CDC_SUBCLASS_ETHERNET ,USB_CDC_PROTO_NONE ), .driver_info = (unsigned long) &cdc_info,
drivers/net/usb/usbnet.c +38 -16
153 lines not on this page · raw message
drivers/net/wireless/brcm80211/brcmsmac/ampdu.c +1 -5
@@ -1053,17 +1053,13 @@ brcms_c_ampdu_dotxstatus_complete(struct ampdu_info *ampdu, struct scb *scb, }/* either retransmit or send bar if ack not recd */ if (!ack_recd) { -struct ieee80211_tx_rate *txrate = - tx_info->status.rates; -if (retry && (txrate[0 ].count < (int )retry_limit)) { +if (retry && (ini->txretry[index] < (int )retry_limit)) { ini->txretry[index]++; ini->tx_in_transit--;/* * Use high prededence for retransmit to * give some punch */ -/* brcms_c_txq_enq(wlc, scb, p, -* BRCMS_PRIO_TO_PREC(tid)); */ brcms_c_txq_enq (wlc, scb, p,BRCMS_PRIO_TO_HI_PREC (tid)); }else {
drivers/net/wireless/brcm80211/brcmsmac/main.c +1 -1
@@ -7879,7 +7879,7 @@ brcms_c_recvctl(struct brcms_c_info *wlc, struct d11rxhdr *rxh,if (wlc->hw->suspended_fifos) { hdr = (struct ieee80211_hdr *)p->data;if (ieee80211_is_beacon (hdr->frame_control)) -brcms_b_mute (wlc->hw, false); +brcms_b_mute (wlc->hw, false,0 ); }memcpy (IEEE80211_SKB_RXCB (p), &rx_status,sizeof (rx_status));
drivers/regulator/max8997.c +1 -1
@@ -689,7 +689,7 @@ static int max8997_set_voltage_buck(struct regulator_dev *rdev, } new_val++; - }while (desc->min + desc->step + new_val <= desc->max); + }while (desc->min + desc->step * new_val <= desc->max); new_idx = tmp_idx; new_val = tmp_val;
drivers/spi/spi-topcliff-pch.c +66 -12
173 lines not on this page · raw message
drivers/target/target_core_file.c +16 -6
@@ -170,6 +170,7 @@ static struct se_device *fd_create_virtdevice( inode = file->f_mapping->host;if (S_ISBLK (inode->i_mode)) {struct request_queue *q; +unsigned long long dev_size;/* * Setup the local scope queue_limits from struct request_queue->limits * to pass into transport_add_device_to_core_hba() as struct se_dev_limits.
@@ -184,13 +185,12 @@ static struct se_device *fd_create_virtdevice(* one (1) logical sector from underlying struct block_device */ fd_dev->fd_block_size =bdev_logical_block_size (inode->i_bdev); - fd_dev->fd_dev_size = (i_size_read (file->f_mapping->host) - + dev_size = (i_size_read (file->f_mapping->host) - fd_dev->fd_block_size);pr_debug ("FILEIO: Using size: %llu bytes from struct" " block_device blocks: %llu logical_block_size: %d\n" , - fd_dev->fd_dev_size, -div_u64 (fd_dev->fd_dev_size, fd_dev->fd_block_size), + dev_size,div_u64 (dev_size, fd_dev->fd_block_size), fd_dev->fd_block_size); }else {if (!(fd_dev->fbd_flags &FBDF_HAS_SIZE )) {
@@ -606,10 +606,20 @@ static u32 fd_get_device_type(struct se_device *dev)static sector_t fd_get_blocks (struct se_device *dev) {struct fd_dev *fd_dev = dev->dev_ptr; -unsigned long long blocks_long =div_u64 (fd_dev->fd_dev_size, - dev->se_sub_dev->se_dev_attrib.block_size); +struct file *f = fd_dev->fd_file; +struct inode *i = f->f_mapping->host; +unsigned long long dev_size; +/* +* When using a file that references an underlying struct block_device, +* ensure dev_size is always based on the current inode size in order +* to handle underlying block_device resize operations. +*/ +if (S_ISBLK (i->i_mode)) + dev_size = (i_size_read (i) - fd_dev->fd_block_size); +else + dev_size = fd_dev->fd_dev_size; -return blocks_long; +return div_u64 (dev_size, dev->se_sub_dev->se_dev_attrib.block_size); }static struct se_subsystem_api fileio_template = {
drivers/target/target_core_pr.c +3 -0
@@ -223,6 +223,9 @@ int target_scsi2_reservation_release(struct se_task *task)if (dev->dev_reserved_node_acl != sess->se_node_acl) goto out_unlock; +if (dev->dev_res_bin_isid != sess->sess_bin_isid) + goto out_unlock; + dev->dev_reserved_node_acl =NULL ; dev->dev_flags &= ~DF_SPC2_RESERVATIONS ;if (dev->dev_flags &DF_SPC2_RESERVATIONS_WITH_ISID ) {
drivers/target/target_core_tpg.c +0 -22
@@ -63,7 +63,6 @@ static void core_clear_initiator_node_from_tpg(int i;struct se_dev_entry *deve;struct se_lun *lun; -struct se_lun_acl *acl, *acl_tmp;spin_lock_irq (&nacl->device_list_lock);for (i =0 ; i <TRANSPORT_MAX_LUNS_PER_TPG ; i++) {
@@ -84,28 +83,7 @@ static void core_clear_initiator_node_from_tpg(core_update_device_list_for_node (lun,NULL , deve->mapped_lun,TRANSPORT_LUNFLAGS_NO_ACCESS , nacl, tpg,0 ); -spin_lock (&lun->lun_acl_lock); -list_for_each_entry_safe (acl, acl_tmp, - &lun->lun_acl_list, lacl_list) { -if (!strcmp (acl->initiatorname, nacl->initiatorname) && - (acl->mapped_lun == deve->mapped_lun)) -break ; - } - -if (!acl) { -pr_err ("Unable to locate struct se_lun_acl for %s," -" mapped_lun: %u\n" , nacl->initiatorname, - deve->mapped_lun); -spin_unlock (&lun->lun_acl_lock); -spin_lock_irq (&nacl->device_list_lock); -continue ; - } - -list_del (&acl->lacl_list); -spin_unlock (&lun->lun_acl_lock); -spin_lock_irq (&nacl->device_list_lock); -kfree (acl); }spin_unlock_irq (&nacl->device_list_lock); }
fs/ext4/xattr.c +4 -3
@@ -487,18 +487,19 @@ ext4_xattr_release_block(handle_t *handle, struct inode *inode,ext4_free_blocks (handle, inode, bh,0 ,1 ,EXT4_FREE_BLOCKS_METADATA |EXT4_FREE_BLOCKS_FORGET ); +unlock_buffer (bh); }else {le32_add_cpu (&BHDR (bh)->h_refcount,-1 ); +if (ce) +mb_cache_entry_release (ce); +unlock_buffer (bh); error =ext4_handle_dirty_metadata (handle, inode, bh);if (IS_SYNC (inode))ext4_handle_sync (handle);dquot_free_block (inode,1 );ea_bdebug (bh,"refcount now=%d; releasing" ,le32_to_cpu (BHDR (bh)->h_refcount)); -if (ce) -mb_cache_entry_release (ce); } -unlock_buffer (bh); out:ext4_std_error (inode->i_sb, error);return ;
fs/jffs2/gc.c +1 -1
@@ -225,8 +225,8 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c)return 0 ;D1 (printk (KERN_DEBUG "No progress from erasing blocks; doing GC anyway\n" )); -spin_lock (&c->erase_completion_lock);mutex_lock (&c->alloc_sem); +spin_lock (&c->erase_completion_lock); }/* First, work out which block we're garbage-collecting */
fs/nfs/nfs4proc.c +1 -0
@@ -1802,6 +1802,7 @@ static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, fmode_t fmodenfs_setattr_update_inode (state->inode, sattr);nfs_post_op_update_inode (state->inode, opendata->o_res.f_attr); } +nfs_revalidate_inode (server, state->inode);nfs4_opendata_put (opendata);nfs4_put_state_owner (sp); *res = state;
include/linux/mtd/map.h +1 -1
@@ -26,7 +26,7 @@#include <linux/list.h> #include <linux/string.h> #include <linux/bug.h> - +#include <linux/kernel.h> #include <asm/unaligned.h> #include <asm/system.h>
include/linux/usb/usbnet.h +2 -1
@@ -191,7 +191,8 @@ extern void usbnet_cdc_status(struct usbnet *, struct urb *);enum skb_state { illegal =0 , tx_start, tx_done, - rx_start, rx_done, rx_cleanup + rx_start, rx_done, rx_cleanup, + unlink_start };struct skb_data {/* skb->cb is one of these */
kernel/fork.c +3 -0
@@ -47,6 +47,7 @@#include <linux/audit.h> #include <linux/memcontrol.h> #include <linux/ftrace.h> +#include <linux/proc_fs.h> #include <linux/profile.h> #include <linux/rmap.h> #include <linux/ksm.h>
@@ -1387,6 +1388,8 @@ bad_fork_cleanup_io:if (p->io_context)exit_io_context (p); bad_fork_cleanup_namespaces: +if (unlikely (clone_flags &CLONE_NEWPID )) +pid_ns_release_proc (p->nsproxy->pid_ns);exit_task_namespaces (p); bad_fork_cleanup_mm:if (p->mm)
mm/hugetlb.c +0 -1
@@ -2405,7 +2405,6 @@ retry_avoidcopy:if (outside_reserve) {BUG_ON (huge_pte_none (pte));if (unmap_ref_private (mm, vma, old_page, address)) { -BUG_ON (page_count (old_page) !=1 );BUG_ON (huge_pte_none (pte));spin_lock (&mm->page_table_lock); goto retry_avoidcopy;
mm/nobootmem.c +1 -2
@@ -83,8 +83,7 @@ void __init free_bootmem_late(unsigned long addr, unsigned long size)static void __init __free_pages_memory (unsigned long start,unsigned long end) { -int i; -unsigned long start_aligned, end_aligned; +unsigned long i, start_aligned, end_aligned;int order =ilog2 (BITS_PER_LONG ); start_aligned = (start + (BITS_PER_LONG -1 )) & ~(BITS_PER_LONG -1 );
mm/percpu.c +10 -0
@@ -1642,6 +1642,16 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, areas[group] = ptr; base =min (ptr, base); + } + +/* +* Copy data and free unused parts. This should happen after all +* allocations are complete; otherwise, we may end up with +* overlapping groups. +*/ +for (group =0 ; group < ai->nr_groups; group++) { +struct pcpu_group_info *gi = &ai->groups[group]; +void *ptr = areas[group];for (i =0 ; i < gi->nr_units; i++, ptr += ai->unit_size) {if (gi->cpu_map[i] ==NR_CPUS ) {
net/core/dev.c +20 -0
@@ -1421,14 +1421,34 @@ EXPORT_SYMBOL(register_netdevice_notifier);* register_netdevice_notifier(). The notifier is unlinked into the * kernel structures and may then be reused. A negative errno code * is returned on a failure. +* +* After unregistering unregister and down device events are synthesized +* for all devices on the device list to the removed notifier to remove +* the need for special case cleanup code. */ int unregister_netdevice_notifier (struct notifier_block *nb) { +struct net_device *dev; +struct net *net;int err;rtnl_lock (); err =raw_notifier_chain_unregister (&netdev_chain, nb); +if (err) + goto unlock; + +for_each_net (net) { +for_each_netdev (net, dev) { +if (dev->flags &IFF_UP ) { + nb->notifier_call (nb,NETDEV_GOING_DOWN , dev); + nb->notifier_call (nb,NETDEV_DOWN , dev); + } + nb->notifier_call (nb,NETDEV_UNREGISTER , dev); + nb->notifier_call (nb,NETDEV_UNREGISTER_BATCH , dev); + } + } +unlock:rtnl_unlock ();return err; }
net/core/pktgen.c +8 -2
@@ -1932,7 +1932,7 @@ static int pktgen_device_event(struct notifier_block *unused, {struct net_device *dev = ptr; -if (!net_eq (dev_net (dev), &init_net)) +if (!net_eq (dev_net (dev), &init_net) || pktgen_exiting)return NOTIFY_DONE ;/* It is OK that we do not hold the group lock right now,
@@ -3758,12 +3758,18 @@ static void __exit pg_cleanup(void) {struct pktgen_thread *t;struct list_head *q, *n; +LIST_HEAD (list);/* Stop all interfaces & threads */ pktgen_exiting = true; -list_for_each_safe (q, n, &pktgen_threads) { +mutex_lock (&pktgen_thread_lock); +list_splice_init (&pktgen_threads, &list); +mutex_unlock (&pktgen_thread_lock); + +list_for_each_safe (q, n, &list) { t = list_entry(q, struct pktgen_thread, th_list); +list_del (&t->th_list);kthread_stop (t->tsk);kfree (t); }
net/ipv4/tcp.c +6 -6
@@ -851,8 +851,7 @@ new_segment: wait_for_sndbuf:set_bit (SOCK_NOSPACE , &sk->sk_socket->flags); wait_for_memory: -if (copied) -tcp_push (sk, flags & ~MSG_MORE , mss_now,TCP_NAGLE_PUSH ); +tcp_push (sk, flags & ~MSG_MORE , mss_now,TCP_NAGLE_PUSH );if ((err =sk_stream_wait_memory (sk, &timeo)) !=0 ) goto do_error;
@@ -3216,7 +3215,7 @@ void __init tcp_init(void) {struct sk_buff *skb =NULL ;unsigned long limit; -int i, max_share, cnt; +int i, max_rshare, max_wshare, cnt;unsigned long jiffy = jiffies;BUILD_BUG_ON (sizeof (struct tcp_skb_cb ) >sizeof (skb->cb));
@@ -3280,15 +3279,16 @@ void __init tcp_init(void)/* Set per-socket limits to no more than 1/128 the pressure threshold */ limit = ((unsigned long )sysctl_tcp_mem[1 ]) << (PAGE_SHIFT -7 ); - max_share =min (4UL *1024 *1024 , limit); + max_wshare =min (4UL *1024 *1024 , limit); + max_rshare =min (6UL *1024 *1024 , limit); sysctl_tcp_wmem[0 ] =SK_MEM_QUANTUM ; sysctl_tcp_wmem[1 ] =16 *1024 ; - sysctl_tcp_wmem[2 ] =max (64 *1024 , max_share); + sysctl_tcp_wmem[2 ] =max (64 *1024 , max_wshare); sysctl_tcp_rmem[0 ] =SK_MEM_QUANTUM ; sysctl_tcp_rmem[1 ] =87380 ; - sysctl_tcp_rmem[2 ] =max (87380 , max_share); + sysctl_tcp_rmem[2 ] =max (87380 , max_rshare); printk(KERN_INFO "TCP: Hash tables configured " "(established %u bind %u)\n",
net/ipv4/tcp_input.c +7 -4
@@ -83,7 +83,7 @@ int sysctl_tcp_ecn __read_mostly = 2;EXPORT_SYMBOL (sysctl_tcp_ecn);int sysctl_tcp_dsack__read_mostly =1 ;int sysctl_tcp_app_win__read_mostly =31 ; -int sysctl_tcp_adv_win_scale__read_mostly =2 ; +int sysctl_tcp_adv_win_scale__read_mostly =1 ;EXPORT_SYMBOL (sysctl_tcp_adv_win_scale);int sysctl_tcp_stdurg__read_mostly ;
@@ -2868,11 +2868,14 @@ static inline void tcp_complete_cwr(struct sock *sk)/* Do not moderate cwnd if it's already undone in cwr or recovery. */ if (tp->undo_marker) { -if (inet_csk (sk)->icsk_ca_state ==TCP_CA_CWR ) +if (inet_csk (sk)->icsk_ca_state ==TCP_CA_CWR ) { tp->snd_cwnd =min (tp->snd_cwnd, tp->snd_ssthresh); -else /* PRR */ + tp->snd_cwnd_stamp = tcp_time_stamp; + }else if (tp->snd_ssthresh <TCP_INFINITE_SSTHRESH ) { +/* PRR algorithm. */ tp->snd_cwnd = tp->snd_ssthresh; - tp->snd_cwnd_stamp = tcp_time_stamp; + tp->snd_cwnd_stamp = tcp_time_stamp; + } }tcp_ca_event (sk,CA_EVENT_COMPLETE_CWR ); }
net/l2tp/l2tp_ip.c +2 -1
@@ -441,8 +441,9 @@ static int l2tp_ip_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *m daddr = lip->l2tp_addr.s_addr; }else { + rc = -EDESTADDRREQ ;if (sk->sk_state !=TCP_ESTABLISHED ) -return -EDESTADDRREQ ; + goto out; daddr = inet->inet_daddr; connected =1 ;
net/sched/sch_netem.c +2 -4
@@ -351,10 +351,8 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)if (q->corrupt && q->corrupt >=get_crandom (&q->corrupt_cor)) {if (!(skb =skb_unshare (skb,GFP_ATOMIC )) || (skb->ip_summed ==CHECKSUM_PARTIAL && -skb_checksum_help (skb))) { - sch->qstats.drops++; -return NET_XMIT_DROP ; - } +skb_checksum_help (skb))) +return qdisc_drop (skb, sch); skb->data[net_random () %skb_headlen (skb)] ^=1 <<(net_random () %8 ); }
sound/pci/echoaudio/echoaudio_dsp.c +1 -1
@@ -475,7 +475,7 @@ static int load_firmware(struct echoaudio *chip)const struct firmware *fw;int box_type, err; -if (snd_BUG_ON (!chip->dsp_code_to_load || !chip->comm_page)) +if (snd_BUG_ON (!chip->comm_page))return -EPERM ;/* See if the ASIC is present and working - only if the DSP is already loaded */
sound/pci/hda/hda_intel.c +4 -2
@@ -769,11 +769,13 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus, {struct azx *chip = bus->private_data;unsigned long timeout; +unsigned long loopcounter;int do_poll =0 ; again: timeout = jiffies +msecs_to_jiffies (1000 ); -for (;;) { + +for (loopcounter =0 ;; loopcounter++) {if (chip->polling_mode || do_poll) {spin_lock_irq (&chip->reg_lock);azx_update_rirb (chip);
@@ -789,7 +791,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus, }if (time_after (jiffies, timeout))break ; -if (bus->needs_damn_long_delay) +if (bus->needs_damn_long_delay || loopcounter >3000 )msleep (2 );/* temporary workaround */ else {udelay (10 );
sound/pci/hda/patch_sigmatel.c +3 -3
@@ -4484,9 +4484,9 @@ static int stac92xx_init(struct hda_codec *codec) def_conf =get_defcfg_connect (def_conf);/* skip any ports that don't have jacks since presence * detection is useless */ -if (def_conf !=AC_JACK_PORT_COMPLEX ) { -if (def_conf !=AC_JACK_PORT_NONE ) -stac_toggle_power_map (codec, nid,1 ); +if (def_conf !=AC_JACK_PORT_NONE && + !is_jack_detectable (codec, nid)) { +stac_toggle_power_map (codec, nid,1 );continue ; }if (enable_pin_detect (codec, nid,STAC_PWR_EVENT )) {
sound/soc/codecs/wm8994.c +1 -1
@@ -1027,7 +1027,7 @@ static int aif2clk_ev(struct snd_soc_dapm_widget *w,snd_soc_update_bits (codec,WM8994_POWER_MANAGEMENT_5 ,WM8994_AIF2DACL_ENA |WM8994_AIF2DACR_ENA ,0 ); -snd_soc_update_bits (codec,WM8994_POWER_MANAGEMENT_5 , +snd_soc_update_bits (codec,WM8994_POWER_MANAGEMENT_4 ,WM8994_AIF2ADCL_ENA |WM8994_AIF2ADCR_ENA ,0 );
Signature · 2 lines
Ben Hutchings You can't have everything. Where would you put it?
Quoted 3 lines · Ben Hutchings
I'm announcing the release of the 3.2.18 kernel.
All users of the 3.2 kernel series should upgrade.
Should or must?
IOW does it contain security fixes?
Signature · 2 lines
Thanks, //richard
Quoted 7 lines · richard -rw- weinberger
Quoted 3 lines · Ben Hutchings
I'm announcing the release of the 3.2.18 kernel.
All users of the 3.2 kernel series should upgrade.
Should or must?
IOW does it contain security fixes?
There are certainly bug fixes in there that look like they close security flaws. But it's your choice whether and when to upgrade, and you'll have the same warranty (i.e. none) in any case.
Ben.
Signature · 2 lines
Ben Hutchings You can't have everything. Where would you put it?
Quoted 4 lines · Ben Hutchings
Quoted 3 lines · richard -rw- weinberger
Quoted 2 lines · Ben Hutchings
I'm announcing the release of the 3.2.18 kernel.
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
All users of the 3.2 kernel series should upgrade.
Should or must?
IOW does it contain security fixes?There are certainly bug fixes in there that look like they close security flaws. �But it's your choice whether and when to upgrade, and you'll have the same warranty (i.e. none) in any case.
AFAIK that's why Greg always writes "must". :-)
Signature · 2 lines
Thanks, //richard
Hi Richard,
Quoted 5 lines · richard -rw- weinberger
Quoted 1 line · Ben Hutchings
All users of the 3.2 kernel series should upgrade.
Should or must?
Every stable update probably includes some fixes that are security-relevant for someone. That said, no one on this list has volunteered to do the nontrivial work of categorizing them (and that is not the purpose of this list anyway). You're more likely to find useful information from your distributor or from sources such as the national vulnerability database.
Amazingly enough, the difference between "should" and "must" is not a secret message but just a difference in diction between Ben and Greg.
"All users should upgrade" would generally mean that it is prudent for all users to upgrade, rather than some particular subset of them (e.g., users who have been experiencing build failures).
Kind regards,
Jonathan
Quoted 7 lines · richard -rw- weinberger
Quoted 3 lines · Ben Hutchings
I'm announcing the release of the 3.2.18 kernel.
All users of the 3.2 kernel series should upgrade.
Should or must?
IOW does it contain security fixes?
"security fixes" is a nebulous concept. I tend to define security issues as issues that can be triggerred on purpose once known, in other words, issues whose risk of appearance suddenly changes once they're disclosed.
Based on this, one guy's stability bug is another guy's security issue. If you're the only account allowed on your servers and a vulnerability allows any local account to crash your RAID card by reading something in /proc, this might not be a security issue for you, just an annoying bug. And if your laptop's WiFi draws all the battery's power when receiving specially crafted packets, you might consider this an annoying bug while a solar- powered router operator will probably consider this a critical security issue.
The best you can do is review the changelog to see whether you're affected or not by what is fixed there.
Regards,
Willy