[PATCH 3.4 098/146] mac80211: move WEP tailroom size check

2015-09-15 Thread lizf
From: Janusz Dziedzic 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 47b4e1fc4972cc43a19121bc2608a60aef3bf216 upstream. Remove checking tailroom when adding IV as it uses only headroom, and move the check to the ICV generation that actua

[PATCH 3.4 089/146] xhci: Solve full event ring by increasing TRBS_PER_SEGMENT to 256

2015-09-15 Thread lizf
From: Mathias Nyman 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 18cc2f4cbbaf825a4fedcf2d60fd388d291e0a38 upstream. Our event ring consists of only one segment, and we risk filling the event ring in case we get isoc transfers with shor

[PATCH 3.4 091/146] usb-storage: Add NO_WP_DETECT quirk for Lacie 059f:0651 devices

2015-09-15 Thread lizf
From: Hans de Goede 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 172115090f5e739660b97694618a2ba86457063a upstream. Without this flag some versions of these enclosures do not work. Reported-and-tested-by: Christian Schaller Signed-of

[PATCH 3.4 085/146] USB: visor: Match I330 phone more precisely

2015-09-15 Thread lizf
From: "Jason A. Donenfeld" 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 82ee3aeb9295c5fc37fd2ddf20f13ac2b40ec97d upstream. Samsung has just released a portable USB3 SSD, coming in a very small and nice form factor. It's USB ID is 04e8:

[PATCH] coccinelle: tests: unsigned value cannot be lesser than zero

2015-09-15 Thread Andrzej Hajda
Code comparing unsigned variables with zero using operators < or >= does not make sense. It is always false or true, respectively. However, its presence often indicates bugs in the code. gcc can detect it also using -Wtype-limits switch, but it warns also in correct cases, making too much noise. S

Re: [PATCH] kernel/sysctl.c: If "count" including the terminating byte '\0' the write system call should retrun success.

2015-09-15 Thread Sean Fu
On Mon, Sep 14, 2015 at 12:44 AM, Eric W. Biederman wrote: > Sean Fu writes: > >> On Sat, Sep 12, 2015 at 1:01 AM, Eric W. Biederman >> wrote: >>> Sean Fu writes: > '\0' is not and has never been valid in a text file. > proc files are a text interface. > Expecting '\0' to be accepted is very st

[PATCH 3.4 075/146] xen/console: Update console event channel on resume

2015-09-15 Thread lizf
From: Boris Ostrovsky 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit b9d934f27c91b878c4b2e64299d6e419a4022f8d upstream. After a resume the hypervisor/tools may change console event channel number. We should re-query it. Signed-off-by: B

[PATCH 3.4 082/146] rtlwifi: rtl8192cu: Fix kernel deadlock

2015-09-15 Thread lizf
From: Larry Finger 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 414b7e3b9ce8b0577f613e656fdbc36b34b444dd upstream. The USB mini-driver in rtlwifi, which is used by rtl8192cu, issues a call to usb_control_msg() with a timeout value of 0

[PATCH 3.4 080/146] libata: Add helper to determine when PHY events should be ignored

2015-09-15 Thread lizf
From: Gabriele Mazzotta 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 8393b811f38acdf7fd8da2028708edad3e68ce1f upstream. This is a preparation commit that will allow to add other criteria according to which PHY events should be dropped.

[PATCH 3.4 074/146] RDMA/CMA: Canonize IPv4 on IPV6 sockets properly

2015-09-15 Thread lizf
From: Jason Gunthorpe 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 285214409a9e5fceba2215461b4682b6069d8e77 upstream. When accepting a new IPv4 connect to an IPv6 socket, the CMA tries to canonize the address family to IPv4, but does n

[PATCH 3.4 076/146] xen/events: Set irq_info->evtchn before binding the channel to CPU in __startup_pirq()

2015-09-15 Thread lizf
From: Boris Ostrovsky 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 16e6bd5970c88a2ac018b84a5f1dd5c2ff1fdf2c upstream. .. because bind_evtchn_to_cpu(evtchn, cpu) will map evtchn to 'info' and pass 'info' down to xen_evtchn_port_bind_to_

[PATCH 3.4 081/146] libata: Ignore spurious PHY event on LPM policy change

2015-09-15 Thread lizf
From: Gabriele Mazzotta 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 09c5b4803a80a5451d950d6a539d2eb311dc0fb1 upstream. When the LPM policy is set to ATA_LPM_MAX_POWER, the device might generate a spurious PHY event that cuases errors

[PATCH v3 0/2] [media] Fix race between graph enumeration and entities registration

2015-09-15 Thread Javier Martinez Canillas
Hello, The Media Controller framework has an issue in which the media device node is registered before all the media entities and pads links are created so if user-space tries to enumerate the graph too early, it may get a partial graph since not everything has been registered yet. This series fi

