Re: [RFC PATCH 0/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Axel Rasmussen
On Fri, Sep 25, 2020 at 12:48 PM Tom Zanussi wrote: > > Hi Axel, > > On Fri, 2020-09-25 at 12:08 -0700, Axel Rasmussen wrote: > > Hi Steven and Tom, > > > > In this thread: https://lkml.org/lkml/2020/9/17/1015 we discussed how > > to plumb > > dynamic strings into synthetic events. Tom, you

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Roman Gushchin
On Fri, Sep 25, 2020 at 12:19:02PM -0700, Shakeel Butt wrote: > On Fri, Sep 25, 2020 at 10:58 AM Shakeel Butt > wrote: > > > [snip] > > > > I don't think you can ignore the flushing. The __free_once() in > > ___cache_free() assumes there is a space available. > > > > BTW do_drain() also have the

Re: [PATCH 2/2] venus: venc: fix handlig of S_SELECTION and G_SELECTION

2020-09-25 Thread Tomasz Figa
Hi Dikshita, Stanimir, On Thu, Sep 24, 2020 at 7:31 PM Dikshita Agarwal wrote: > > From: Stanimir Varbanov > > - return correct width and height for G_SELECTION > - if requested rectangle wxh doesn't match with capture port wxh > adjust the rectangle to supported wxh. > > Signed-off-by:

Re: [PATCH v8 6/7] scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map()

2020-09-25 Thread Martin K. Petersen
Coly, > In iscsci driver, iscsi_tcp_segment_map() uses the following code to > check whether the page should or not be handled by sendpage: > if (!recv && page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg))) > > The "page_count(sg_page(sg)) >= 1 && !PageSlab(sg_page(sg)" part is to >

Re: [PATCH 1/2] ext4/xfs: add page refcount helper

2020-09-25 Thread Dan Williams
On Fri, Sep 25, 2020 at 1:45 PM Ralph Campbell wrote: > > There are several places where ZONE_DEVICE struct pages assume a reference > count == 1 means the page is idle and free. Instead of open coding this, > add a helper function to hide this detail. > > Signed-off-by: Ralph Campbell > --- >

