Re: ps3: Remove deprecated create_singlethread_workqueue

2017-12-12 Thread Michael Ellerman
On Tue, 2016-08-30 at 17:14:51 UTC, Bhaktipriya Shridhar wrote: > The workqueue "ps3av->wq" queues a single work item &ps3av->work and hence > doesn't require ordering. It is involved in waking up ps3avd to do the > video mode setting and hence it's not being used on a memory reclaim > path. Hence,

[PATCH] On ppc64le we HAVE_RELIABLE_STACKTRACE

2017-12-12 Thread Torsten Duwe
Hi all, The "Power Architecture 64-Bit ELF V2 ABI" says in section 2.3.2.3: [...] There are several rules that must be adhered to in order to ensure reliable and consistent call chain backtracing: * Before a function calls any other function, it shall establish its own stack frame, whose size

Re: [v2,1/4] 44x/fsp2: add fsp2 headers

2017-12-12 Thread Michael Ellerman
On Fri, 2017-12-01 at 15:58:24 UTC, Ivan Mikhaylov wrote: > add cmu, plbX, l2, ddr3/4, crcs register definitions. > add mfcmu, mtcmu functions for indirect access to cmu. > add mtl2, mfl2 same for l2 cache core reg set. > > Signed-off-by: Ivan Mikhaylov Series applied to powerpc next, thanks. h

Re: [PATCH v1 2/2] usb: chipidea: tegra: Select Tegra's PHY in Kconfig

2017-12-12 Thread Dmitry Osipenko
On 12.12.2017 05:54, Peter Chen wrote: > On Mon, Dec 11, 2017 at 04:09:44PM +0300, Dmitry Osipenko wrote: >> On 11.12.2017 13:04, Thierry Reding wrote: >>> On Mon, Dec 11, 2017 at 02:10:00AM +0300, Dmitry Osipenko wrote: UDC driver won't probe without Tegra's PHY, hence select it in the K

Re: [v4,3/3] powerpc/modules: Improve restore_r2() error message

2017-12-12 Thread Michael Ellerman
On Tue, 2017-11-14 at 09:29:10 UTC, Kamalesh Babulal wrote: > From: Josh Poimboeuf > > Print the function address associated with the restore_r2() error to > make it easier to debug the problem. > > Also clarify the wording a bit. > > Before: > > module_64: patch_foo: Expect noop after reloc

Re: [v4.2] powerpc/modules: Don't try to restore r2 after a sibling call

2017-12-12 Thread Michael Ellerman
On Thu, 2017-11-16 at 17:45:37 UTC, Josh Poimboeuf wrote: > > From: Josh Poimboeuf > Subject: [PATCH v4.2] powerpc/modules: Don't try to restore r2 after a > sibling call > > When attempting to load a livepatch module, I got the following error: > > module_64: patch_module: Expect noop after

[PATCH] docs: fix, intel_guc_loader.c has been moved to intel_guc_fw.c

2017-12-12 Thread Markus Heiser
With commit d9e2e0143c the 'GuC-specific firmware loader' doc section was removed from intel_guc_loader.c without a replacement. So lets remove it from the Kernel-doc:: .. kernel-doc:: drivers/gpu/drm/i915/intel_guc_loader.c :doc: GuC-specific firmware loader With commit e8668bbcb0 intel_

Re: [powerpc-next] Fix powerpc64 alignment of .toc section in kernel modules

2017-12-12 Thread Michael Ellerman
On Wed, 2017-12-06 at 19:12:28 UTC, Desnes Augusto Nunes do Rosario wrote: > powerpc64 gcc can generate code that offsets an address, to access part of > an object in memory. If the address is a -mcmodel=medium toc pointer > relative address then code like the following is possible. > > addis r9,

Re: [v4, 1/3] kernel/modules: Add REL24 relocation support of livepatch symbols

2017-12-12 Thread Michael Ellerman
On Tue, 2017-11-14 at 09:29:08 UTC, Kamalesh Babulal wrote: > Livepatch re-uses module loader function apply_relocate_add() to write > relocations, instead of managing them by arch-dependent > klp_write_module_reloc() function. > > apply_relocate_add() doesn't understand livepatch symbols (marked

Re: powerpc/powermac: drop useless call to of_find_node_by_name

2017-12-12 Thread Michael Ellerman
On Tue, 2017-01-31 at 18:01:44 UTC, Dmitry Torokhov wrote: > We are not using result, so this simply results in a leaked refcount. > > Signed-off-by: Dmitry Torokhov Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/df26200299eb05fa7d059cd235847e cheers

Re: [PATCH] x86/mm: Rewrite sme_populate_pgd() in a more sensible way

2017-12-12 Thread Kirill A. Shutemov
On Fri, Dec 08, 2017 at 08:37:43AM -0600, Tom Lendacky wrote: > On 12/4/2017 11:39 AM, Kirill A. Shutemov wrote: > > On Mon, Dec 04, 2017 at 04:34:45PM +, Kirill A. Shutemov wrote: > > > On Mon, Dec 04, 2017 at 04:00:26PM +, Tom Lendacky wrote: > > > > On 12/4/2017 8:57 AM, Kirill A. Shutem

