Re: [RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-16 Thread Sergey Senozhatsky
On (03/16/16 14:39), Byungchul Park wrote: > On Tue, Mar 15, 2016 at 11:07:38PM +0900, Sergey Senozhatsky wrote: > > > > something like this (*minimally tested so far*). > > > > -- move wake_up() and friends under the logbuf section; so we can detect > ^^

Re: [RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-16 Thread Byungchul Park
On Wed, Mar 16, 2016 at 02:39:44PM +0900, Byungchul Park wrote: > On Tue, Mar 15, 2016 at 11:07:38PM +0900, Sergey Senozhatsky wrote: > > > > something like this (*minimally tested so far*). > > > > -- move wake_up() and friends under the logbuf section; so we can detect >

Re: Possible race at user mode helper in request_firmware

2016-03-16 Thread Chandra Sekhar Lingutla
Hi Ming, On 03/16/2016 07:36 AM, Ming Lei wrote: On Tue, Mar 15, 2016 at 11:09 PM, Ming Lei wrote: Hi, On Mon, Mar 14, 2016 at 8:00 PM, wrote: Hello, I see possible race in _request_firmware_load function, on which I wanted to take your opinion. When system is going to low power mode, de

Re: [RFT] iommu/amd: use subsys_initcall() on amdv2 iommu

2016-03-16 Thread Oded Gabbay
On Wed, Mar 16, 2016 at 12:12 AM, Luis R. Rodriguez wrote: > We need to ensure amd iommu v2 initializes before > driver uses such as drivers/gpu/drm/amd/amdkfd/kfd_module.c, > to do this make its init routine a subsys_initcall() which > ensures its load init is called first than modules when > bui

[PATCH v5 1/5] ARM: at91: pm: create a separate procedure for the ULP0 mode

2016-03-16 Thread Wenyou Yang
To make the code more legible and prepare to add the ULP1 mode support in the future, create a separate procedure for the ULP0 mode. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-at91/pm_suspend.S | 65 +++

[PATCH v5 0/5] ARM: at91: pm: add ULP1 mode support

2016-03-16 Thread Wenyou Yang
The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. In order to achieve the lowest power consumption, in the ULP1 mode, all the clocks are shut off, inclusive the embedded 12MHz RC oscillator. The fast startup signal is used as a wake up source for ULP1 mode. As soon as the wake up event

[PATCH v5 2/5] ARM: at91: pm: add ULP1 mode support

2016-03-16 Thread Wenyou Yang
The ULP1 (Ultra Low-power mode 1) is introduced by SAMA5D2. In the ULP1 mode, all the clocks are shut off, inclusive the embedded 12MHz RC oscillator, so as to achieve the lowest power consumption with the system in retention mode and able to resume on the wake up events. As soon as the wake up ev

[PATCH v5 3/5] ARM: at91: pm: configure PMC fast startup signals

2016-03-16 Thread Wenyou Yang
The fast startup signal is used as wake up sources for ULP1 mode. As soon as a fast startup signal is asserted, the embedded 12 MHz RC oscillator restarts automatically. This patch is to configure the fast startup signals, which signal is enabled to trigger the PMC to wake up the system from ULP1

[PATCH v5 4/5] Documentation: atmel-pmc: add DT bindings for fast startup

2016-03-16 Thread Wenyou Yang
Add DT bindings to configurate the PMC_FSMR and PMC_FSPR registers to trigger a fast restart signal to PMC. Signed-off-by: Wenyou Yang Acked-by: Rob Herring --- Changes in v5: - due to the DT property expression change, update the binding document. Changes in v4: - add Acked-by tag. Chan

Re: [RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-16 Thread Sergey Senozhatsky
On (03/16/16 16:00), Byungchul Park wrote: > On Wed, Mar 16, 2016 at 02:39:44PM +0900, Byungchul Park wrote: > > On Tue, Mar 15, 2016 at 11:07:38PM +0900, Sergey Senozhatsky wrote: > > > > > > something like this (*minimally tested so far*). > > > > > > -- move wake_up() and friends under the log

[PATCH v5 5/5] ARM: at91/dt: sama5d2_xplained: add fast_restart node

2016-03-16 Thread Wenyou Yang
Add fast_restart node as a pmc's child node to support fast startup signal configuration. Signed-off-by: Wenyou Yang --- Changes in v5: - due to the DT property expression change, update the fast restart node's property. Changes in v4: - add fast_restart node to the DT file. Changes in v3

Re: [PATCH] Remove v850 from linux/elf-em.h

2016-03-16 Thread Rob Landley
On 03/15/2016 06:22 PM, David Daney wrote: > On 03/15/2016 02:10 PM, Rob Landley wrote: >> From: Rob Landley >> >> The v850 port was removed by commits f606ddf42fd4 and 07a887d399b8 in >> 2008. >> These #defines are not used in the current kernel. >> >> Signed-off-by: Rob Landley >> --- >> incl

Re: [PART1 RFC v2 05/10] KVM: x86: Detect and Initialize AVIC support

2016-03-16 Thread Paolo Bonzini
On 16/03/2016 07:22, Suravee Suthikulpanit wrote: > This is mainly causing a large number of VMEXIT due to NPF. Got it, it's here in the manual: "System software is responsible for setting up a translation in the nested page table granting guest read and write permissions for accesses to the vAP

Re: [GIT PULL v2 rcu/next] memory-barriers.txt commits for 4.6

2016-03-16 Thread Ingo Molnar
* Paul E. McKenney wrote: > [...] In fact, in view of the no-diagrams and no-quizzes restrictions, I > don't > see a way to improve on comments in the source code. [...] So I don't think there's such a hard restriction: AFAICS Linus's main problem was the dual .html and .htmlx file for what

Re: [lkp] [ALSA] 1a414f48d7: WARNING: CPU: 0 PID: 252 at sound/hda/hdac_i915.c:129 pin2port+0x2a/0x40 [snd_hda_core]()

2016-03-16 Thread Takashi Iwai
On Wed, 16 Mar 2016 01:23:15 +0100, kernel test robot wrote: > > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > commit 1a414f48d7ccb197b61c1b72327c98171844 ("ALSA: hda - Add a sanity > check of pin / port mapping on i915

Re: [RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-16 Thread Byungchul Park
On Wed, Mar 16, 2016 at 03:58:51PM +0900, Sergey Senozhatsky wrote: > I don't have a very clear vision (at the moment) of how to fix printk > recursion > caused by logbuf lock of console_sem corruptions, etc. Should spin_dump > be aware of the locks that can be taken by printk()? Hm, I can't even

[PATCH v2 all 00/14] use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Then it is possible for driver code build as a module, and no need to export of_default_bus_match_table anymore. This patchset is based on Linux 4.

[PATCH v2 all 14/14] Revert "of/platform: export of_default_bus_match_table"

2016-03-16 Thread Kefeng Wang
This reverts commit b80443c2211c7daaabd20fbbe9e7beb3fa3408e0. After covering to use helper of_platform_default_populate() to populate the default bus, no need to export of_default_bus_match_table anymore. Reviewed-by: Masahiro Yamada Cc: Masahiro Yamada Cc: Rob Herring Cc: Frank Rowand Cc: Gr

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-16 Thread Masahiro Yamada
Hi PaX, 2016-03-15 6:25 GMT+09:00 PaX Team : > On 11 Mar 2016 at 15:25, Masahiro Yamada wrote: > >> > diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh >> > new file mode 100644 >> > index 000..eaa4fce >> > --- /dev/null >> > +++ b/scripts/gcc-plugin.sh >> > @@ -0,0 +1,51 @@ >> > +#!

[PATCH v2 all 04/14] arc: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Vineet Gupta Cc: Vineet Gupta Signed-off-by: Kefeng Wang --- arch/arc/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v2 all 05/14] c6x: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Mark Salter Cc: Mark Salter Cc: Aurelien Jacquiot Signed-off-by: Kefeng Wang --- arch/c6x/platforms/platform.c | 2 +- 1 file changed

[PATCH v2 all 08/14] nios2: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Ley Foon Tan Signed-off-by: Kefeng Wang --- arch/nios2/platform/platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --gi

[PATCH v2 all 06/14] metag: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: James Hogan Cc: James Hogan Signed-off-by: Kefeng Wang --- arch/metag/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

[PATCH v2 all 13/14] of: unittest: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Rob Herring Cc: Frank Rowand Cc: Grant Likely Signed-off-by: Kefeng Wang --- drivers/of/unittest.c | 5 ++--- 1 file changed, 2 insertions(

[PATCH v2 all 02/14] arm64: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Catalin Marinas Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Kefeng Wang --- arch/arm64/kernel/setup.c | 3 +

[PATCH v2 all 03/14] mips: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Tested-by: Joshua Henderson Cc: Ralf Baechle Signed-off-by: Kefeng Wang --- arch/mips/ath79/setup.c | 2 +- arch/mips/jz4740/setup.c

[PATCH v2 all 01/14] arm: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Shawn Guo Acked-by: Heiko Stuebner Acked-by: Krzysztof Halasa Acked-by: Nicolas Ferre Cc: Nicolas Ferre Cc: Ray Jui Cc: Lee Jones C

[PATCH v2 all 07/14] cris: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Mikael Starvik Cc: Jesper Nilsson Signed-off-by: Kefeng Wang --- arch/cris/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 all 09/14] xtensa: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Max Filippov Cc: Chris Zankel Cc: Max Filippov Signed-off-by: Kefeng Wang --- arch/xtensa/kernel/setup.c | 2 +- 1 file changed, 1 in

[PATCH v2 all 11/14] bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Masahiro Yamada Cc: Masahiro Yamada Signed-off-by: Kefeng Wang --- drivers/bus/uniphier-system-bus.c | 3 +-- 1 file changed, 1 insert

Re: [PATCH 6/8] cpufreq/schedutil: sum per-sched class utilization

2016-03-16 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 03:09:51PM -0700, Michael Turquette wrote: > Quoting Peter Zijlstra (2016-03-15 14:29:26) > > On Sun, Mar 13, 2016 at 10:22:10PM -0700, Michael Turquette wrote: > > > > > +static unsigned long sugov_sum_total_util(struct sugov_cpu *sg_cpu) > > > +{ > > > + enum sched_cl

[PATCH v2 all 10/14] bus: imx-weim: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Acked-by: Shawn Guo Cc: Signed-off-by: Huang Shijie Cc: Shawn Guo Signed-off-by: Kefeng Wang --- drivers/bus/imx-weim.c | 5 ++--- 1 file chang

[PATCH v2 all 12/14] memory: omap-gpmc: use of_platform_default_populate() to populate default bus

2016-03-16 Thread Kefeng Wang
Use helper of_platform_default_populate() in linux/of_platform when possible, instead of calling of_platform_populate() with the default match table. Cc: Roger Quadros Cc: Tony Lindgren Signed-off-by: Kefeng Wang --- drivers/memory/omap-gpmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletio

Re: [GIT PULL] LED subsystem updates for 4.6

2016-03-16 Thread Jacek Anaszewski
On 03/16/2016 06:04 AM, Linus Torvalds wrote: On Tue, Mar 15, 2016 at 12:51 AM, Jacek Anaszewski wrote: I just wanted to make sure that no unexpected problem has occurred after rebasing onto 4.5 release. Is it in some way more advantageous to base a pull request on rc7, than on a final release

Re: [PATCH V2] regulator: pwm: Prints error number along with detail

2016-03-16 Thread Lee Jones
On Mon, 14 Mar 2016, Laxman Dewangan wrote: > Prints the error number along with error message when any > error occurs. This help on getting the reason of failure > quickly from log without any code instrument. > > Signed-off-by: Laxman Dewangan > Cc: Lee Jones > --- > This was part of the seri

Re: [PATCH 5/8] sched/cpufreq: pass sched class into cpufreq_update_util

2016-03-16 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 03:06:09PM -0700, Michael Turquette wrote: > Quoting Peter Zijlstra (2016-03-15 14:25:20) > > On Sun, Mar 13, 2016 at 10:22:09PM -0700, Michael Turquette wrote: > > > +++ b/include/linux/sched.h > > > @@ -2362,15 +2362,25 @@ extern u64 scheduler_tick_max_deferment(void); > >

Re: [PATCH v5 2/5] GCC plugin infrastructure

2016-03-16 Thread Masahiro Yamada
Hi Emese, 2016-03-15 5:52 GMT+09:00 Emese Revfy : > On Fri, 11 Mar 2016 15:25:19 +0900 > Masahiro Yamada wrote: > >> Maybe scripts/gcc-plugins/ is better than tools/gcc ? >> >> In the directory "scripts/", we have several tools used during >> building the kernel image. >> We have some optional pr

[patch] ALSA: mixart: silence an uninitialized variable warning

2016-03-16 Thread Dan Carpenter
We could print the uninitialized value of "stat" in the error message. Signed-off-by: Dan Carpenter diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index bc81b9f..25c0ddd 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c @@ -132,7 +132,7 @@ static int mixa

Re: [GIT PULL] LED subsystem updates for 4.6

2016-03-16 Thread Jacek Anaszewski
On 03/16/2016 06:15 AM, Linus Torvalds wrote: On Mon, Mar 14, 2016 at 3:24 AM, Jacek Anaszewski wrote: New LED class driver: - Add driver for the ISSI IS31FL32xx family of LED controllers. Grr. This has apparently not gotten with the program, and causes a few annoying warnings: drivers/led

Re: [PATCH 8/8] sched: prefer cpufreq_scale_freq_capacity

2016-03-16 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 03:27:21PM -0700, Michael Turquette wrote: > That solution scales for the case where architectures have different > methods. It doesn't scale for the case where cpufreq drivers or platform > code within the same arch have competing implementations. Sure it does; no matter

Re: [PATCH 1/2] misc: add nirtfeatures driver

2016-03-16 Thread Lee Jones
On Mon, 14 Mar 2016, Josh Cartwright wrote: > On Mon, Mar 14, 2016 at 03:05:59PM -0700, Greg KH wrote: > > On Mon, Mar 14, 2016 at 04:54:32PM -0500, Kyle Roeschley wrote: > > > From: Jeff Westfahl > > > > > > This driver introduces support for hardware features of National > > > Instruments real

My dear Kindly open the attachement go through my email and get back to me Hoping to receive your reply: From Mrs.Aileen Samih

2016-03-16 Thread Aileen Samih
READ AND REPLY URGENT.rtf Description: RTF file

[GIT PULL] Security subsystem updates for 4.6

2016-03-16 Thread James Morris
Please pull these changes for 4.6. There are a bunch of fixes to the TPM, IMA, and Keys code, with minor fixes scattered across the subsystem. IMA now requires signed policy, and that policy is also now measured and appraised. -- The following changes since commit 9256d5a308c95a50c6e85d682492

Re: [PATCH v5 1/5] Shared library support

2016-03-16 Thread Masahiro Yamada
Hi Emese, 2016-03-15 5:14 GMT+09:00 Emese Revfy : > On Fri, 11 Mar 2016 15:19:33 +0900 > Masahiro Yamada wrote: > >> As an alternative, you can add needed build rules >> into tools/gcc/Makefile, not scripts/Makefile.host >> >> I guess these rule won't be used in other places. > > I think it is b

Re: linux-next: build failure after merge of the kbuild tree

2016-03-16 Thread Daniel Wagner
Hi, On 03/16/2016 12:58 AM, Stephen Rothwell wrote: > After merging the kbuild tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:39: error: initialization from > incompatible pointer type [-Werror=incompatible-pointer-types

Re: [RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-16 Thread Sergey Senozhatsky
On (03/16/16 16:30), Byungchul Park wrote: > > Do you mean the wake_up_process() in console_unlock? no, I meant wake_up_process(printk_kthread), the newly added one. -- if we are going to have wake_up_process() in wake_up_klogd_work_func(), then we need `in_sched' message to potentially trigger

Re: linux-next: build failure after merge of the kbuild tree

2016-03-16 Thread Michal Marek
On 2016-03-16 08:53, Daniel Wagner wrote: > Hi, > > On 03/16/2016 12:58 AM, Stephen Rothwell wrote: >> After merging the kbuild tree, today's linux-next build (x86_64 >> allmodconfig) failed like this: >> >> drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:39: error: initialization from >> incompati

Re: [LKP] [lkp] [ALSA] 1a414f48d7: WARNING: CPU: 0 PID: 252 at sound/hda/hdac_i915.c:129 pin2port+0x2a/0x40 [snd_hda_core]()

2016-03-16 Thread Huang, Ying
Takashi Iwai writes: > On Wed, 16 Mar 2016 01:23:15 +0100, > kernel test robot wrote: >> >> FYI, we noticed the below changes on >> >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master >> commit 1a414f48d7ccb197b61c1b72327c98171844 ("ALSA: hda - Add a >> sanity chec

Re: [PATCH 1/8] sched/cpufreq: remove cpufreq_trigger_update()

2016-03-16 Thread Peter Zijlstra
On Sun, Mar 13, 2016 at 10:22:05PM -0700, Michael Turquette wrote: > cpufreq_trigger_update() was introduced in "cpufreq: Rework the > scheduler hooks for triggering updates"[0]. Consensus is that this > helper is not needed and removing it will aid in experimenting with > deadline and rt capacity

Re: [PATCH v2] atomic: Fix bugs in 'fetch_or()' and rename it to 'xchg_or()'

2016-03-16 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, Mar 15, 2016 at 01:21:45PM +0100, Ingo Molnar wrote: > > - Renaming fetch_or() to xchg_or(), recognizing that the semantics > >are xchg()-alike. > > Let me add another argument for why I don't like the "exchange/swap > (and) add" naming. > > Exchange (and

Re: [PATCH 4/8] cpufreq/schedutil: sysfs capacity margin tunable

2016-03-16 Thread Peter Zijlstra
On Tue, Mar 15, 2016 at 08:36:57PM -0700, Steve Muckle wrote: > > Then again, maybe this knob will be part of the mythical > > power-vs-performance slider? > > Patrick Bellasi's schedtune series [0] (which I think is the referenced > mythical slider) aims to provide a more sophisticated interface

[PATCH 3.4 000/107] 3.4.111-rc1 review

2016-03-16 Thread lizf
From: Zefan Li This is the start of the stable review cycle for the 3.4.111 release. There are 107 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Mar 16 16:04:10 CST 201

[PATCH 3.4 001/107] Btrfs: use kmem_cache_free when freeing entry in inode cache

2016-03-16 Thread lizf
From: Filipe Manana 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit c3f4a1685bb87e59c886ee68f7967eae07d4dffa upstream. The free space entries are allocated using kmem_cache_zalloc(), through __btrfs_add_free_space(), therefore we should u

[PATCH 3.4 003/107] bufferhead: Add _gfp version for sb_getblk()

2016-03-16 Thread lizf
From: Nikolay Borisov 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit bd7ade3cd9b0850264306f5c2b79024a417b6396 upstream. sb_getblk() is used during ext4 (and possibly other FSes) writeback paths. Sometimes such path require allocating mem

[PATCH 3.4 015/107] dm btree: silence lockdep lock inversion in dm_btree_del()

2016-03-16 Thread lizf
From: Joe Thornber 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 1c7518794a3647eb345d59ee52844e8a40405198 upstream. Allocate memory using GFP_NOIO when deleting a btree. dm_btree_del() can be called via an ioctl and we don't want to re

[PATCH 3.4 008/107] hpfs: hpfs_error: Remove static buffer, use vsprintf extension %pV instead

2016-03-16 Thread lizf
From: Joe Perches 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit a28e4b2b18ccb90df402da3f21e1a83c9d4f8ec1 upstream. Removing unnecessary static buffers is good. Use the vsprintf %pV extension instead. Signed-off-by: Joe Perches Signed-

[PATCH 3.4 005/107] ext4: replace open coded nofail allocation in ext4_free_blocks()

2016-03-16 Thread lizf
From: Michal Hocko 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 7444a072c387a93ebee7066e8aee776954ab0e41 upstream. ext4_free_blocks is looping around the allocation request and mimics __GFP_NOFAIL behavior without any allocation fallba

[PATCH 3.4 006/107] mm: avoid setting up anonymous pages into file mapping

2016-03-16 Thread lizf
From: "Kirill A. Shutemov" 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 6b7339f4c31ad69c8e9c0b2859276e22cf72176d upstream. Reading page fault handler code I've noticed that under right circumstances kernel would map anonymous pages int

[PATCH 3.4 035/107] md: flush ->event_work before stopping array.

2016-03-16 Thread lizf
From: NeilBrown 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit ee5d004fd0591536a061451eba2b187092e9127c upstream. The 'event_work' worker used by dm-raid may still be running when the array is stopped. This can result in an oops. So fl

[PATCH 3.4 040/107] xhci: prevent bus_suspend if SS port resuming in phase 1

2016-03-16 Thread lizf
From: Zhuang Jin Can 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit fac4271d1126c45ceaceb7f4a336317b771eb121 upstream. When the link is just waken, it's in Resume state, and driver sets PLS to U0. This refers to Phase 1. Phase 2 refers t

[PATCH 3.4 017/107] drm: add a check for x/y in drm_mode_setcrtc

2016-03-16 Thread lizf
From: Zhao Junwang 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 01447e9f04ba1c49a9534ae6a5a6f26c2bb05226 upstream. legacy setcrtc ioctl does take a 32 bit value which might indeed overflow the checks of crtc_req->x > INT_MAX and crtc_

[PATCH 3.4 030/107] NET: AX.25: Stop heartbeat timer on disconnect.

2016-03-16 Thread lizf
From: Richard Stearn 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit da278622bf04f8ddb14519a2b8214e108ef26101 upstream. This may result in a kernel panic. The bug has always existed but somehow we've run out of luck now and it bites. Si

[PATCH 3.4 026/107] libata: add ATA_HORKAGE_NOTRIM

2016-03-16 Thread lizf
From: Arne Fitzenreiter 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 71d126fd28de2d4d9b7b2088dbccd7ca62fad6e0 upstream. Some devices lose data on TRIM whether queued or not. This patch adds a horkage to disable TRIM. tj: Collapsed un

[PATCH 3.4 020/107] net: call rcu_read_lock early in process_backlog

2016-03-16 Thread lizf
From: Julian Anastasov 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 2c17d27c36dcce2b6bf689f41a46b9e909877c21 upstream. Incoming packet should be either in backlog queue or in RCU read-side section. Otherwise, the final sequence of flus

[PATCH 3.4 021/107] s390/process: fix sfpc inline assembly

2016-03-16 Thread lizf
From: Heiko Carstens 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit e47994dd44bcb4a77b4152bd0eada585934703c0 upstream. The sfpc inline assembly within execve_tail() may incorrectly set bits 28-31 of the sfpc instruction to a value which

[PATCH 3.4 048/107] iscsi-target: Fix use-after-free during TPG session shutdown

2016-03-16 Thread lizf
From: Nicholas Bellinger 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 417c20a9bdd1e876384127cf096d8ae8b559066c upstream. This patch fixes a use-after-free bug in iscsit_release_sessions_for_tpg() where se_portal_group->session_lock was

[PATCH 3.4 067/107] dm btree: add ref counting ops for the leaves of top level btrees

2016-03-16 Thread lizf
From: Joe Thornber 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit b0dc3c8bc157c60b1d470163882be8c13e1950af upstream. When using nested btrees, the top leaves of the top levels contain block addresses for the root of the next tree down.

[PATCH 3.4 053/107] drm/radeon/combios: add some validation of lvds values

2016-03-16 Thread lizf
From: Alex Deucher 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 0a90a0cff9f429f886f423967ae053150dce9259 upstream. Fixes a broken hsync start value uncovered by: abc0b1447d4974963548777a5ba4a4457c82c426 (drm: Perform basic sanity check

[PATCH 3.4 054/107] target/iscsi: Fix double free of a TUR followed by a solicited NOPOUT

2016-03-16 Thread lizf
From: Alexei Potashnik 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 9547308bda296b6f69876c840a0291fcfbeddbb8 upstream. Make sure all non-READ SCSI commands get targ_xfer_tag initialized to 0x, not just WRITEs. Double-free of a

[PATCH 3.4 059/107] xhci: fix off by one error in TRB DMA address boundary check

2016-03-16 Thread lizf
From: Mathias Nyman 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 7895086afde2a05fa24a0e410d8e6b75ca7c8fdd upstream. We need to check that a TRB is part of the current segment before calculating its DMA address. Previously a ring segme

[PATCH 3.4 083/107] ppp, slip: Validate VJ compression slot parameters completely

2016-03-16 Thread lizf
From: Ben Hutchings 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 4ab42d78e37a294ac7bc56901d563c642e03c4ae upstream. Currently slhc_init() treats out-of-range values of rslots and tslots as equivalent to 0, except that if tslots is too

[PATCH 3.4 082/107] isdn_ppp: Add checks for allocation failure in isdn_ppp_open()

2016-03-16 Thread lizf
From: Ben Hutchings 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 0baa57d8dc32db78369d8b5176ef56c5e2e18ab3 upstream. Compile-tested only. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller Signed-off-by: Zefan Li --- drive

[PATCH 3.4 075/107] unix: avoid use-after-free in ep_remove_wait_queue

2016-03-16 Thread lizf
From: Rainer Weikusat 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 7d267278a9ece963d77eefec61630223fce08c6c upstream. Rainer Weikusat writes: An AF_UNIX datagram socket being the client in an n:1 association with some server socket is

[PATCH 3.4 087/107] ipv6: addrconf: validate new MTU before applying it

2016-03-16 Thread lizf
From: Marcelo Leitner 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 77751427a1ff25b27d47a4c36b12c3c8667855ac upstream. Currently we don't check if the new MTU is valid or not and this allows one to configure a smaller than minimum allow

[PATCH 3.4 101/107] x86/LDT: Print the real LDT base address

2016-03-16 Thread lizf
From: Jan Beulich 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 0d430e3fb3f7cdc13c0d22078b820f682821b45a upstream. This was meant to print base address and entry count; make it do so again. Fixes: 37868fe113ff "x86/ldt: Make modify_ldt

[PATCH 3.4 106/107] dm btree remove: fix a bug when rebalancing nodes after removal

2016-03-16 Thread lizf
From: Joe Thornber 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 2871c69e025e8bc507651d5a9cf81a8a7da9d24b upstream. Commit 4c7e309340ff ("dm btree remove: fix bug in redistribute3") wasn't a complete fix for redistribute3(). The redist

[PATCH 3.4 099/107] net: fix warnings in 'make htmldocs' by moving macro definition out of field declaration

2016-03-16 Thread lizf
From: Hannes Frederic Sowa 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 7bbadd2d1009575dad675afc16650ebb5aa10612 upstream. Docbook does not like the definition of macros inside a field declaration and adds a warning. Move the definitio

[PATCH 3.4 092/107] net: avoid to hang up on sending due to sysctl configuration overflow.

2016-03-16 Thread lizf
From: "bingtian...@taobao.com" 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit cdda88912d62f9603d2748a18be83ef23ac1 upstream. I found if we write a larger than 4GB value to some sysctl variables, the sending syscall will hang up f

[PATCH 3.4 095/107] atm: deal with setting entry before mkip was called

2016-03-16 Thread lizf
From: Sasha Levin 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 34f5b0066435ffb793049b84fafd29fa195bcf90 upstream. If we didn't call ATMARP_MKIP before ATMARP_ENCAP the VCC descriptor is non-existant and we'll end up dereferencing a NUL

[PATCH 3.4 103/107] ALSA: tlv: add DECLARE_TLV_DB_RANGE()

2016-03-16 Thread lizf
From: Clemens Ladisch 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit bf1d1c9b6179faa3bc32cee882462bc8eebde25d upstream. Add a DECLARE_TLV_DB_RANGE() macro so that dB range information can be specified without having to count the items ma

[PATCH 3.4 104/107] ALSA: usb-audio: Add a more accurate volume quirk for AudioQuest DragonFly

2016-03-16 Thread lizf
From: Anssi Hannula 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 42e3121d90f42e57f6dbd6083dff2f57b3ec7daa upstream. AudioQuest DragonFly DAC reports a volume control range of 0..50 (0x..0x0032) which in USB Audio means a range of 0

[PATCH 3.4 105/107] usb: dwc3: Fix assignment of EP transfer resources

2016-03-16 Thread lizf
From: John Youn 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit c450960187f45d4260db87c7dd4fc0bceb5565d8 upstream. The assignement of EP transfer resources was not handled properly in the dwc3 driver. Commit aebda6187181 ("usb: dwc3: Rese

Re: [PATCH v2] atomic: Fix bugs in 'fetch_or()' and rename it to 'xchg_or()'

2016-03-16 Thread Ingo Molnar
* Frederic Weisbecker wrote: > > diff --git a/include/linux/atomic.h b/include/linux/atomic.h > > index 6c502cb13c95..7bc5297bcca8 100644 > > --- a/include/linux/atomic.h > > +++ b/include/linux/atomic.h > > @@ -549,22 +549,28 @@ static inline int atomic_dec_if_positive(atomic_t *v) > > #endif

[PATCH 3.4 107/107] KVM: x86: move steal time initialization to vcpu entry time

2016-03-16 Thread lizf
From: Marcelo Tosatti 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 7cae2bedcbd4680b155999655e49c27b9cf020fa upstream. As reported at https://bugs.launchpad.net/qemu/+bug/1494350, it is possible to have vcpu->arch.st.last_steal initiali

Re: Possible race at user mode helper in request_firmware

2016-03-16 Thread Ming Lei
Hi Chandra, On Wed, Mar 16, 2016 at 3:02 PM, Chandra Sekhar Lingutla wrote: > Hi Ming, > > > On 03/16/2016 07:36 AM, Ming Lei wrote: >> >> On Tue, Mar 15, 2016 at 11:09 PM, Ming Lei wrote: >>> >>> Hi, >>> >>> On Mon, Mar 14, 2016 at 8:00 PM, wrote: Hello, I see possible rac

[PATCH 3.4 098/107] kernel/watchdog.c: touch_nmi_watchdog should only touch local cpu not every one

2016-03-16 Thread lizf
From: Ben Zhang 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 62572e29bc530b38921ef6059088b4788a9832a5 upstream. I ran into a scenario where while one cpu was stuck and should have panic'd because of the NMI watchdog, it didn't. The re

[PATCH 3.4 100/107] af_unix: Guard against other == sk in unix_dgram_sendmsg

2016-03-16 Thread lizf
From: Rainer Weikusat 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit a5527dda344fff0514b7989ef7a755729769daa1 upstream. The unix_dgram_sendmsg routine use the following test if (unlikely(unix_peer(other) != sk && unix_recvq_full(other))

[PATCH 3.4 102/107] ALSA: tlv: compute TLV_*_ITEM lengths automatically

2016-03-16 Thread lizf
From: Clemens Ladisch 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit b5b9eb546762c4015c67c31364a6ec6f83fd2ada upstream. Add helper macros with a little bit of preprocessor magic to automatically compute the length of a TLV item. This le

[PATCH 3.4 096/107] SUNRPC: never enqueue a ->rq_cong request on ->sending

2016-03-16 Thread lizf
From: Neil Brown 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 298073181112a6ab6c30fe7971b99de968daf81e upstream. If the sending queue has a task without ->rq_cong set at the front, and then a number of tasks with ->rq_cong set such tha

[PATCH 3.4 094/107] netfilter: nf_conntrack: fix RCU race in nf_conntrack_find_get

2016-03-16 Thread lizf
From: Andrey Vagin 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit c6825c0976fa7893692e0e43b09740b419b23c09 upstream. Lets look at destroy_conntrack: hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); ... nf_conntrack_free(c

[PATCH 3.4 093/107] ipv6: probe routes asynchronous in rt6_probe

2016-03-16 Thread lizf
From: Hannes Frederic Sowa 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit c2f17e827b419918c856131f592df9521e1a38e3 upstream. Routes need to be probed asynchronous otherwise the call stack gets exhausted when the kernel attemps to deliver

[PATCH 3.4 091/107] Initialize msg/shm IPC objects before doing ipc_addid()

2016-03-16 Thread lizf
From: Linus Torvalds 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit b9a532277938798b53178d5a66af6e2915cb27cf upstream. As reported by Dmitry Vyukov, we really shouldn't do ipc_addid() before having initialized the IPC object state. Yes,

[PATCH 3.4 097/107] ipv6: prevent fib6_run_gc() contention

2016-03-16 Thread lizf
From: Michal Kubeček 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 2ac3ac8f86f2fe065d746d9a9abaca867adec577 upstream. On a high-traffic router with many processors and many IPv6 dst entries, soft lockup in fib6_run_gc() can occur when n

[PATCH 3.4 086/107] KEYS: Fix crash when attempt to garbage collect an uninstantiated keyring

2016-03-16 Thread lizf
From: David Howells 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit f05819df10d7b09f6d1eb6f8534a8f68e5a4fe61 upstream. The following sequence of commands: i=`keyctl add user a a @s` keyctl request2 keyring foo bar @t keyctl u

[PATCH 3.4 088/107] KVM: x86: work around infinite loop in microcode when #AC is delivered

2016-03-16 Thread lizf
From: Eric Northup 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 54a20552e1eae07aa240fa370a0293e006b5faed upstream. It was found that a guest can DoS a host by triggering an infinite stream of "alignment check" (#AC) exceptions. This c

[PATCH 3.4 090/107] get rid of s_files and files_lock

2016-03-16 Thread lizf
From: Al Viro 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit eee5cc2702929fd41cce28058dc6d6717f723f87 upstream. The only thing we need it for is alt-sysrq-r (emergency remount r/o) and these days we can do just as well without going thro

[PATCH 3.4 089/107] KVM: svm: unconditionally intercept #DB

2016-03-16 Thread lizf
From: Paolo Bonzini 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit cbdb967af3d54993f5814f1cee0ed311a055377d upstream. This is needed to avoid the possibility that the guest triggers an infinite stream of #DB exceptions (CVE-2015-8104).

[PATCH 3.4 084/107] USB: whiteheat: fix potential null-deref at probe

2016-03-16 Thread lizf
From: Johan Hovold 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit cbb4be652d374f64661137756b8f357a1827d6a4 upstream. Fix potential null-pointer dereference at probe by making sure that the required endpoints are present. The whiteheat d

[PATCH 3.4 085/107] KEYS: Fix race between key destruction and finding a keyring by name

2016-03-16 Thread lizf
From: David Howells 3.4.111-rc1 review patch. If anyone has any objections, please let me know. -- commit 94c4554ba07adbdde396748ee7ae01e86cf2d8d7 upstream. There appears to be a race between: (1) key_gc_unused_keys() which frees key->security and then calls keyring_de

[PATCH] tpm: fix tpm_bios_log_setup stub prototype

2016-03-16 Thread Arnd Bergmann
A cleanup patch changed the prototype of the regular tpm_bios_log_setup function, but not that of the stub that is used when the TPM is disabled, causing a harmless build warning: drivers/char/tpm/tpm-chip.c: In function 'tpm1_chip_register': drivers/char/tpm/tpm-chip.c:287:38: error: passing argu

  1   2   3   4   >