Re: [PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Joao Martins
Hey Dan, On 9/25/20 8:11 PM, Dan Williams wrote: > Changes since v4 [1]: > - Rebased on > device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch > in -mm [2]. I.e. patches that did not need fixups from v4 are not > included. > > - Folded all fixes > Hmm, perhaps you

Re: [RFC V2 0/9] x86/mmu:Introduce parallel memory virtualization to boost performance

2020-09-25 Thread Paolo Bonzini
On 25/09/20 19:30, Ben Gardon wrote: > Oh, thank you for explaining that. I didn't realize the goal here was > to improve LM performance. I was under the impression that this was to > give VMs a better experience on startup for fast scaling or something. > In your testing with live migration how

[PATCH] sched,fair: use list_for_each_entry() in print_cfs_stats()

2020-09-25 Thread Hui Su
Macro for_each_leaf_cfs_rq_safe() use list_for_each_entry_safe(), which can against removal of list entry, but we only print the cfs_rq data and won't remove the list entry in print_cfs_stats(). Thus, add macro for_each_leaf_cfs_rq() based on list_for_each_entry(), and use for_each_leaf_cfs_rq()

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 10:37:01PM +0200, Ard Biesheuvel wrote: > On Fri, 25 Sep 2020 at 22:28, Kees Cook wrote: > > > > On Fri, Sep 25, 2020 at 08:33:59PM +0530, Pintu Agarwal wrote: > > > This is regarding the KASLR feature support on ARM for the kernel > > > version 4.9 and 4.14. > > > > > >

[PATCH v5 00/17] device-dax: support sub-dividing soft-reserved ranges

2020-09-25 Thread Dan Williams
Changes since v4 [1]: - Rebased on device-dax-move-instance-creation-parameters-to-struct-dev_dax_data.patch in -mm [2]. I.e. patches that did not need fixups from v4 are not included. - Folded all fixes - Replaced "device-dax: kill dax_kmem_res" with: device-dax/kmem: introduce

[PATCH v5 17/17] device-dax: add a range mapping allocation attribute

2020-09-25 Thread Dan Williams
From: Joao Martins Add a sysfs attribute which denotes a range from the dax region to be allocated. It's an write only @mapping sysfs attribute in the format of '-' to allocate a range. @start and @end use hexadecimal values and the @pgoff is implicitly ordered wrt to previous writes to

Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect()

2020-09-25 Thread Dave Hansen
On 9/25/20 12:43 PM, Sean Christopherson wrote: >> That means that the intent argument (SGX_PROT_*) is currently unused. > No, the intent argument is used (eventually) by SGX's ->mprotect() > implementation, i.e. sgx_mprotect() enforces that the actual protections are a > subset of the

[PATCH v5 02/17] device-dax/kmem: introduce dax_kmem_range()

2020-09-25 Thread Dan Williams
Towards removing the mode specific @dax_kmem_res attribute from the generic 'struct dev_dax', and preparing for multi-range support, teach the driver to calculate the hotplug range from the device range. The hotplug range is the trivially calculated memory-block-size aligned version of the device

[PATCH v5 11/17] mm/memremap_pages: support multiple ranges per invocation

2020-09-25 Thread Dan Williams
In support of device-dax growing the ability to front physically dis-contiguous ranges of memory, update devm_memremap_pages() to track multiple ranges with a single reference counter and devm instance. Convert all [devm_]memremap_pages() users to specify the number of ranges they are mapping in

[PATCH v5 10/17] mm/memremap_pages: convert to 'struct range'

2020-09-25 Thread Dan Williams
The 'struct resource' in 'struct dev_pagemap' is only used for holding resource span information. The other fields, 'name', 'flags', 'desc', 'parent', 'sibling', and 'child' are all unused wasted space. This is in preparation for introducing a multi-range extension of devm_memremap_pages(). The

[PATCH v5 07/17] device-dax: introduce 'seed' devices

2020-09-25 Thread Dan Williams
Add a seed device concept for dynamic dax regions to be able to split the region amongst multiple sub-instances. The seed device, similar to libnvdimm seed devices, is a device that starts with zero capacity allocated and unbound to a driver. In contrast to libnvdimm seed devices explicit

[RFC PATCH v2 0/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-25 Thread Ralph Campbell
Matthew Wilcox, Ira Weiny, and others have complained that ZONE_DEVICE struct page reference counting is ugly because they are "free" when the reference count is one instead of zero. This leads to explicit checks for ZONE_DEVICE pages in places like put_page(), GUP, THP splitting, and page

[PATCH v5 13/17] device-dax: introduce 'mapping' devices

2020-09-25 Thread Dan Williams
In support of interrogating the physical address layout of a device with dis-contiguous ranges, introduce a sysfs directory with 'start', 'end', and 'page_offset' attributes. The alternative is trying to parse /proc/iomem, and that file will not reflect the extent layout until the device is

[PATCH 2/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-25 Thread Ralph Campbell
ZONE_DEVICE struct pages have an extra reference count that complicates the code for put_page() and several places in the kernel that need to check the reference count to see that a page is not being used (gup, compaction, migration, etc.). Clean up the code so the reference count doesn't need to

Re: [RFC] openprom: Fix 'opiocnextprop'; ensure integer conversions; use string size

2020-09-25 Thread David Miller
From: Michael Witten Date: Fri, 25 Sep 2020 20:20:20 - > Are we trying to improve the code or not? Do you want me to apply your patch or not? I want to see the most minimal code change necessary to fix the bug, so we can easily backport it to -stable releases etc. If you want to perform a

Re: [PATCH 0/4] KVM: x86/mmu: Page fault handling cleanups

2020-09-25 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 10:38:02PM +0200, Paolo Bonzini wrote: > On 24/09/20 00:04, Sean Christopherson wrote: > > Cleanups for page fault handling that were encountered during early TDX > > enabling, but are worthwhile on their own. Specifically, patch 4 fixes an > > issue where KVM doesn't

[PATCH 1/2] ext4/xfs: add page refcount helper

2020-09-25 Thread Ralph Campbell
There are several places where ZONE_DEVICE struct pages assume a reference count == 1 means the page is idle and free. Instead of open coding this, add a helper function to hide this detail. Signed-off-by: Ralph Campbell --- fs/dax.c| 8 fs/ext4/inode.c | 2 +-

[PATCH v5 08/17] drivers/base: make device_find_child_by_name() compatible with sysfs inputs

2020-09-25 Thread Dan Williams
Use sysfs_streq() in device_find_child_by_name() to allow it to use a sysfs input string that might contain a trailing newline. The other "device by name" interfaces, {bus,driver,class}_find_device_by_name(), already account for sysfs strings. Link:

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Ian Rogers
On Fri, Sep 25, 2020 at 11:36 AM Andi Kleen wrote: > > > Thanks, it now works, but then... You forgot to add the Cc: entries for > > all the people in your actual e-mail Cc: list, and also the > > Reviewed-by: from Andy, I had to do it all manually, so when I applied > > your attachments with

[PATCH v5 01/17] device-dax: make pgmap optional for instance creation

2020-09-25 Thread Dan Williams
The passed in dev_pagemap is only required in the pmem case as the libnvdimm core may have reserved a vmem_altmap for dev_memremap_pages() to place the memmap in pmem directly. In the hmem case there is no agent reserving an altmap so it can all be handled by a core internal default. Pass the

[PATCH] x86/dumpstack: Fix misleading instruction pointer error message

2020-09-25 Thread Mark Mossberg
Unconditionally printing "Bad RIP value" if copy_code() fails can be misleading for userspace pointers, since copy_code() can fail if the instruction pointer is valid, but the code is paged out. This is because copy_code() calls copy_from_user_nmi() for userspace pointers, which disables page

Re: [PATCH 1/2] ASoC: cs47l15: Fix EPOUT->HPOUT1 Mono Mux routing

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 10:18:29 +0100, Richard Fitzgerald wrote: > EPOUT is always mono so should have a permanent routing through the > HPOUT1 Mono Mux. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: cs47l15: Fix EPOUT->HPOUT1 Mono

Re: [PATCH 0/2] ASoC: qdsp6: fix some warnings when build without CONFIG_OF

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 09:49:23 +0100, Srinivas Kandagatla wrote: > Here are fixes for two warnings types discovered while building qdsp6 drivers > without CONFIG_OF and with W=1 > > One of them was reported by Intel kernel test robot on q6afe-clocks patch, > which > equally applies to rest of the

Re: [PATCH] fsl: imx-audmix : Use devm_kcalloc() instead of devm_kzalloc()

2020-09-25 Thread Mark Brown
On Mon, 21 Sep 2020 01:59:18 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". Applied to

Re: [PATCH v2] spi: spi-mtk-nor: fix timeout calculation overflow

2020-09-25 Thread Mark Brown
On Tue, 22 Sep 2020 19:49:02 +0800, Chuanhong Guo wrote: > CLK_TO_US macro is used to calculate potential transfer time for various > timeout handling. However it overflows on transfer bigger than 512 bytes > because it first did (len * 8 * 100). > This controller typically operates at 45MHz.

Re: [PATCH] Asoc: qcom: lpass-cpu: Enable MI2S BCLK and LRCLK together

2020-09-25 Thread Mark Brown
On Fri, 18 Sep 2020 22:24:33 +0530, Srinivasa Rao Mandadapu wrote: > Update lpass-cpu.c to enable I2S BCLK and LRCLK together. > Remove BCLK enable in lpass_cpu_daiops_startup and > add in lpass_cpu_daiops_trigger API. Applied to

Re: [PATCH] dt-bindings: tas2770: Mark ti,asi-format to deprecated

2020-09-25 Thread Mark Brown
On Thu, 24 Sep 2020 09:26:41 -0500, Dan Murphy wrote: > Mark the property ti,asi-format to deprecated as it is no longer > supported. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] dt-bindings: tas2770: Mark ti,asi-format to deprecated

Re: [PATCH v2 0/2] ASoC: qdsp6: fix some warnings when build without CONFIG_OF

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 17:35:50 +0100, Srinivas Kandagatla wrote: > Here are fixes for two warnings types discovered while building qdsp6 drivers > without CONFIG_OF and with W=1 > > One of them was reported by Intel kernel test robot on q6afe-clocks patch, > which > equally applies to rest of the

Re: [PATCH] fsl: imx-audmix : Replace seq_printf with seq_puts

2020-09-25 Thread Mark Brown
On Wed, 16 Sep 2020 06:14:20 +, Xu Wang wrote: > A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function "devm_kcalloc". Applied to

Re: [PATCH 1/3] ASoC: cs4234: Add dtschema binding document

2020-09-25 Thread Mark Brown
On Fri, 25 Sep 2020 11:59:06 +0100, Richard Fitzgerald wrote: > Document the bindings for the CS4234 ASoC codec driver. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] MAINTAINERS: Update Cirrus Logic Codecs maintainers commit:

Re: [PATCH 0/2] Enable runtime PM for SOF device

2020-09-25 Thread Mark Brown
On Thu, 24 Sep 2020 18:15:16 +0300, Daniel Baluta wrote: > This enables runtime PM for SOF device. Next patchseries will > provide PM suspend/resume handlers for i.MX8 specific devices. > > Daniel Baluta (2): > ASoC: SOF: Activate runtime PM with SOF OF device > ASoC: SOF: Add

Re: [PATCH] ASoC: fsl_sai: Instantiate snd_soc_dai_driver

2020-09-25 Thread Mark Brown
On Fri, 18 Sep 2020 18:26:00 +0800, Shengjiu Wang wrote: > Instantiate snd_soc_dai_driver for independent symmetric control. > Otherwise the symmetric setting may be overwritten by other > instance. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks!

Re: [RFC PATCH v2] tools/x86: add kcpuid tool to show raw CPU features

2020-09-25 Thread Arvind Sankar
On Fri, Sep 25, 2020 at 10:17:07PM +0200, Borislav Petkov wrote: > On Fri, Sep 25, 2020 at 03:48:04PM -0400, Arvind Sankar wrote: > > Ok. Another suggestion: while designing the format for the cpuid.txt > > file, would it be possible to include enough information for > > cpufeatures.h to be

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 25, 2020 at 11:36:15AM -0700, Andi Kleen escreveu: > > Thanks, it now works, but then... You forgot to add the Cc: entries for > > all the people in your actual e-mail Cc: list, and also the > > Reviewed-by: from Andy, I had to do it all manually, so when I applied > > your attachments

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-25 Thread Shakeel Butt
On Fri, Sep 25, 2020 at 10:58 AM Shakeel Butt wrote: > [snip] > > I don't think you can ignore the flushing. The __free_once() in > ___cache_free() assumes there is a space available. > > BTW do_drain() also have the same issue. > > Why not move slabs_destroy() after we update ac->avail and

Re: [PATCH v2] x86/mce: Add Skylake quirk for patrol scrub reported errors

2020-09-25 Thread Borislav Petkov
On Fri, Aug 28, 2020 at 01:21:50PM -0700, Luck, Tony wrote: > +static void adjust_mce_log(struct mce *m) > +{ > + struct cpuinfo_x86 *c = _cpu_data; > + > + if (c->x86_vendor == X86_VENDOR_INTEL && c->x86 == 6 && > + c->x86_model == INTEL_FAM6_SKYLAKE_X && c->x86_stepping >= 4) { >

Re: [PATCH v6 1/9] kernel: Support TIF_SYSCALL_INTERCEPT flag

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 12:15:54PM -0400, Gabriel Krisman Bertazi wrote: > Thomas Gleixner writes: > > > On Wed, Sep 23 2020 at 13:49, Kees Cook wrote: > >> On Wed, Sep 23, 2020 at 04:18:26PM -0400, Gabriel Krisman Bertazi wrote: > >>> Kees Cook writes: > >>> Yes, we can, and I'm happy to

Re: [PATCH 07/13] x86: Secure Launch kernel early boot stub

2020-09-25 Thread Arvind Sankar
On Fri, Sep 25, 2020 at 10:56:43AM -0400, Ross Philipson wrote: > On 9/24/20 1:38 PM, Arvind Sankar wrote: > > On Thu, Sep 24, 2020 at 10:58:35AM -0400, Ross Philipson wrote: > > > >> diff --git a/arch/x86/boot/compressed/head_64.S > >> b/arch/x86/boot/compressed/head_64.S > >> index

Re: [PATCH 0/4] KVM: x86/mmu: Page fault handling cleanups

2020-09-25 Thread Paolo Bonzini
On 24/09/20 00:04, Sean Christopherson wrote: > Cleanups for page fault handling that were encountered during early TDX > enabling, but are worthwhile on their own. Specifically, patch 4 fixes an > issue where KVM doesn't detect a spurious page fault (due to the fault > being fixed by a different

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Ard Biesheuvel
On Fri, 25 Sep 2020 at 22:28, Kees Cook wrote: > > On Fri, Sep 25, 2020 at 08:33:59PM +0530, Pintu Agarwal wrote: > > This is regarding the KASLR feature support on ARM for the kernel > > version 4.9 and 4.14. > > > > Is KASLR supported on ARM-32 Linux 4.9 and above ? > > Sorry, this feature did

Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 12:51:20PM -0700, Andy Lutomirski wrote: > > > > On Sep 25, 2020, at 12:42 PM, Kees Cook wrote: > > > > On Fri, Sep 25, 2020 at 11:45:05AM -0500, YiFei Zhu wrote: > >> On Thu, Sep 24, 2020 at 10:04 PM YiFei Zhu wrote: > Why do the prepare here instead of during

Re: [PATCH v2 0/7] KVM: x86: hyper-v: make KVM_GET_SUPPORTED_HV_CPUID more useful

2020-09-25 Thread Paolo Bonzini
On 24/09/20 16:57, Vitaly Kuznetsov wrote: > Changes since v1: > - Rebased to kvm/queue [KVM_CAP_SYS_HYPERV_CPUID -> 188] > > QEMU series using the feature: > https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg02017.html > > Original description: > > KVM_GET_SUPPORTED_HV_CPUID was

[RFC PATCH 2/3] ipv6/icmp: l3mdev: Perform icmp error route lookup on source device routing table (v2)

2020-09-25 Thread Mathieu Desnoyers
As per RFC4443, the destination address field for ICMPv6 error messages is copied from the source address field of the invoking packet. In configurations with Virtual Routing and Forwarding tables, looking up which routing table to use for sending ICMPv6 error messages is currently done by using

Re: [PATCH v3 2/2] KVM: x86/MMU: Recursively zap nested TDP SPs when zapping last/only parent

2020-09-25 Thread Paolo Bonzini
On 24/09/20 01:29, Ben Gardon wrote: > Reviewed-by: Ben Gardon > (I don't know if my review is useful here, but the rebase of this > patch looks correct! Thank you for preventing these from becoming > undead, Sean.) It is; I had your patch on my todo list in case Sean didn't get to it, but of

[RFC PATCH 3/3] selftests: Add VRF route leaking tests

2020-09-25 Thread Mathieu Desnoyers
From: Michael Jeanson The objective of the tests is to check that ICMP errors generated while crossing between VRFs are properly routed back to the source host. The first ttl test sends a ping with a ttl of 1 from h1 to h2 and parses the output of the command to check that a ttl expired error

Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 11:45:05AM -0500, YiFei Zhu wrote: > On Thu, Sep 24, 2020 at 10:04 PM YiFei Zhu wrote: > > > Why do the prepare here instead of during attach? (And note that it > > > should not be written to fail.) > > > > Right. > > During attach a spinlock (current->sighand->siglock)

Re: [PATCH] ASoC: rockchip: fix a possible divide-by-zero bug in rockchip_i2s_hw_params()

2020-09-25 Thread Mark Brown
On Sun, Aug 30, 2020 at 05:51:06PM +0800, Tuo Li wrote: > The variable bclk_rate is checked in: > if (bclk_rate && mclk_rate % bclk_rate) This doesn't apply against current code, please check and resend: HEAD is now at bbd59df075ab Merge series "ASoC: Intel: sdw machine driver updates for

Re: [RFC PATCH 0/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Steven Rostedt
On Fri, 25 Sep 2020 12:08:05 -0700 Axel Rasmussen wrote: > Hi Steven and Tom, > > In this thread: https://lkml.org/lkml/2020/9/17/1015 we discussed how to plumb > dynamic strings into synthetic events. Tom, you proposed adding a new dynamic > string type to synthetic event definition like "char

Re: Can we credibly make vdso_sgx_enter_enclave() pleasant to use?

2020-09-25 Thread Andy Lutomirski
On Fri, Sep 25, 2020 at 12:09 PM Sean Christopherson wrote: > > +Nathaniel, Cedric and linux-sgx > > On Fri, Sep 25, 2020 at 09:55:00AM -0700, Andy Lutomirski wrote: > > vdso_sgx_enter_enclave() sucks. I don't think anyone seriously likes > > it, but maybe it's the best we can do. > > The code

arch/mips/kernel/r4k-bugs64.c:171:24: warning: no previous prototype for 'do_daddi_ov'

2020-09-25 Thread kernel test robot
Hi Paul, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 171d4ff79f965c1f164705ef0aaea102a6ad238b commit: 071d2f0b5419d3cf80cc8ba73ec8fe2cedc4cc0c MIPS: r4k-bugs64: Limit R4k bug checks to affected systems date:

Re: [RFC PATCH v2] tools/x86: add kcpuid tool to show raw CPU features

2020-09-25 Thread Arvind Sankar
On Fri, Sep 25, 2020 at 07:16:31PM +0200, Borislav Petkov wrote: > On Wed, Sep 23, 2020 at 10:45:29AM +0800, Feng Tang wrote: > > > Rather than a tool, would additional file(s) in, say, > > > /sys/devices/system/cpu/cpu be nicer? They could show the raw CPUID > > > features, one file per leaf or

Re: [PATCH 5.4 00/43] 5.4.68-rc1 review

2020-09-25 Thread Shuah Khan
On 9/25/20 6:48 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.68 release. There are 43 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

Re: [PATCH printk v5 6/6] printk: reimplement log_cont using record extension

2020-09-25 Thread Marek Szyprowski
Hi John, On 14.09.2020 14:33, John Ogness wrote: > Use the record extending feature of the ringbuffer to implement > continuous messages. This preserves the existing continuous message > behavior. > > Signed-off-by: John Ogness > Reviewed-by: Petr Mladek This patch landed recently in

Re: [PATCH 5.8 00/56] 5.8.12-rc1 review

2020-09-25 Thread Shuah Khan
On 9/25/20 6:47 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.8.12 release. There are 56 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

Re: [PATCH] x86/dumpstack: Fix misleading instruction pointer error message

2020-09-25 Thread Borislav Petkov
On Fri, Sep 25, 2020 at 07:31:51PM +, Mark Mossberg wrote: > Unconditionally printing "Bad RIP value" if copy_code() fails can be > misleading for userspace pointers, since copy_code() can fail if the > instruction pointer is valid, but the code is paged out. This is > because copy_code()

[RFC PATCH 1/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Axel Rasmussen
It's typical [1] to define tracepoint string fields as "const char *", using the __string, __assign_str, and __get_str helpers. For synthetic event definitions, the only available mechanism to define a string type is a fixed-size char array ("char[]") [2]. Without this patch, since the type

Re: [WARNING] kernel/rcu/tree.c:1058 rcu_irq_enter+0x15/0x20

2020-09-25 Thread Steven Rostedt
Ping. -- Steve On Thu, 17 Sep 2020 13:18:16 -0400 Steven Rostedt wrote: > Hi Peter, > > I ran my tests on a series of patches on top of 5.9-rc4, and hit the > following splat: > > [ cut here ] > WARNING: CPU: 0 PID: 2557 at kernel/rcu/tree.c:1058

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Kees Cook
On Fri, Sep 25, 2020 at 08:33:59PM +0530, Pintu Agarwal wrote: > This is regarding the KASLR feature support on ARM for the kernel > version 4.9 and 4.14. > > Is KASLR supported on ARM-32 Linux 4.9 and above ? Sorry, this feature did not yet land in upstream:

Re: [PATCH] KVM: x86/mmu: Stash 'kvm' in a local variable in kvm_mmu_free_roots()

2020-09-25 Thread Paolo Bonzini
On 23/09/20 21:12, Sean Christopherson wrote: > To make kvm_mmu_free_roots() a bit more readable, capture 'kvm' in a > local variable instead of doing vcpu->kvm over and over (and over). > > No functional change intended. > > Signed-off-by: Sean Christopherson > --- > arch/x86/kvm/mmu/mmu.c |

[RFC PATCH 0/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Axel Rasmussen
Hi Steven and Tom, In this thread: https://lkml.org/lkml/2020/9/17/1015 we discussed how to plumb dynamic strings into synthetic events. Tom, you proposed adding a new dynamic string type to synthetic event definition like "char foo[]". I'm sending this patch because it may be simpler than

[PATCH v5 04/17] device-dax/kmem: replace release_resource() with release_mem_region()

2020-09-25 Thread Dan Williams
Towards removing the mode specific @dax_kmem_res attribute from the generic 'struct dev_dax', and preparing for multi-range support, change the kmem driver to use the idiomatic release_mem_region() to pair with the initial request_mem_region(). This also eliminates the need to open code the

Re: [PATCH v2 4/7] KVM: x86: hyper-v: always advertise HV_STIMER_DIRECT_MODE_AVAILABLE

2020-09-25 Thread Paolo Bonzini
On 24/09/20 16:57, Vitaly Kuznetsov wrote: > HV_STIMER_DIRECT_MODE_AVAILABLE is the last conditionally set feature bit > in KVM_GET_SUPPORTED_HV_CPUID but it doesn't have to be conditional: first, > this bit is only an indication to userspace VMM that direct mode stimers > are supported, it still

Re: [PATCH v2 seccomp 3/6] seccomp/cache: Add "emulator" to check if filter is arg-dependent

2020-09-25 Thread Andy Lutomirski
> On Sep 25, 2020, at 12:42 PM, Kees Cook wrote: > > On Fri, Sep 25, 2020 at 11:45:05AM -0500, YiFei Zhu wrote: >> On Thu, Sep 24, 2020 at 10:04 PM YiFei Zhu wrote: Why do the prepare here instead of during attach? (And note that it should not be written to fail.) >>> >>> Right.

Re: [PATCH v6 02/10] PCI/RCEC: Bind RCEC devices to the Root Port driver

2020-09-25 Thread Bjorn Helgaas
On Tue, Sep 22, 2020 at 02:38:51PM -0700, Sean V Kelley wrote: > From: Qiuxu Zhuo > > If a Root Complex Integrated Endpoint (RCiEP) is implemented, errors may > optionally be sent to a corresponding Root Complex Event Collector (RCEC). > Each RCiEP must be associated with no more than one RCEC.

[PATCH v5 16/17] dax/hmem: introduce dax_hmem.region_idle parameter

2020-09-25 Thread Dan Williams
From: Joao Martins Introduce a new module parameter for dax_hmem which initializes all region devices as free, rather than allocating a pagemap for the region by default. All hmem devices created with dax_hmem.region_idle=1 will have full available size for creating dynamic dax devices. Link:

[PATCH v5 03/17] device-dax/kmem: move resource name tracking to drvdata

2020-09-25 Thread Dan Williams
Towards removing the mode specific @dax_kmem_res attribute from the generic 'struct dev_dax', and preparing for multi-range support, move resource name tracking to driver data. The memory for the resource name needs to have its own lifetime separate from the device bind lifetime for cases where

[PATCH v3] : Add nitems()

2020-09-25 Thread Alejandro Colomar
'nitems()' calculates the length of an array in number of items. It is safe: if a pointer is passed to the macro (or function, in C++), the compilation is broken due to: - In >= C11: _Static_assert() - In C89, C99: Negative anonymous bitfield - In C++: The template requires an array Some BSDs

Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned

2020-09-25 Thread Linus Torvalds
On Thu, Sep 24, 2020 at 2:30 PM Peter Xu wrote: > > > > > > > With the extra mprotect(!WRITE), I think we'll see a !pte_write() entry. > > > Then > > > it'll not go into maybe_dma_pinned() at all since cow==false. > > > > Hum that seems like a problem in this patch, we still need to do the > >

Re: [RFC] openprom: Fix 'opiocnextprop'; ensure integer conversions; use string size

2020-09-25 Thread Michael Witten
From: David Miller Date: Mon, 14 Sep 2020 17:03:21 -0700 > From: Michael Witten > Date: Fri, 04 Sep 2020 19:40:00 - > >> @@ -34,10 +34,10 @@ EXPORT_SYMBOL(of_console_options); >> int of_getintprop_default(struct device_node *np, const char *name, int def) >> { >> struct property

Re: [PATCH v3 4/4] PCI: Limit pci_alloc_irq_vectors() to housekeeping CPUs

2020-09-25 Thread Bjorn Helgaas
On Fri, Sep 25, 2020 at 02:26:54PM -0400, Nitesh Narayan Lal wrote: > If we have isolated CPUs dedicated for use by real-time tasks, we try to > move IRQs to housekeeping CPUs from the userspace to reduce latency > overhead on the isolated CPUs. > > If we allocate too many IRQ vectors, moving

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Konstantin Ryabitsev
On Fri, Sep 25, 2020 at 03:05:27PM -0300, Arnaldo Carvalho de Melo wrote: > Things like b4 help with this and probably have to take into account > attachments as well, that is why I'm adding Konstantin to the Cc: list > of this message. > > Konstantin, is this case covered? I.e. patches that get

Re: [PATCH v2 4/4] KVM: VMX: Add a helper and macros to reduce boilerplate for sec exec ctls

2020-09-25 Thread Paolo Bonzini
On 25/09/20 02:30, Sean Christopherson wrote: > Add a helper function and several wrapping macros to consolidate the > copy-paste code in vmx_compute_secondary_exec_control() for adjusting > controls that are dependent on guest CPUID bits. > > No functional change intended. > > Signed-off-by:

[GIT PULL] regmap fixes for v5.9-rc6

2020-09-25 Thread Mark Brown
The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2 (2020-08-23 14:08:43 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-fix-v5.9-rc6 for you to fetch changes up to

[GIT PULL] SPI fixes for v5.9-rc6

2020-09-25 Thread Mark Brown
The following changes since commit c170a5a3b6944ad8e76547c4a1d9fe81c8f23ac8: spi: stm32: fix pm_runtime_get_sync() error checking (2020-09-09 15:11:44 +0100) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-fix-v5.9-rc6 for

[GIT PULL] regulator fixes for v5.9-rc6

2020-09-25 Thread Mark Brown
The following changes since commit 59ae97a7a9e1499c2070e29841d1c4be4ae2994a: regulator: pwm: Fix machine constraints application (2020-09-02 19:13:29 +0100) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git

Re: [PATCH 4.19 00/37] 4.19.148-rc1 review

2020-09-25 Thread Shuah Khan
On 9/25/20 6:48 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.148 release. There are 37 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

Re: [PATCH v3 0/5] KVM: VMX: Clean up RTIT MAXPHYADDR usage

2020-09-25 Thread Paolo Bonzini
On 24/09/20 21:42, Sean Christopherson wrote: > Stop using cpuid_query_maxphyaddr() for a random RTIT MSR check, unexport > said function to discourage future use, and do additional related cleanup. > > Paolo, feel free to reorder/squash these as you see fit. Five patches > feels more than a bit

Re: [PATCH] tracing/boot: Initialize per-instance event list in early boot

2020-09-25 Thread Steven Rostedt
On Fri, 25 Sep 2020 01:40:08 +0900 Masami Hiramatsu wrote: > Initialize per-instance event list in early boot time (before > initializing instance directory on tracefs). This fixes boot-time > tracing to correctly handle the boot-time per-instance settings. > I added: Fixes: 4114fbfd02f1

Re: [RFC PATCH v2] tools/x86: add kcpuid tool to show raw CPU features

2020-09-25 Thread Borislav Petkov
On Fri, Sep 25, 2020 at 03:48:04PM -0400, Arvind Sankar wrote: > Ok. Another suggestion: while designing the format for the cpuid.txt > file, would it be possible to include enough information for > cpufeatures.h to be auto-generated from it? I think you're missing the previous discussion on this

Re: [PATCH] cpuidle-haltpoll: fix error comments in arch_haltpoll_disable

2020-09-25 Thread Paolo Bonzini
On 24/09/20 17:58, Li Qiang wrote: > The 'arch_haltpoll_disable' is used to disable guest halt poll. > Correct the comments. > > Fixes: a1c4423b02b21 ("cpuidle-haltpoll: disable host side polling when kvm > virtualized") > Signed-off-by: Li Qiang > --- > arch/x86/kernel/kvm.c | 2 +- > 1 file

Re: [RFC PATCH 0/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Tom Zanussi
Hi Axel, On Fri, 2020-09-25 at 12:08 -0700, Axel Rasmussen wrote: > Hi Steven and Tom, > > In this thread: https://lkml.org/lkml/2020/9/17/1015 we discussed how > to plumb > dynamic strings into synthetic events. Tom, you proposed adding a new > dynamic > string type to synthetic event

Re: [PATCH 4/5] media: mt9p031: Make pixel clock polarity configurable by DT

2020-09-25 Thread Sakari Ailus
Hi Stefan, Thanks for the patchset. On Fri, Sep 25, 2020 at 09:50:28AM +0200, Stefan Riedmueller wrote: > From: Christian Hemp > > Evaluate the desired pixel clock polarity from the device tree. > > Signed-off-by: Christian Hemp > Signed-off-by: Stefan Riedmueller > --- >

Re: [PATCH printk v5 6/6] printk: reimplement log_cont using record extension

2020-09-25 Thread Marek Szyprowski
Hi again, On 25.09.2020 21:08, Marek Szyprowski wrote: > Hi John, > > On 14.09.2020 14:33, John Ogness wrote: >> Use the record extending feature of the ringbuffer to implement >> continuous messages. This preserves the existing continuous message >> behavior. >> >> Signed-off-by: John Ogness >>

Re: [PATCH v6 03/10] PCI/RCEC: Cache RCEC capabilities in pci_init_capabilities()

2020-09-25 Thread Bjorn Helgaas
On Tue, Sep 22, 2020 at 02:38:52PM -0700, Sean V Kelley wrote: > From: Sean V Kelley > > Extend support for Root Complex Event Collectors by decoding and > caching the RCEC Endpoint Association Extended Capabilities when > enumerating. Use that cached information for later error source >

Re: [PATCH v2 8/8] x86/MCE/AMD Support new memory interleaving modes during address translation

2020-09-25 Thread Yazen Ghannam
On Fri, Sep 25, 2020 at 09:22:31AM +0200, Borislav Petkov wrote: > On Wed, Sep 23, 2020 at 11:25:10AM -0500, Yazen Ghannam wrote: > > I don't remember the original reason, and I was recently asked about > > this code living in a module. I did some looking after this ask, and I > > found that we

Re: [PATCH v3] usb: dwc3: Stop active transfers before halting the controller

2020-09-25 Thread Wesley Cheng
On 9/24/2020 11:06 PM, Felipe Balbi wrote: > > Hi, > > Alan Stern writes: Hence, the reason if there was already a pending IRQ triggered, the dwc3_gadget_disable_irq() won't ensure the IRQ is handled. We can do something like: if (!is_on)

Re: [RFC PATCH 1/1] tracing: support dynamic string field types for synthetic events

2020-09-25 Thread Tom Zanussi
Hi Axel, On Fri, 2020-09-25 at 12:08 -0700, Axel Rasmussen wrote: > It's typical [1] to define tracepoint string fields as "const char *", > using the __string, __assign_str, and __get_str helpers. For synthetic > event definitions, the only available mechanism to define a string type > is a

Re: [PATCH 0/9] sched: Migrate disable support

2020-09-25 Thread Valentin Schneider
On 25/09/20 19:17, Sebastian Andrzej Siewior wrote: > On 2020-09-21 18:35:57 [+0200], Peter Zijlstra wrote: >> Hi, > Hi, > >> Here's my take on migrate_disable(). It avoids growing a second means of > > I have here: > > |005: numa_remove_cpu cpu 5 node 0: mask now 0,3-4,6-7 > |007: smpboot: CPU

Re: [PATCH] rpadlpar_io:Add MODULE_DESCRIPTION entries to kernel modules

2020-09-25 Thread Bjorn Helgaas
On Thu, Sep 24, 2020 at 04:41:39PM +1000, Oliver O'Halloran wrote: > On Thu, Sep 24, 2020 at 3:15 PM Mamatha Inamdar > wrote: > > > > This patch adds a brief MODULE_DESCRIPTION to rpadlpar_io kernel modules > > (descriptions taken from Kconfig file) > > > > Signed-off-by: Mamatha Inamdar > > ---

Re: [PATCH v4] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-25 Thread Hans de Goede
Hi, On 9/25/20 8:37 PM, Limonciello, Mario wrote: So a user would see the different authentication mechanisms available by looking At the contents of /sys/class/firmware- attributes/*/authentication and if they don't understand it's purpose they look at the type sysfs file. But one role

Re: [PATCH] Documentation/llvm: Fix clang target examples

2020-09-25 Thread Nick Desaulniers
On Fri, Sep 25, 2020 at 8:21 AM Florian Fainelli wrote: > > clang --target= is how we can specify a particular toolchain > triple to be use, fix the two occurences in the documentation. Ah right, my mistake. It's either double dash+equals, or single dash+space. Thanks for the patch. Masahiro,

Re: [PATCH 01/18] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT flag

2020-09-25 Thread Tomasz Figa
Hi Christoph, On Tue, Sep 15, 2020 at 05:51:05PM +0200, Christoph Hellwig wrote: > From: Sergey Senozhatsky > > The patch partially reverts some of the UAPI bits of the buffer > cache management hints. Namely, the queue consistency (memory > coherency) user-space hint because, as it turned out,

Re: [PATCH 17/18] dma-iommu: implement ->alloc_noncoherent

2020-09-25 Thread Tomasz Figa
Hi Christoph, On Tue, Sep 15, 2020 at 05:51:21PM +0200, Christoph Hellwig wrote: > Implement the alloc_noncoherent method to provide memory that is neither > coherent not contiguous. > > Signed-off-by: Christoph Hellwig > --- > drivers/iommu/dma-iommu.c | 41

Re: [PATCH v2 1/2] perf vendor events: Update CascadelakeX events to v1.08

2020-09-25 Thread Andi Kleen
> Thanks, it now works, but then... You forgot to add the Cc: entries for > all the people in your actual e-mail Cc: list, and also the > Reviewed-by: from Andy, I had to do it all manually, so when I applied > your attachments with 'git am' I needed to go on and manually collect > all the Cc,

Re: [PATCH net-next v2 1/2] ethtool: improve compat ioctl handling

2020-09-25 Thread Arnd Bergmann
On Fri, Sep 25, 2020 at 3:22 PM Arnd Bergmann wrote: > > The ethtool compat ioctl handling is hidden away in net/socket.c, > which introduces a couple of minor oddities: > > - The implementation may end up diverging, as seen in the RXNFC > extension in commit 84a1d9c48200 ("net: ethtool: extend

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