Re: powerpc: Use pr_warn instead of pr_warning

2017-12-12 Thread Michael Ellerman
On Tue, 2016-10-25 at 04:00:08 UTC, Joe Perches wrote: > At some point, pr_warning will be removed so all logging messages use > a consistent _warn style. > > Update arch/powerpc/ > > Miscellanea: > > o Coalesce formats > o Realign arguments > o Use %s, __func__ instead of embedded function name

Re: [1/2] powerpc: make use of for_each_node_by_name() instead of open-coding it

2017-12-12 Thread Michael Ellerman
On Wed, 2017-02-01 at 01:54:37 UTC, Dmitry Torokhov wrote: > Instead of manually coding the loop with of_find_node_by_name(), let's > switch to the standard macro for iterating over nodes with given name. > > Signed-off-by: Dmitry Torokhov Applied to powerpc next, thanks. https://git.kernel.org

Re: powerpc/powermac: fix OF node refcount leak

2017-12-12 Thread Michael Ellerman
On Tue, 2017-01-31 at 17:43:55 UTC, Dmitry Torokhov wrote: > We need to call of_node_put() for device nodes obtained with > of_find_node_by_name(). > > Signed-off-by: Dmitry Torokhov Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/2aaf0a198d7af53a946ad69976d3cc cheers

Re: [PATCH] tuners: tda8290: reduce stack usage with kasan

2017-12-12 Thread Joe Perches
On Tue, 2017-12-12 at 11:24 +0100, Arnd Bergmann wrote: > On Mon, Dec 11, 2017 at 10:17 PM, Michael Ira Krufky > wrote: > > On Mon, Dec 11, 2017 at 2:34 PM, Joe Perches wrote: > > > On Mon, 2017-12-11 at 13:06 +0100, Arnd Bergmann wrote: > > > > With CONFIG_KASAN enabled, we get a relatively larg

Re: [PATCH] regmap: allow to disable all locking mechanisms

2017-12-12 Thread Lars-Peter Clausen
On 12/06/2017 03:26 PM, Bartosz Golaszewski wrote: [...] > + * @disable_locking: This regmap is either protected by external means or > + * is guaranteed not be be accessed from multiple threads. To guarantee this you need to make sure that a regmap instance with this flag set do

Re: [PATCH v3 14/16] phy: Add notify_speed callback

2017-12-12 Thread Kishon Vijay Abraham I
Hi, On Tuesday 21 November 2017 02:53 PM, Manu Gautam wrote: > QCOM USB PHYs can monitor resume/remote-wakeup event in > suspended state. However PHY driver must know current > operational speed of PHY in order to set correct polarity of > wakeup events for detection. E.g. QUSB2 PHY monitors DP/DM

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

2017-12-12 Thread Kalle Valo
Toke Høiland-Jørgensen writes: >> Sorry for the inconvenience, I hadn't realized mt76 went in now. > > Yeah, hadn't expected these streams to cross either. I did ask[1] if everyone are ok that I apply mt76 and I didn't get any comments, I guess I need to make more noise next time when I'm applyi

[PATCH 3/3] x86/mm/encrypt: Rewrite sme_pgtable_calc()

2017-12-12 Thread Kirill A. Shutemov
sme_pgtable_calc() is unnecessary complex. It can be re-written in a more stream-lined way. As a side effect, we would get the code ready to boot-time switching between paging modes. Signed-off-by: Kirill A. Shutemov --- arch/x86/mm/mem_encrypt.c | 42 --

[PATCH 1/3] x86/mm/encrypt: Move sme_populate_pgd*() into separate translation unit

2017-12-12 Thread Kirill A. Shutemov
sme_populate_pgd() and sme_populate_pgd_large() operate on the identity mapping, which means they want virtual addresses to be equal to physical one, without PAGE_OFFSET shift. We also need to avoid paravirtualizaion call there. Getting this done is tricky. We cannot use usual page table helpers.

[PATCH 0/3] x86/mm/encrypt: Simplify pgtable helpers

2017-12-12 Thread Kirill A. Shutemov
This patchset simplifies sme_populate_pgd(), sme_populate_pgd_large() and sme_pgtable_calc() functions. As a side effect, the patchset makes encryption code ready to boot-time switching between paging modes. The patchset is build on top of Tom's "x86: SME: BSP/SME microcode update fix" patchset.

[PATCH 2/3] x86/mm/encrypt: Rewrite sme_populate_pgd() and sme_populate_pgd_large()

2017-12-12 Thread Kirill A. Shutemov
sme_populate_pgd() and sme_populate_pgd_large() operate on the identity mapping, which means they want virtual addresses to be equal to physical one, without PAGE_OFFSET shift. We also need to avoid paravirtualizaion call there. Getting this done is tricky. We cannot use usual page table helpers.

Re: [PATCH] mm, hugetlbfs: include mm.h for vm_operations_struct