[PATCH v3 1/2] [media] media-device: check before unregister if mdev was registered

2015-09-15 Thread Javier Martinez Canillas
Most media functions that unregister, check if the corresponding register function succeed before. So these functions can safely be called even if a registration was never made or the component as already been unregistered. Add the same check to media_device_unregister() function for consistency.

[PATCH 3.4 077/146] mm/memory-failure: call shake_page() when error hits thp tail page

2015-09-15 Thread lizf
From: Naoya Horiguchi 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 09789e5de18e4e442870b2d700831f5cb802eb05 upstream. Currently memory_failure() calls shake_page() to sweep pages out from pcplists only when the victim page is 4kB LRU p

[PATCH 3.4 073/146] mmc: core: add missing pm event in mmc_pm_notify to fix hib restore

2015-09-15 Thread lizf
From: Grygorii Strashko 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 184af16b09360d6273fd6160e6ff7f8e2482ef23 upstream. The PM_RESTORE_PREPARE is not handled now in mmc_pm_notify(), as result mmc_rescan() could be scheduled and execute

[PATCH v3 2/2] [media] media-device: split media initialization and registration

2015-09-15 Thread Javier Martinez Canillas
The media device node is registered and so made visible to user-space before entities are registered and links created which means that the media graph obtained by user-space could be only partially enumerated if that happens too early before all the graph has been created. To avoid this race cond

[PATCH v2 1/2] Staging: wilc1000: Use NULL instead of zero

2015-09-15 Thread Ronit Halder
This patch fixes the warning generated by sparse "Using plain integer as NULL pointer" by using NULL instead of zero. Signed-off-by: Ronit halder --- v2: added a new patch in this patch series to fix the NULL comparison style drivers/staging/wilc1000/coreconfigurator.c | 14 +++--- dri

[PATCH 3.4 066/146] ALSA: emux: Fix mutex deadlock in OSS emulation

2015-09-15 Thread lizf
From: Takashi Iwai 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 1c94e65c668f44d2c69ae7e7fc268ab3268fba3e upstream. The OSS emulation in synth-emux helper has a potential AB/BA deadlock at the simultaneous closing and opening: close

Re: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors

2015-09-15 Thread Punit Agrawal
"Jon Medhurst (Tixy)" writes: > On Mon, 2015-09-14 at 15:38 +0100, Punit Agrawal wrote: >> Mark Rutland writes: >> >> >> >> +Sensor bindings for the sensors based on SCPI Message Protocol >> >> >> +-- >> >> >> +SCPI provides an API to

[PATCH RFC 4/8] drm: hisilicon: fill interface function of plane\crtc part

2015-09-15 Thread Xinwei Kong
This patch uses ADE module which is responsibe for graphic overlay, graphic post-processing, display timing control within hi6220 SoC to implement the plane\ctrc interface of DRM\KMS. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signe

[PATCH 3.4 071/146] ARM: pxa: mainstone: use new pxa_cplds driver

2015-09-15 Thread lizf
From: Robert Jarzmik 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 277688639f98a9e34a6f109f9cd6129f92e718c1 upstream. As the interrupt handling was transferred to the pxa_cplds driver, make the switch in mainstone platform code. Fixes:

[PATCH 3.4 068/146] powerpc/pseries: Correct cpu affinity for dlpar added cpus

2015-09-15 Thread lizf
From: Nathan Fontenot 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit f32393c943e297b8ae180c8f83d81a156c7d0412 upstream. The incorrect ordering of operations during cpu dlpar add results in invalid affinity for the cpu being added. The ib

Re: [PATCH 17/39] md: drop null test before destroy functions

2015-09-15 Thread Neil Brown
Julia Lawall writes: > Remove unneeded NULL test. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ expression x; @@ > -if (x != NULL) > \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); > // > > Signed-off-by: Julia Lawall >

[PATCH 3.4 067/146] ALSA: emu10k1: Emu10k2 32 bit DMA mode

2015-09-15 Thread lizf
From: Peter Zubaj 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 7241ea558c6715501e777396b5fc312c372e11d9 upstream. Looks like audigy emu10k2 (probably emu10k1 - sb live too) support two modes for DMA. Second mode is useful for 64 bit os

Re: [PATCH v5 3/4] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-09-15 Thread Alex Smith
On 9 September 2015 at 15:24, Ezequiel Garcia wrote: > On 08 Sep 10:10 AM, Alex Smith wrote: >> Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as >> well as the hardware BCH controller. DMA is not currently implemented. >> >> While older 47xx SoCs also have a BCH controller, t

[PATCH 3.4 069/146] ext4: move check under lock scope to close a race.