2017-12-12 Thread Stephen Rothwell
Hi Michal, On Tue, 12 Dec 2017 08:47:22 +0100 Michal Hocko wrote: > > On Mon 11-12-17 17:21:27, Arnd Bergmann wrote: > > The infiniband umem code causes a build failure in some configurations: > > > > In file included from drivers/infiniband/core/umem_odp.c:41:0: > > include/linux/hugetlb.h: In

Re: powerpc: Use pr_warn instead of pr_warning

2017-12-12 Thread Joe Perches
On Tue, 2017-12-12 at 22:39 +1100, Michael Ellerman wrote: > On Tue, 2016-10-25 at 04:00:08 UTC, Joe Perches wrote: > > At some point, pr_warning will be removed so all logging messages use > > a consistent _warn style. > > > > Update arch/powerpc/ > > > > Miscellanea: > > > > o Coalesce formats

Re: [PATCH v2] misc: mic: Use memdup_user() as a cleanup

2017-12-12 Thread Greg KH
On Tue, Dec 12, 2017 at 11:40:58AM +0100, Vasyl Gomonovych wrote: > Fix coccicheck warning which recommends to use memdup_user(): > > drivers/misc/mic/vop/vop_vringh.c:940:14-21: WARNING opportunity for > memdup_user > drivers/misc/mic/vop/vop_vringh.c:998:8-15: WARNING opportunity for > memdup_

Re: linux-next: build warning after merge of the char-misc tree

2017-12-12 Thread Greg KH
On Tue, Dec 12, 2017 at 02:39:10PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the char-misc tree, today's linux-next build > (x86_64_allmodconfig) produced this warning: > > drivers/misc/mic/vop/vop_vringh.c: In function 'vop_ioctl': > drivers/misc/mic/vop/vop_vringh.c:1001:1: war

Re: [PATCH v3] sched/deadline: runtime overrun signal

2017-12-12 Thread Ingo Molnar
* Claudio Scordino wrote: > From: Juri Lelli > - ~(SCHED_FLAG_RESET_ON_FORK | SCHED_FLAG_RECLAIM)) > + ~(SCHED_FLAG_RESET_ON_FORK | SCHED_FLAG_RECLAIM | > + SCHED_FLAG_DL_OVERRUN)) > + if (dl_runtime_exceeded(dl_se) && > +

Re: [PATCH v3 4/4] regulator: core: Balance coupled regulators voltages

2017-12-12 Thread Mark Brown
On Thu, Dec 07, 2017 at 10:46:15AM +0100, Maciej Purski wrote: > @@ -2447,10 +2482,9 @@ static int _regulator_is_enabled(struct regulator_dev > *rdev) > return rdev->desc->ops->is_enabled(rdev); > } > > -static int _regulator_list_voltage(struct regulator *regulator, > -

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

2017-12-12 Thread Stephen Rothwell
Hi Lee, On Tue, 12 Dec 2017 08:13:10 + Lee Jones wrote: > > Yes, it's in: > > next-20171212 as 51bd7125f740 > > Also, the pull request for it went out over a week ago: > > https://lkml.org/lkml/2017/12/4/142 > > What's missing? Do you still s

Re: [PATCH 2/6] blk-mq: replace timeout synchronization with a RCU and generation based scheme

2017-12-12 Thread Peter Zijlstra
On Sat, Dec 09, 2017 at 11:25:21AM -0800, Tejun Heo wrote: > +static inline void blk_mq_rq_update_state(struct request *rq, > + enum mq_rq_state state) > +{ > + u64 new_val = (rq->gstate & ~MQ_RQ_STATE_MASK) | state; > + > + if (state == MQ_RQ_IN_FLIGHT

Re: stable-rc/linux-4.4.y build: 178 builds: 3 failed, 175 passed, 3 errors, 3 warnings (v4.4.105-33-g60c2da397c68)

2017-12-12 Thread gregkh
On Tue, Dec 12, 2017 at 11:14:36AM +0100, Arnd Bergmann wrote: > > 1 drivers/firmware/efi/esrt.c:445:2: error: implicit declaration of > > function 'memunmap' [-Werror=implicit-function-declaration] > > Backporting commit 89c5a2d34bda ("efi/esrt: Use memunmap() instead of kfree() > to > free the

Re: stable-rc/linux-4.4.y build: 178 builds: 3 failed, 175 passed, 3 errors, 3 warnings (v4.4.105-33-g60c2da397c68)

2017-12-12 Thread gregkh
On Tue, Dec 12, 2017 at 11:14:36AM +0100, Arnd Bergmann wrote: > On Tue, Dec 12, 2017 at 12:38 AM, kernelci.org bot wrote: > > Build Failures Detected: > > > > > > Errors and Warnings Detected: > > > > arm64: gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) > > defconfig 1 error 1 warning > > a

[PATCH v2] ftrace/module: Move ftrace_release_mod to ddebug_cleanup label

2017-12-12 Thread Namit Gupta
ftrace_module_init happen after dynamic_debug_setup, it is desired that cleanup should be called after this label however in current implementation it is called in free module label,ie:even though ftrace in not initialized, from so many fail case ftrace_release_mod() will be called and unnecessary

Re: [PATCH 3/4] ASoC: codecs: tas5720: add TAS5722 specific volume control

2017-12-12 Thread Mark Brown
On Mon, Dec 11, 2017 at 01:01:56PM -0600, Andrew F. Davis wrote: > The TAS5722 supports modifying volume in 0.25dB steps (as opposed to 0.5dB > steps on the TAS5720). Introduce a custom mixer control that allows taking > advantage of this finer output volume granularity. Don't do this, it's just

[PATCH] ASOC: wm8960: Add multiple MCLK frequency support

2017-12-12 Thread Chen.Liu
From: "Chen.Liu" Issue: MCLK=24MHZ,SYSCLOCK=12.288MHZ. When the 'wm8960_set_dai_pll' function is called,the driver will prompted "WM8960 PLL: unsupported N = 4" error message. However,the value of PLLN should be 8 based on the table45( PLL Frequency Examples) of the wm8960 chip manuanl. Rea

Re: [PATCH 4/4] ASoC: codecs: tas5720: add TAS5722 TDM slot width setting support

2017-12-12 Thread Mark Brown
On Mon, Dec 11, 2017 at 01:01:57PM -0600, Andrew F. Davis wrote: > + /* Configure TDM slot width. This is only applicable to TAS5722. */ > + if (tas5720->devtype == TAS5722) { > + ret = snd_soc_update_bits(codec, TAS5722_DIGITAL_CTRL2_REG, > +

Re: [PATCH] docs: fix, intel_guc_loader.c has been moved to intel_guc_fw.c

2017-12-12 Thread Michal Wajdeczko
On Tue, 12 Dec 2017 12:38:37 +0100, Markus Heiser wrote: With commit d9e2e0143c the 'GuC-specific firmware loader' doc section was removed from intel_guc_loader.c without a replacement. So lets remove it from the Kernel-doc:: .. kernel-doc:: drivers/gpu/drm/i915/intel_guc_loader.c :d

[PATCH v4 0/4] aslr: add parameter immovable_mem=nn[KMG]@ss[KMG] to make memory hotplug work well with kaslr

2017-12-12 Thread Chao Fan
Here is a problem: Here is a machine with several NUMA nodes and some of them are hot-pluggable. It's not good for kernel to be extracted in the memory region of movable node. But in current code, I print the address chosen by kaslr and found it may be placed in movable node sometimes. To solve th

Re: [PATCH v1] clk: tegra20: Add 216 MHz entry for PLL_X

2017-12-12 Thread Dmitry Osipenko
On 12.12.2017 13:02, Peter De Schrijver wrote: > On Mon, Dec 11, 2017 at 09:50:09PM +0300, Dmitry Osipenko wrote: >> The cpufreq driver uses 216 MHz as the lowest CPU clock frequency, but >> clock driver doesn't provide that rate, so the requested clock is rounded >> up to 312 MHz. Let's add entry

[PATCH v4 2/4] kaslr: calculate the memory region in immovable node

2017-12-12 Thread Chao Fan
kaslr: calculate the memory region in immovable node If there is no immovable memory region specified, use region directely. There are several conditons: 1. CONFIG_MEMORY_HOTPLUG is not specified to y. 2. immovable_mem= is not specified. Otherwise, calculate the intersecting between memmap entry

[PATCH v4 3/4] kaslr: disable memory mirror feature when movable_node

2017-12-12 Thread Chao Fan
In kernel code, if movable_node specified, it will skip the mirror feature. So we should also skip mirror feature in kaslr. Cc: linux-...@vger.kernel.org Cc: Jonathan Corbet Cc: Randy Dunlap Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c | 7 +++ 1 file changed, 7 insertions(

[PATCH v4 4/4] document: change the document for immovable_mem

2017-12-12 Thread Chao Fan
Add the document for the change of new parameter immovable_mem=nn[KMG][@ss[KMG]]. Signed-off-by: Chao Fan --- Documentation/admin-guide/kernel-parameters.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-gui

[PATCH v4 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory

2017-12-12 Thread Chao Fan
In current code, kaslr may choose the memory region in movable nodes to extract kernel, which will make the nodes can't be hot-removed. To solve it, we can specify the memory region in immovable node. Create immovable_mem to store the regions in immovable_mem, where should be chosen by kaslr. Also

[PATCH v4] ARM: dts: exynos: Add nodes for True Random Number Generator

2017-12-12 Thread Łukasz Stelmach
Add nodes for the True Random Number Generator found in Samsung Exynos 5250+ SoCs. Signed-off-by: Łukasz Stelmach --- Changes since v3: - Rebased accroding to Krzysztof Kozłowski's request arch/arm/boot/dts/exynos5.dtsi| 5 + arch/arm/boot/dts/exynos5250.dtsi | 5 + arch/arm/boot/d

[PATCH] misc: kgdbts: Display progress of asynchronous tests

2017-12-12 Thread Daniel Thompson
kgdbts includes a couple of different "thrashing" style tests that may have long runtimes (especially on simulated platforms) and which run asynchronously. This is uncomfortable for interactive use and makes setting timeouts tricky for automatic use. Fix by providing a optional means to show progr

Re: [PATCH] docs: fix, intel_guc_loader.c has been moved to intel_guc_fw.c

2017-12-12 Thread Markus Heiser
> Am 12.12.2017 um 13:05 schrieb Michal Wajdeczko : > > On Tue, 12 Dec 2017 12:38:37 +0100, Markus Heiser > wrote: > >> With commit d9e2e0143c the 'GuC-specific firmware loader' doc >> section was removed from intel_guc_loader.c without a >> replacement. So lets remove it from the Kernel-doc:

Re: [PATCH] On ppc64le we HAVE_RELIABLE_STACKTRACE

2017-12-12 Thread Miroslav Benes
On Tue, 12 Dec 2017, Torsten Duwe wrote: > Hi all, > > The "Power Architecture 64-Bit ELF V2 ABI" says in section 2.3.2.3: > > [...] There are several rules that must be adhered to in order to ensure > reliable and consistent call chain backtracing: > > * Before a function calls any other funct

Re: [PATCH v4 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory

2017-12-12 Thread Chao Fan
On Tue, Dec 12, 2017 at 08:07:02PM +0800, Chao Fan wrote: >In current code, kaslr may choose the memory region in movable >nodes to extract kernel, which will make the nodes can't be hot-removed. >To solve it, we can specify the memory region in immovable node. >Create immovable_mem to store the re

[PATCH v19 4/7] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-12-12 Thread Wei Wang
Add a new feature, VIRTIO_BALLOON_F_SG, which enables the transfer of balloon (i.e. inflated/deflated) pages using scatter-gather lists to the host. The implementation of the previous virtio-balloon is not very efficient, because the balloon pages are transferred to the host by one array each time

[PATCH v19 6/7] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_VQ

2017-12-12 Thread Wei Wang
Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_VQ feature indicates the support of reporting hints of guest free pages to host via virtio-balloon. Host requests the guest to report free pages by sending a new cmd id to the guest via the free_page_report_cmd_id configuration register. When the gues

[PATCH v19 7/7] virtio-balloon: don't report free pages when page poisoning is enabled

2017-12-12 Thread Wei Wang
The guest free pages should not be discarded by the live migration thread when page poisoning is enabled with PAGE_POISONING_NO_SANITY=n, because skipping the transfer of such poisoned free pages will trigger false positive when new pages are allocated and checked on the destination. This patch add

[PATCH v19 5/7] mm: support reporting free page blocks

2017-12-12 Thread Wei Wang
This patch adds support to walk through the free page blocks in the system and report them via a callback function. Some page blocks may leave the free list after zone->lock is released, so it is the caller's responsibility to either detect or prevent the use of such pages. One use example of this

[PATCH v19 1/7] xbitmap: Introduce xbitmap

2017-12-12 Thread Wei Wang
From: Matthew Wilcox The eXtensible Bitmap is a sparse bitmap representation which is efficient for set bits which tend to cluster. It supports up to 'unsigned long' worth of bits, and this commit adds the bare bones -- xb_set_bit(), xb_clear_bit() and xb_test_bit(). Signed-off-by: Wei Wang Cc

[PATCH v19 3/7] xbitmap: add more operations

2017-12-12 Thread Wei Wang
This patch adds support to find next 1 or 0 bit in a xbmitmap range and clear a range of bits. More possible optimizations to add in the future: 1) xb_set_bit_range: set a range of bits. 2) when searching a bit, if the bit is not found in the slot, move on to the next slot directly. 3) add tags to

[PATCH v19 2/7] xbitmap: potential improvement

2017-12-12 Thread Wei Wang
This patch made some changes to the original xbitmap implementation from the linux-dax tree: - remove xb_fill() and xb_zero() from xbitmap.h since they are not implemented; - xb_test_bit: changed "ebit > BITS_PER_LONG" to "ebit >= BITS_PER_LONG", because bit 64 beyonds the "unsigned long" exc

[PATCH v19 0/7] Virtio-balloon Enhancement

2017-12-12 Thread Wei Wang
This patch series enhances the existing virtio-balloon with the following new features: 1) fast ballooning: transfer ballooned pages between the guest and host in chunks using sgs, instead of one array each time; and 2) free page block reporting: a new virtqueue to report guest free pages to the ho

Re: [PATCH] KVM/Emulate: Mask linear address with actual address width in order to avoid conflict with UNMAPPED_GVA

2017-12-12 Thread Paolo Bonzini
On 12/12/2017 00:23, Lan Tianyu wrote: > > Reported by syzkaller: > WARNING: CPU: 0 PID: 27962 at arch/x86/kvm/emulate.c:5631 > x86_emulate_insn+0x557/0x15f0 [kvm] > Modules linked in: kvm_intel kvm [last unloaded: kvm] > CPU: 0 PID: 27962 Comm: syz-executor Tainted: GB W

Re: [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver

2017-12-12 Thread Hans Verkuil
Hi Tim, Sorry for the delay, I needed to find some time to think about this. On 11/16/17 05:30, Rob Herring wrote: > On Wed, Nov 15, 2017 at 10:31:14AM -0800, Tim Harvey wrote: >> On Wed, Nov 15, 2017 at 7:52 AM, Rob Herring wrote: >>> On Thu, Nov 09, 2017 at 10:45:34AM -0800, Tim Harvey wrote:

Re: [PATCH] regmap: allow to disable all locking mechanisms

2017-12-12 Thread Mark Brown
On Tue, Dec 12, 2017 at 12:42:47PM +0100, Lars-Peter Clausen wrote: > On 12/06/2017 03:26 PM, Bartosz Golaszewski wrote: > > + * @disable_locking: This regmap is either protected by external means or > > + * is guaranteed not be be accessed from multiple > > threads. > To guara

Re: [PATCH v4 2/4] kaslr: calculate the memory region in immovable node

2017-12-12 Thread Chao Fan
On Tue, Dec 12, 2017 at 08:07:03PM +0800, Chao Fan wrote: >kaslr: calculate the memory region in immovable node > >If there is no immovable memory region specified, use region directely. >There are several conditons: >1. CONFIG_MEMORY_HOTPLUG is not specified to y. >2. immovable_mem= is not specifi

Re: [PATCH v18 10/10] virtio-balloon: don't report free pages when page poisoning is enabled

2017-12-12 Thread Wei Wang
On 12/11/2017 09:24 PM, Michael S. Tsirkin wrote: On Mon, Dec 11, 2017 at 02:38:45PM +0800, Wei Wang wrote: On 12/01/2017 11:49 PM, Michael S. Tsirkin wrote: On Wed, Nov 29, 2017 at 09:55:26PM +0800, Wei Wang wrote: The guest free pages should not be discarded by the live migration thread when

[PATCH 0/2] target/iscsi/cxgbit: Adjustments for seven function implementations

2017-12-12 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 12 Dec 2017 13:12:11 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in two functions Combine substrings for 11 messages drivers/target/iscsi/cx

Re: [PATCH] regmap: allow to disable all locking mechanisms

2017-12-12 Thread Bartosz Golaszewski
2017-12-12 13:18 GMT+01:00 Mark Brown : > On Tue, Dec 12, 2017 at 12:42:47PM +0100, Lars-Peter Clausen wrote: >> On 12/06/2017 03:26 PM, Bartosz Golaszewski wrote: > >> > + * @disable_locking: This regmap is either protected by external means or >> > + * is guaranteed not be be ac

[PATCH 1/2] target: cxgbit: Delete an error message for a failed memory allocation in two functions

2017-12-12 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 12 Dec 2017 11:34:51 +0100 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/target/iscsi/cxgbit/cxgbit_target.c | 8 ++-- 1 file cha

[PATCH 2/2] target: cxgbit: Combine substrings for 11 messages

2017-12-12 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 12 Dec 2017 12:57:47 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/target/iscsi/cxgbit/cxgbit_target.c

Re: [PATCH v4 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory

2017-12-12 Thread Chao Fan
On Tue, Dec 12, 2017 at 08:07:02PM +0800, Chao Fan wrote: >In current code, kaslr may choose the memory region in movable >nodes to extract kernel, which will make the nodes can't be hot-removed. >To solve it, we can specify the memory region in immovable node. >Create immovable_mem to store the re

[PATCH] powerpc/perf: Dereference bhrb entries safely

2017-12-12 Thread Ravi Bangoria
It may very well happen that branch instructions recorded by bhrb entries already get unmapped before they get processed by the kernel. Hence, trying to dereference such memory location will endup in a crash. Ex, Unable to handle kernel paging request for data at address 0xc00819c41764

Re: [PATCH v3 1/3] sched/pelt: Move pelt related code in a dedicated file

2017-12-12 Thread Quentin Perret
On Tuesday 12 Dec 2017 at 12:21:39 (+0100), Vincent Guittot wrote: > Hi Quentin, > > On 11 December 2017 at 15:08, Quentin Perret wrote: > > Hi Vincent, > > > > Although I agree that moving the PELT code in a dedicated file is > > probably the cleanest way to achieve what you want, I was wonderin

[BUG] vme_ca91cx42: a possible sleep-in-atomic bug in ca91cx42_master_set

2017-12-12 Thread Jia-Ju Bai
According to drivers/vme/bridges/vme_ca91cx42.c, the driver may sleep under a spinlock. The function call path is: ca91cx42_master_set (acquire the spinlock) ca91cx42_alloc_resource ioremap_nocache --> may sleep I do not find a good way to fix it, so I only report. This possible bug is fou

[PATCH] perf: Allocate context task_ctx_data for child event

2017-12-12 Thread Jiri Olsa
Currently we use perf_event_context::task_ctx_data to save and restore the LBR status when the task is scheduled out and in. We don't allocate it for child contexts, which results in shorter task's LBR stack, because we don't save the history from previous run and start over every time we schedule

Re: [PATCH v4 2/2] clocksource: sprd: Add timer driver for Spreadtrum SC9860 platform

2017-12-12 Thread Philippe Ombredanne
Baolin, On Tue, Dec 12, 2017 at 12:28 PM, Baolin Wang wrote: > The Spreadtrum SC9860 platform will use the architected timers as local > clock events, but we also need a broadcast timer device to wakeup the > cpus when the cpus are in sleep mode. > > The Spreadtrum timer can support 32bit or 64bi

Re: [PATCH] tuners: tda8290: reduce stack usage with kasan

2017-12-12 Thread Mauro Carvalho Chehab
Em Tue, 12 Dec 2017 03:42:32 -0800 Joe Perches escreveu: > > I actually thought about marking them 'const' here before sending > > (without noticing the changelog text) and then ran into what must > > have led me to drop the 'const' originally: tuner_i2c_xfer_send() > > takes a non-const pointer.

[PATCH 4.14 001/164] usb: gadget: udc: renesas_usb3: fix number of the pipes

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit a58204ab91ad8cae4d8474aa0ba5d1fc504860c9 upstream. This controller on R-Car Gen3 has 6 pipes that included PIPE 0 for control actually. But, the datasheet has error in

[PATCH 4.14 012/164] can: kvaser_usb: Fix comparison bug in kvaser_usb_read_bulk_callback()

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jimmy Assarsson commit e84f44eb5523401faeb9cc1c97895b68e3cfb78d upstream. The conditon in the while-loop becomes true when actual_length is less than 2 (MSG_HEADER_LEN). In best case we end up

[PATCH 4.14 016/164] can: ems_usb: cancel urb on -EPIPE and -EPROTO

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Martin Kelly commit bd352e1adfe0d02d3ea7c8e3fb19183dc317e679 upstream. In mcba_usb, we have observed that when you unplug the device, the driver will endlessly resubmit failing URBs, which can

[PATCH 4.14 021/164] iio: stm32: fix adc/trigger link error

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 6d745ee8b5e81f3a33791e3c854fbbfd6f3e585e upstream. The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to en

[PATCH 4.14 014/164] can: kvaser_usb: cancel urb on -EPIPE and -EPROTO

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Martin Kelly commit 6aa8d5945502baf4687d80de59b7ac865e9e666b upstream. In mcba_usb, we have observed that when you unplug the device, the driver will endlessly resubmit failing URBs, which can

[PATCH 4.14 022/164] iio: health: max30102: Temperature should be in milli Celsius

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Peter Meerwald-Stadler commit ad44a9f804c1591ba2a2ec0ac8d916a515d2790c upstream. As per ABI temperature should be in milli Celsius after scaling, not Celsius Note on stable cc. This driver i

[PATCH 4.14 026/164] iio: adc: meson-saradc: Meson8 and Meson8b do not have REG11 and REG13

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Martin Blumenstingl commit 96748823c483c6eed8321f78bd128dd33f09c55c upstream. The Meson GXBB and newer SoCs have a few more registers than the older Meson8 and Meson8b SoCs. Use a separate reg

[PATCH 4.14 009/164] can: flexcan: fix VF610 state transition issue

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Marc Kleine-Budde commit 29c64b17a0bc72232acc45e9533221d88a262efb upstream. Enable FLEXCAN_QUIRK_BROKEN_PERR_STATE for VF610 to report correct state transitions. Tested-by: Mirza Krak Signed

[PATCH 4.14 039/164] efi/esrt: Use memunmap() instead of kfree() to free the remapping

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Pan Bian commit 89c5a2d34bda58319e3075e8e7dd727ea25a435c upstream. The remapping result of memremap() should be freed with memunmap(), not kfree(). Signed-off-by: Pan Bian Signed-off-by: Ard

[PATCH 4.14 045/164] X.509: fix comparisons of ->pkey_algo

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 54c1fb39fe0495f846539ab765925b008f86801c upstream. ->pkey_algo used to be an enum, but was changed to a string by commit 4e8ae72a75aa ("X.509: Make algo identifiers text in

[PATCH 4.14 046/164] x86/idt: Load idt early in start_secondary

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Chunyu Hu commit 55d2d0ad2fb4325f615d1950486fbc5e6fba1769 upstream. On a secondary, idt is first loaded in cpu_init() with load_current_idt(), i.e. no exceptions can be handled before that poi

[PATCH 4.14 050/164] btrfs: handle errors while updating refcounts in update_ref_for_cow

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Mahoney commit 692826b2738101549f032a761a9191636e83be4e upstream. Since commit fb235dc06fa (btrfs: qgroup: Move half of the qgroup accounting time out of commit trans) the assumption that

[PATCH 4.14 055/164] ALSA: usb-audio: Add check return value for usb_string()

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jaejoong Kim commit 89b89d121ffcf8d9546633b98ded9d18b8f75891 upstream. snd_usb_copy_string_desc() returns zero if usb_string() fails. In case of failure, we need to check the snd_usb_copy_stri

[PATCH 4.14 062/164] Revert "powerpc: Do not call ppc_md.panic in fadump panic notifier"

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: David Gibson commit ab9dbf771ff9b6b7e814e759213ed01d7f0de320 upstream. This reverts commit a3b2cb30f252b21a6f962e0dd107c8b897ca65e4. That commit tried to fix problems with panic on powerpc in

[PATCH 4.14 060/164] s390: fix compat system call table

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit e779498df587dd2189b30fe5b9245aefab870eb8 upstream. When wiring up the socket system calls the compat entries were incorrectly set. Not all of them point to the correspond

[PATCH 4.14 052/164] ALSA: pcm: prevent UAF in snd_pcm_info

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Robb Glasser commit 362bca57f5d78220f8b5907b875961af9436e229 upstream. When the device descriptor is closed, the `substream->runtime` pointer is freed. But another thread may be in the ioctl h

[PATCH 4.14 064/164] iwlwifi: mvm: mark MIC stripped MPDUs

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sara Sharon commit bf19037074e770aad74b3b90f37b8b98db3f3748 upstream. When RADA is active, the hardware decrypts the packets and strips off the MIC as it is useless after decryption. Indicate

[PATCH 4.14 057/164] smp/hotplug: Move step CPUHP_AP_SMPCFD_DYING to the correct place

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Lai Jiangshan commit 46febd37f9c758b05cd25feae8512f22584742fe upstream. Commit 31487f8328f2 ("smp/cfd: Convert core to hotplug state machine") accidently put this step on the wrong place. The

[PATCH 4.14 032/164] firmware: vpd: Tie firmware kobject to device lifetime

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit e4b28b3c3a405b251fa25db58abe1512814a680a upstream. It doesn't make sense to have /sys/firmware/vpd if the device is not instantiated, so tie its lifetime to the device. F

[PATCH 4.14 034/164] isa: Prevent NULL dereference in isa_bus driver callbacks

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: William Breathitt Gray commit 5a244727f428a06634f22bb890e78024ab0c89f3 upstream. The isa_driver structure for an isa_bus device is stored in the device platform_data member of the respective d

[PATCH 4.14 067/164] iwlwifi: add new cards for 9260 and 22000 series

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Ihab Zhaika commit 567deca8e72df3ceb6c07c63f8541a4928f64d3b upstream. add 1 PCI ID for 9260 series and 1 for 22000 series. Signed-off-by: Ihab Zhaika Signed-off-by: Luca Coelho Signed-off-b

[PATCH] vme: Fix a possible sleep-in-atomic bug in vme_tsi148

2017-12-12 Thread Jia-Ju Bai
The driver may sleep under a spinlock. The function call path is: tsi148_master_write \ tsi148_master_read (acquire the spinlock) vme_register_error_handler kmalloc(GFP_KERNEL) --> may sleep To fix it, GFP_KERNEL is replaced with GFP_ATOMIC. This bug is found by my static analysis tool(DSAC

[PATCH 4.14 090/164] Revert "ARM: dts: imx53: add srtc node"

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Fabio Estevam commit e501506d3ea00eefa64463ebd9e5c13ee70990bd upstream. This reverts commit 5b725054147deaf966b3919e10a86c6bfe946a18. The rtc block on i.MX53 is a completely different hardwar

[PATCH 4.14 089/164] arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit d96cc49bff5a7735576cc6f6f111f875d101cec8 upstream. enter_lazy_tlb is called when a kernel thread rides on the back of another mm, due to a context switch or an explicit call

[PATCH 4.14 088/164] arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 0adbdfde8cfc9415aeed2a4955d2d17b3bd9bf13 upstream. update_saved_ttbr0 mandates that mm->pgd is not swapper, since swapper contains kernel mappings and should never be instal

[PATCH 4.14 085/164] KVM: arm/arm64: vgic: Preserve the revious read from the pending table

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit ddb4b0102cb9cdd2398d98b3e1e024e08a2f4239 upstream. The current pending table parsing code assumes that we keep the previous read of the pending bits, but keep that variable

[PATCH 4.14 095/164] IB/core: Avoid unnecessary return value check

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Parav Pandit commit 2e4c85c6edc80fa532b2c7e1eb3597ef4d4bbb8f upstream. Since there is nothing done with non zero return value, such check is avoided. Signed-off-by: Parav Pandit Reviewed-by:

[PATCH 4.14 079/164] media: rc: partial revert of "media: rc: per-protocol repeat period"

2017-12-12 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Sean Young commit 67f0f15ad5c47490e19f2526f8f9cea97c5ce1a6 upstream. Since commit d57ea877af38 ("media: rc: per-protocol repeat period"), most IR protocols have a lower keyup timeout. This cau

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