2015-09-15 Thread lizf
From: Davide Italiano 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 280227a75b56ab5d35854f3a77ef74a7ad56a203 upstream. fallocate() checks that the file is extent-based and returns EOPNOTSUPP in case is not. Other tasks can convert from

Re: [PATCH] x86: Fix gfp flags for coherent DMA memory allocation

2015-09-15 Thread Junichi Nomura
On 09/14/15 16:38, Junichi Nomura wrote: > Commit 6894258eda2f reversed the order of gfp_flags adjustment in > dma_alloc_attrs() for x86 [arch/x86/kernel/pci-dma.c] > As a result, relevant flags set by dma_alloc_coherent_gfp_flags() > is just discarded and causes coherent DMA memory allocation fail

[PATCH 2/2] Staging: wilc1000: fix NULL comparison style

2015-09-15 Thread Ronit Halder
Fixed NULL comparison style as suggested by checkpatch.pl with --strict option. Signed-off-by: Ronit halder --- drivers/staging/wilc1000/coreconfigurator.c | 2 +- drivers/staging/wilc1000/linux_wlan.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/stagi

[PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-15 Thread Xinwei Kong
This adds documentation of device tree bindings for the Graphics Processing Unit of hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- .../devicetree/bindings/gpu/hisilicon,hi6220.txt | 69

Re: [PATCH v5 1/4] mtd: nand: increase ready wait timeout and report timeouts

2015-09-15 Thread Alex Smith
On 10 September 2015 at 00:49, Brian Norris wrote: > + Niklas > > On Tue, Sep 08, 2015 at 10:10:50AM +0100, Alex Smith wrote: >> If nand_wait_ready() times out, this is silently ignored, and its >> caller will then proceed to read from/write to the chip before it is >> ready. This can potentially

[PATCH 3.4 065/146] serial: of-serial: Remove device_type = "serial" registration

2015-09-15 Thread lizf
From: Michal Simek 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 6befa9d883385c580369a2cc9e53fbf329771f6d upstream. Do not probe all serial drivers by of_serial.c which are using device_type = "serial"; property. Only drivers which have

[PATCH] staging/rtl8192u: remove unused function

2015-09-15 Thread Nicolas Joseph
Remove unused function N_DBPSOfRate. This function was only used by function ComputeTxTime that was removed in the previous commit 742728f97a99 ("staging: rtl8192u: remove unused function.") Signed-off-by: Nicolas Joseph --- drivers/staging/rtl8192u/r8192U_core.c | 44 ---

[PATCH 3.4 058/146] ALSA: emux: Fix mutex deadlock at unloading

2015-09-15 Thread lizf
From: Takashi Iwai 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 07b0e5d49d227e3950cb13a3e8caf248ef2a310e upstream. The emux-synth driver has a possible AB/BA mutex deadlock at unloading the emu10k1 driver: snd_emux_free() -> snd

Re: [PATCH 04/13] Always expose MAP_UNINITIALIZED to userspace

2015-09-15 Thread Kirill A. Shutemov
On Mon, Sep 14, 2015 at 10:19:19PM -0700, Josh Triplett wrote: > On Tue, Sep 15, 2015 at 03:23:58AM +0300, Kirill A. Shutemov wrote: > > On Mon, Sep 14, 2015 at 03:50:38PM -0700, Palmer Dabbelt wrote: > > > This used to be hidden behind CONFIG_MMAP_ALLOW_UNINITIALIZED, so > > > userspace wouldn't a

[PATCH RFC 6/8] drm: hisilicon: Add support for fbdev

2015-09-15 Thread Xinwei Kong
If you config DRM_HISI_FBDEV optional, this patch will only support fbdev mode while also supporting double buffer. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/Kconfig

[PATCH 3.4 045/146] dm crypt: fix deadlock when async crypto algorithm returns -EBUSY

2015-09-15 Thread lizf
From: Ben Collins 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 0618764cb25f6fa9fb31152995de42a8a0496475 upstream. I suspect this doesn't show up for most anyone because software algorithms typically don't have a sense of being too busy

[PATCH RFC 8/8] dts: hisilicon: Add drm driver device dts config for HiKey board

2015-09-15 Thread Xinwei Kong
This patch adds drm dts node for HiKey board using hi6220 SOC. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 34 +++ 1 file changed, 3

[PATCH 3.4 050/146] ptrace: fix race between ptrace_resume() and wait_task_stopped()

2015-09-15 Thread lizf
From: Oleg Nesterov 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit b72c186999e689cb0b055ab1c7b3cd8fffbeb5ed upstream. ptrace_resume() is called when the tracee is still __TASK_TRACED. We set tracee->exit_code and then wake_up_state() ch

[PATCH RFC 2/8] drm: hisilicon: Add new DRM driver for hisilicon Soc

2015-09-15 Thread Xinwei Kong
This patch creates this driver itself and register all the sub-components which is from DTS inode, this driver uses components framework mechanism to bind all the sub-components. This patch also introduces a memory manager for hisilison drm. As cma framebuffer helpers can no more be used. Signed-

[PATCH 3.4 056/146] ALSA: hda - Fix mute-LED fixed mode

2015-09-15 Thread lizf
From: Takashi Iwai 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit ee52e56e7b12834476cd0031c5986254ba1b6317 upstream. The mute-LED mode control has the fixed on/off states that are supposed to remain on/off regardless of the master switch

[PATCH RFC 5/8] drm: hisilicon: fill interface function of encoder\connector part

2015-09-15 Thread Xinwei Kong
This patch enables the adv7533 module which is connecting hisilicon SOC by dsi module. while using DSI module and adv7533 module to implement the encoder/connector interface of DRM\KMS. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Sig

[PATCH 3.4 057/146] ALSA: emu10k1: Fix card shortname string buffer overflow

2015-09-15 Thread lizf
From: Takashi Iwai 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit d02260824e2cad626fb2a9d62e27006d34b6dedc upstream. Some models provide too long string for the shortname that has 32bytes including the terminator, and it results in a non

[PATCH 3.4 063/146] 3w-9xxx: fix command completion race

2015-09-15 Thread lizf
From: Christoph Hellwig 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 118c855b5623f3e2e6204f02623d88c09e0c34de upstream. The 3w-9xxx driver needs to tear down the dma mappings before returning the command to the midlayer, as there is no

[PATCH 3.4 053/146] nfs: don't call blocking operations while !TASK_RUNNING

2015-09-15 Thread lizf
From: Jeff Layton 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 6ffa30d3f734d4f6b478081dfc09592021028f90 upstream. Bruce reported seeing this warning pop when mounting using v4.1: [ cut here ] WARNING:

[PATCH 3.4 061/146] 3w-sas: fix command completion race

2015-09-15 Thread lizf
From: Christoph Hellwig 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 579d69bc1fd56d5af5761969aa529d1d1c188300 upstream. The 3w-sas driver needs to tear down the dma mappings before returning the command to the midlayer, as there is no

[PATCH 3.4 055/146] RCU pathwalk breakage when running into a symlink overmounting something

2015-09-15 Thread lizf
From: Al Viro 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 3cab989afd8d8d1bc3d99fef0e7ed87c31e7b647 upstream. Calling unlazy_walk() in walk_component() and do_last() when we find a symlink that needs to be followed doesn't acquire a re

Re: [PATCH v7 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-09-15 Thread Pratyush Anand
On 15/09/2015:04:43:32 PM, Dave Young wrote: > On 08/25/15 at 01:01am, fu@linaro.org wrote: > > From: Fu Wei > > > > This can be a example of adding SBSA Generic Watchdog device node > > into some dts files for the Soc which contains SBSA Generic Watchdog. > > > > Acked-by: Arnd Bergmann >

[PATCH RFC 0/8] Add New DRM Driver for Hisilicon's Hi6220 SoC

2015-09-15 Thread Xinwei Kong
These patch set adds a new drm driver for Hisilicon's Hi6220 SoC. Current testing and support board is Hikey board which is one of Linaro 96boards. It is an arm64 open source board. For more information about this board, please access https://www.96boards.org. 1. Hardware Detail The display su

[PATCH RFC 7/8] drm: hisilicon: Add support for vblank

2015-09-15 Thread Xinwei Kong
This patch adds ldi interrupt to handle vblank. Signed-off-by: Xinliang Liu Signed-off-by: Xinwei Kong Signed-off-by: Andy Green Signed-off-by: Jiwen Qi Signed-off-by: Yu Gong --- drivers/gpu/drm/hisilicon/hisi_ade.c | 71 +++- drivers/gpu/drm/hisilicon/hisi_drm_crtc

[PATCH RFC 3/8] drm: hisilicon: Add the link to DRM/KMS interface

2015-09-15 Thread Xinwei Kong
This patch makes the link with DRM/KMS interface by initializing the drm plane/crtc/encoder/connector and adding the drm plane/crtc/encoder/ connector helper. This patch is compatible with different hisilicon platform such as Hikey series of boards and other series of boards. Signed-off-by: Xinli

[PATCH 3.4 036/146] powerpc: Fix missing L2 cache size in /sys/devices/system/cpu

2015-09-15 Thread lizf
From: Dave Olson 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit f7e9e358362557c3aa2c1ec47490f29fe880a09e upstream. This problem appears to have been introduced in 2.6.29 by commit 93197a36a9c1 "Rewrite sysfs processor cache info code".

[PATCH 3.4 040/146] s390/hibernate: fix save and restore of kernel text section

2015-09-15 Thread lizf
From: Heiko Carstens 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit d74419495633493c9cd3f2bbeb7f3529d0edded6 upstream. Sebastian reported a crash caused by a jump label mismatch after resume. This happens because we do not save the kerne

[PATCH 3.4 033/146] scsi: storvsc: Fix a bug in copy_from_bounce_buffer()

2015-09-15 Thread lizf
From: "K. Y. Srinivasan" 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 8de580742fee8bc34d116f57a20b22b9a5f08403 upstream. We may exit this function without properly freeing up the maapings we may have acquired. Fix the bug. Signed-off-

Re: [PATCH v5 3/9] Input: goodix - reset device at init

2015-09-15 Thread Aleksei Mamlin
On Mon, 7 Sep 2015 17:36:17 +0300 Irina Tirdea wrote: > After power on, it is recommended that the driver resets the device. > The reset procedure timing is described in the datasheet and is used > at device init (before writing device configuration) and > for power management. It is a sequence

[PATCH 3.4 029/146] RDS: Documentation: Document AF_RDS, PF_RDS and SOL_RDS correctly.

2015-09-15 Thread lizf
From: Sowmini Varadhan 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit ebe96e641dee2cbd135ee802ae7e40c361640088 upstream. AF_RDS, PF_RDS and SOL_RDS are available in header files, and there is no need to get their values from /proc. Docum

[PATCH 3.4 024/146] rtlwifi: rtl8192cu: Add new USB ID

2015-09-15 Thread lizf
From: Larry Finger 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 2f92b314f4daff2117847ac5343c54d3d041bf78 upstream. USB ID 2001:330d is used for a D-Link DWA-131. Signed-off-by: Larry Finger Signed-off-by: Kalle Valo Signed-off-by: Z

[PATCH 3.4 026/146] ext4: make fsync to sync parent dir in no-journal for real this time

2015-09-15 Thread lizf
From: Lukas Czerner 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit e12fb97222fc41e8442896934f76d39ef99b590a upstream. Previously commit 14ece1028b3ed53ffec1b1213ffc6acaf79ad77c added a support for for syncing parent directory of newly cr

[PATCH 3.4 044/146] fs/binfmt_elf.c: fix bug in loading of PIE binaries

2015-09-15 Thread lizf
From: Michael Davidson 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit a87938b2e246b81b4fb713edb371a9fa3c5c3c86 upstream. With CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE enabled, and a normal top-down address allocation strategy, load_elf_binar

[PATCH 3.4 038/146] selinux/nlmsg: add XFRM_MSG_MIGRATE

2015-09-15 Thread lizf
From: Nicolas Dichtel 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 8d465bb777179c4bea731b828ec484088cc9fbc1 upstream. This command is missing. Fixes: 5c79de6e79cd ("[XFRM]: User interface for handling XFRM_MSG_MIGRATE") Reported-by: S

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Peter Zijlstra
On Mon, Sep 14, 2015 at 02:08:06PM -0700, Davidlohr Bueso wrote: > On Mon, 14 Sep 2015, Peter Zijlstra wrote: > > >On Mon, Sep 14, 2015 at 12:37:23AM -0700, Davidlohr Bueso wrote: > >>/* > >>+* Atomically grab the task. If ->wake_q is non-nil (failed cmpxchg) > >>+* then the task is al

Re: why is text address constant with full randomization?

2015-09-15 Thread yalin wang
> On Sep 15, 2015, at 16:36, 慕冬亮 wrote: > > First, my linux kernel is Linux 114-212-83-136 4.1.0-2-amd64. > Second, I copy /bin/cat in system to mycat , and see the address space > layout below. > > mdl@114-212-83-136:~$ ./mycat /proc/self/maps > 0040-0040c000 r-xp 08:03 1046776 >

[PATCH 3.4 042/146] powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH

2015-09-15 Thread lizf
From: Anton Blanchard 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 9a5cbce421a283e6aea3c4007f141735bf9da8c3 upstream. We cap 32bit userspace backtraces to PERF_MAX_STACK_DEPTH (currently 127), but we forgot to do the same for 64bit bac

[PATCH 3.4 028/146] Input: elantech - fix absolute mode setting on some ASUS laptops

2015-09-15 Thread lizf
From: Ulrik De Bie 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit bd884149aca61de269fd9bad83fe2a4232ffab21 upstream. On ASUS TP500LN and X750JN, the touchpad absolute mode is reset each time set_rate is done. In order to fix this, we wi

Re: [PATCH v5 1/4] mtd: nand: increase ready wait timeout and report timeouts

2015-09-15 Thread Niklas Cassel
On 09/15/2015 11:38 AM, Alex Smith wrote: > On 10 September 2015 at 00:49, Brian Norris > wrote: >> + Niklas >> >> On Tue, Sep 08, 2015 at 10:10:50AM +0100, Alex Smith wrote: >>> If nand_wait_ready() times out, this is silently ignored, and its >>> caller will then proceed to read from/write to t

[PATCH 3.4 016/146] UBI: fix out of bounds write

2015-09-15 Thread lizf
From: Brian Norris 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit d74adbdb9abf0d2506a6c4afa534d894f28b763f upstream. If aeb->len >= vol->reserved_pebs, we should not be writing aeb into the PEB->LEB mapping. Caught by Coverity, CID #711

Test program: check if fsync() can detect I/O error (1/2)

2015-09-15 Thread Junichi Nomura
> However if admins run a command such as sync or fsfreeze along side, > fsync/fdatasync may return success even if writeback has failed. > That could lead to data corruption. For reproducing the problem, compile the attached C program (iogen.c) and run with 'runtest.sh' script in the next mail:

[PATCH 3.4 012/146] usb: common: otg-fsm: only signal connect after switching to peripheral

2015-09-15 Thread lizf
From: Peter Chen 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 990919cad55a8c38fc73b0a6a0c9e5e4e927a5f8 upstream. We should signal connect (pull up dp) after we have already at peripheral mode, otherwise, the dp may be toggled due to we

Re: [PATCH v3 1/6] mfd: arizona: Add TST_CAP bits for headphone detection

2015-09-15 Thread Charles Keepax
On Tue, Sep 15, 2015 at 01:05:07PM +0900, Chanwoo Choi wrote: > Hi Charles, > > Your following patch-set[1][2] receive the ack message about almost patches. > But, a few patches[3][4][5] must need the ack message from each maintainer. > [1] http://www.spinics.net/lists/devicetree/msg93383.html > [

[PATCH 3.4 010/146] pinctrl: fix example .get_group_pins implementation signature

2015-09-15 Thread lizf
From: Baruch Siach 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 838d030bda9e2da5f9dcf7251f4e117c6258cb2f upstream. The callback function signature has changed in commit a5818a8bd0 (pinctrl: get_group_pins() const fixes) Fixes: a5818a8

[PATCH 3.4 021/146] Btrfs: fix log tree corruption when fs mounted with -o discard

2015-09-15 Thread lizf
From: Filipe Manana 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit dcc82f4783ad91d4ab654f89f37ae9291cdc846a upstream. While committing a transaction we free the log roots before we write the new super block. Freeing the log roots implies

[PATCH 3.4 015/146] staging: panel: fix lcd type

2015-09-15 Thread lizf
From: Sudip Mukherjee 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 2c20d92dad5db6440cfa88d811b69fd605240ce4 upstream. the lcd type as defined in the Kconfig is not matching in the code. as a result the rs, rw and en pins were getting i

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Peter Zijlstra
On Tue, Sep 15, 2015 at 11:49:49AM +0200, Peter Zijlstra wrote: > On Mon, Sep 14, 2015 at 02:08:06PM -0700, Davidlohr Bueso wrote: > > On Mon, 14 Sep 2015, Peter Zijlstra wrote: > > > > >On Mon, Sep 14, 2015 at 12:37:23AM -0700, Davidlohr Bueso wrote: > > >> /* > > >>+ * Atomically grab the task

[PATCH 0/1] Fix false-negative error reporting from fsync/fdatasync

2015-09-15 Thread Junichi Nomura
Applications use fsync/fdatasync to make sure data is written back to storage. It is expected that those system calls return error if writeback has failed (e.g. disk/transport failure, memory failure..) However if admins run a command such as sync or fsfreeze along side, fsync/fdatasync may return

[PATCH 3.4 019/146] C6x: time: Ensure consistency in __init

2015-09-15 Thread lizf
From: Nishanth Menon 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit f4831605f2dacd12730fe73961c77253cc2ea425 upstream. time_init invokes timer64_init (which is __init annotation) since all of these are invoked at init time, lets maintain

[PATCH 3.4 018/146] UBI: fix check for "too many bytes"

2015-09-15 Thread lizf
From: Brian Norris 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 299d0c5b27346a77a0777c993372bf8777d4f2e5 upstream. The comparison from the previous line seems to have been erroneously (partially) copied-and-pasted onto the next. The se

[PATCH 3.4 022/146] btrfs: don't accept bare namespace as a valid xattr

2015-09-15 Thread lizf
From: David Sterba 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 3c3b04d10ff1811a27f86684ccd2f5ba6983211d upstream. Due to insufficient check in btrfs_is_valid_xattr, this unexpectedly works: $ touch file $ setfattr -n user. -v 1 fil

[PATCH 3.4 004/146] e1000: add dummy allocator to fix race condition between mtu change and netpoll

2015-09-15 Thread lizf
From: Sabrina Dubroca 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 08e8331654d1d7b2c58045e549005bc356aa7810 upstream. There is a race condition between e1000_change_mtu's cleanups and netpoll, when we change the MTU across jumbo size:

[PATCH 1/1] fs: global sync to not clear error status of individual inodes

2015-09-15 Thread Junichi Nomura
filemap_fdatawait() is a function to wait for on-going writeback to complete but also consume and clear error status of the mapping set during writeback. The latter functionality is critical for applications to detect writeback error with system calls like fsync(2)/fdatasync(2). However filemap_fd

Test program: check if fsync() can detect I/O error (2/2)

2015-09-15 Thread Junichi Nomura
On 09/15/15 17:39, Jun'ichi Nomura wrote: >> However if admins run a command such as sync or fsfreeze along side, >> fsync/fdatasync may return success even if writeback has failed. >> That could lead to data corruption. > > For reproducing the problem, compile the attached C program (iogen.c) > an

[PATCH 3.4 005/146] KVM: s390: Zero out current VMDB of STSI before including level3 data.

2015-09-15 Thread lizf
From: Ekaterina Tumanova 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit b75f4c9afac2604feb971441116c07a24ecca1ec upstream. s390 documentation requires words 0 and 10-15 to be reserved and stored as zeros. As we fill out all other fields,

[PATCH] clk: tegra: Unlock top rates for Tegra124 DFLL clock

2015-09-15 Thread Mikko Perttunen
The new determine_rate prototype allows for clock rates exceeding 2^31-1 Hz to be used. Switch the DFLL clock to use determine_rate instead of round_rate and unlock the top rates supported by the Tegra124. Signed-off-by: Mikko Perttunen --- drivers/clk/tegra/clk-dfll.c | 15 --- driv

Re: [PATCH v2 00/12] New paravirtual PCI front-end for Hyper-V VMs

2015-09-15 Thread Marc Zyngier
On 14/09/15 18:59, Jake Oshins wrote: >> -Original Message- >> From: Marc Zyngier [mailto:marc.zyng...@arm.com] >> Sent: Monday, September 14, 2015 8:01 AM >> To: Jake Oshins ; gre...@linuxfoundation.org; KY >> Srinivasan ; linux-kernel@vger.kernel.org; >> de...@linuxdriverproject.org; o...

[PATCH 3.4 007/146] pinctrl: remove maxpin from documentation

2015-09-15 Thread lizf
From: Baruch Siach 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 939417bd8b909ae34a3b2106531594f5115eaea5 upstream. struct pinctrl_desc does not contain the maxpin member since commit 0d2006bbf0 (pinctrl: remove unnecessary max pin numb

Re: [PATCH 1/1] x509: only prefix strip raw serial numbers

2015-09-15 Thread David Howells
Andy Whitcroft wrote: > This leads us to truncate the id for kernel module signing keys and to > fail to recognise our own modules: > > [1.572423] Loaded X.509 cert 'Build time autogenerated kernel > key: 62a7c3d2da278be024da4af8652c071f3fea33' > [1.646153] Request for unknown mo

[PATCH 3.4 008/146] compal-laptop: Check return value of power_supply_register

2015-09-15 Thread lizf
From: Krzysztof Kozlowski 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 1915a718b1872edffcb13e5436a9f7302d3d36f0 upstream. The return value of power_supply_register() call was not checked and even on error probe() function returned 0. I

[PATCH V2 1/2] clk: imx6: Add SPDIF_GCLK clock in clock tree

2015-09-15 Thread Shengjiu Wang
As spdif driver will register SPDIF clock to regmap, regmap will do clk_prepare in init function, so SPDIF clock is prepared in probe, then its root clock (pll clock) is prepared also, which cause the arm can't enter low power mode. Add SPDIF_GCLK in clock tree which share same gate bits with SPDIF

[PATCH V2 2/2] ARM: dts: imx6: change the core clock of spdif

2015-09-15 Thread Shengjiu Wang
As core clock is changed in clock tree, the dts also need to be updated. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx6qdl.dtsi | 2 +- arch/arm/boot/dts/imx6sl.dtsi | 16 arch/arm/boot/dts/imx6sx.dtsi | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff

[PATCH 3.4 002/146] Bluetooth: ath3k: Add support Atheros AR5B195 combo Mini PCIe card

2015-09-15 Thread lizf
From: Alexander Ploumistos 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- commit 2eeff0b4317a02f0e281df891d990194f0737aae upstream. Add 04f2:aff1 to ath3k.c supported devices list and btusb.c blacklist, so that the device can load the ath3k fir

[PATCH 3.4 001/146] ipv6: add check for blackhole or prohibited entry in rt6_redire

2015-09-15 Thread lizf
From: Weilong Chen 3.4.109-rc1 review patch. If anyone has any objections, please let me know. -- There's a check for ip6_null_entry, but it's not enough if the config CONFIG_IPV6_MULTIPLE_TABLES is selected. Blackhole or prohibited entries should also be ignored. This path i

[PATCH] Input: cyapa: remove variable overwriting

2015-09-15 Thread Sudip Mukherjee
Even if rotat_align is true or false the final value of cyapa->electrodes_rx is always cyapa->electrodes_y. remove the variable overwriting and in the process remove the variable rotat_align which is not required any more. Signed-off-by: Sudip Mukherjee --- drivers/input/mouse/cyapa_gen6.c | 10

Re: [PATCH v7 5/8] Watchdog: introduce ARM SBSA watchdog driver

2015-09-15 Thread Fu Wei
Hi Dave, On 15 September 2015 at 16:38, Dave Young wrote: > On 08/25/15 at 01:01am, fu@linaro.org wrote: >> From: Fu Wei >> >> This driver bases on linux kernel watchdog framework, and >> use "pretimeout" in the framework. It supports getting timeout and >> pretimeout from parameter and FDT

Re: [PATCH] tpm, tpm_crb: fix unaligned read of the command buffer address

2015-09-15 Thread Jarkko Sakkinen
On Mon, Sep 14, 2015 at 11:35:23AM -0600, Jason Gunthorpe wrote: > On Mon, Sep 14, 2015 at 08:15:23PM +0300, Jarkko Sakkinen wrote: > > The command buffer address is necessarily not naturally aligned. > > The hardware drops the entire read on some platforms and fills the > > address with 1's. This

Re: [PATCH] KVM: nVMX: nested VPID emulation

2015-09-15 Thread Wanpeng Li
On 9/14/15 10:54 PM, Jan Kiszka wrote: On 2015-09-14 14:52, Wanpeng Li wrote: VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1 hypervisor,

Re: [PATCH v7 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-09-15 Thread Fu Wei
Hi Dave, On 15 September 2015 at 16:43, Dave Young wrote: > On 08/25/15 at 01:01am, fu@linaro.org wrote: >> From: Fu Wei >> >> This can be a example of adding SBSA Generic Watchdog device node >> into some dts files for the Soc which contains SBSA Generic Watchdog. >> >> Acked-by: Arnd Bergm

Re: [PATCH] KVM: nVMX: nested VPID emulation

2015-09-15 Thread Wanpeng Li
On 9/15/15 12:08 AM, Bandan Das wrote: Wanpeng Li writes: VPID is used to tag address space and avoid a TLB flush. Currently L0 use the same VPID to run L1 and all its guests. KVM flushes VPID when switching between L1 and L2. This patch advertises VPID to the L1 hypervisor, then address spac

Re: [PATCH v7 2/8] ARM64: add SBSA Generic Watchdog device node in foundation-v8.dts

2015-09-15 Thread Fu Wei
Hi Pratyush, On 15 September 2015 at 17:44, Pratyush Anand wrote: > On 15/09/2015:04:43:32 PM, Dave Young wrote: >> On 08/25/15 at 01:01am, fu@linaro.org wrote: >> > From: Fu Wei >> > >> > This can be a example of adding SBSA Generic Watchdog device node >> > into some dts files for the So

[PATCHv6 7/7] mm: use 'unsigned int' for compound_dtor/compound_order on 64BIT

2015-09-15 Thread Kirill A. Shutemov
On 64 bit system we have enough space in struct page to encode compound_dtor and compound_order with unsigned int. On x86-64 it leads to slightly smaller code size due usesage of plain MOV instead of MOVZX (zero-extended move) or similar effect. allyesconfig: textdata bss dec

[PATCHv6 4/7] mm: pack compound_dtor and compound_order into one word in struct page

2015-09-15 Thread Kirill A. Shutemov
The patch halves space occupied by compound_dtor and compound_order in struct page. For compound_order, it's trivial long -> short conversion. For get_compound_page_dtor(), we now use hardcoded table for destructor lookup and store its index in the struct page instead of direct pointer to destruc

[PATCHv6 2/7] slab, slub: use page->rcu_head instead of page->lru plus cast

2015-09-15 Thread Kirill A. Shutemov
We have properly typed page->rcu_head, no need to cast page->lru. Signed-off-by: Kirill A. Shutemov Reviewed-by: Andrea Arcangeli Cc: Christoph Lameter --- mm/slab.c | 17 +++-- mm/slub.c | 5 + 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/mm/slab.c b/mm/sla

<    1   2   3   4   5   6   7   8   9   10   >