Re: [PATCH] ext4: fix spelling mistakes in extents.c

2020-07-29 Thread tytso
On Wed, Jun 10, 2020 at 11:19:46PM -0400, Keyur Patel wrote: > Fix spelling issues over the comments in the code. > > requsted ==> requested > deterimined ==> determined > insde ==> inside > neet ==> need > somthing ==> something > > Signed-off-by: Keyur Patel Applied, thanks.

[PATCH v3 4/6] PCI: dwc: Fix kerneldoc

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/pci/controller/dwc/pcie-designware-ep.c:16: warning: Function parameter or member 'ep' not described in 'dw_pcie_ep_linkup' Signed-off-by: Krzysztof Kozlowski --- drivers/pci/controller/dwc/pcie-designware-ep.c | 2 +- 1 file changed, 1

[PATCH v3 6/6] PCI: xilinx: Fix kerneldoc

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/pci/controller/pcie-xilinx-cpm.c:122: warning: Function parameter or member 'cpm_domain' not described in 'xilinx_cpm_pcie_port' Signed-off-by: Krzysztof Kozlowski --- drivers/pci/controller/pcie-xilinx-cpm.c | 1 + 1 file changed, 1 in

[PATCH v3 3/6] PCI: hotplug: Fix kerneldoc

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/pci/hotplug/acpi_pcihp.c:69: warning: Function parameter or member 'pdev' not described in 'acpi_get_hp_hw_control_from_firmware' drivers/pci/hotplug/acpi_pcihp.c:69: warning: Excess function parameter 'dev' description in 'acpi_get_h

[CFP LPC 2020] Scheduler Microconference

2020-07-29 Thread Dhaval Giani
Hi all, We are pleased to announce the Scheduler Microconference has been accepted at LPC this year. Please submit your proposals on the LPC website at: https://www.linuxplumbersconf.org/event/7/abstracts/#submit-abstract And be sure to select "Scheduler MC" in the Track pulldown menu. Topics

Re: [PATCH 0/7] ARM: samsung: Cleanup of various S3C bits

2020-07-29 Thread Krzysztof Kozlowski
On Wed, Jul 29, 2020 at 10:01:26PM +0200, Arnd Bergmann wrote: > On Wed, Jul 29, 2020 at 6:11 PM Krzysztof Kozlowski wrote: > > > > Hi, > > > > I tried to cleanup few warnings in S3C machine code which lead to > > finding some bigger issues. > > > > Patches touch mostly the ARM Samsung machine cod

Re: [PATCH 1/7] clk: samsung: s3c64xx: Declare s3c64xx_clk_init() in shared header

2020-07-29 Thread Krzysztof Kozlowski
On Wed, Jul 29, 2020 at 12:42:43PM -0700, Stephen Boyd wrote: > Quoting Krzysztof Kozlowski (2020-07-29 09:09:36) > > diff --git a/include/linux/clk/samsung.h b/include/linux/clk/samsung.h > > new file mode 100644 > > index ..b6b253c46c22 > > --- /dev/null > > +++ b/include/linux/clk/sa

Re: [PATCH v2] lib: kunit: Convert test_sort to KUnit test

2020-07-29 Thread Vitor Massaru Iha
On Wed, Jul 29, 2020 at 4:19 PM Andy Shevchenko wrote: > > On Wed, Jul 29, 2020 at 04:11:51PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the test_sort.c to KUnit test. > > > > Please apply this commit first (linux-kselftest/kunit-fixes): > > 3f37d14b8a3152441f36b6bc74000996679

Re: [PATCH] perf/x86/svm: Convert 'perf kvm stat report' output lowercase to uppercase

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 11:24 PM Haiwei Li wrote: > > From: Haiwei Li > > The reason output of 'perf kvm stat report --event=vmexit' is uppercase > on VMX and lowercase on SVM. > > To be consistent with VMX, convert lowercase to uppercase. > > Signed-off-by: Haiwei Li Please don't do this. It b

general protection fault in security_inode_getattr

2020-07-29 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:92ed3019 Linux 5.8-rc7 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=140003ac90 kernel config: https://syzkaller.appspot.com/x/.config?x=84f076779e989e69 dashboard link: https://syzkaller.appspot

Re: [PATCH v3 3/4] iommu: Add iommu_aux_get_domain_for_dev()

2020-07-29 Thread Alex Williamson
On Tue, 14 Jul 2020 13:57:02 +0800 Lu Baolu wrote: > The device driver needs an API to get its aux-domain. A typical usage > scenario is: > > unsigned long pasid; > struct iommu_domain *domain; > struct device *dev = mdev_dev(mdev); > struct device *iommu_device =

Re: [PATCH net-next] fib: fix fib_rules_ops indirect calls wrappers

2020-07-29 Thread David Miller
From: Brian Vazquez Date: Wed, 29 Jul 2020 11:10:18 -0700 > This patch fixes: > commit b9aaec8f0be5 ("fib: use indirect call wrappers in the most common > fib_rules_ops") which didn't consider the case when > CONFIG_IPV6_MULTIPLE_TABLES is not set. > > Reported-by: Stephen Rothwell > Fixes: b9a

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
On 29.07.20 20:27, Jim Mattson wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. On Wed, Jul 29, 2020 at 2:06 AM Alexander Graf wrote: On 28.07.20 19:13, Jim Ma

Re: [PATCH] net/mlx5e: fix bpf_prog refcnt leaks in mlx5e_alloc_rq

2020-07-29 Thread David Miller
From: Saeed Mahameed Date: Wed, 29 Jul 2020 19:02:15 + > On Wed, 2020-07-29 at 20:33 +0800, Xin Xiong wrote: >> The function invokes bpf_prog_inc(), which increases the refcount of >> a >> bpf_prog object "rq->xdp_prog" if the object isn't NULL. >> >> The refcount leak issues take place in t

Re: [PATCH v3 4/4] vfio/type1: Use iommu_aux_at(de)tach_group() APIs

2020-07-29 Thread Alex Williamson
On Tue, 14 Jul 2020 13:57:03 +0800 Lu Baolu wrote: > Replace iommu_aux_at(de)tach_device() with iommu_aux_at(de)tach_group(). > It also saves the IOMMU_DEV_FEAT_AUX-capable physcail device in the > vfio_group data structure so that it could be reused in other places. > > Signed-off-by: Lu Baolu

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread Fenghua Yu
Hi, Sean, On Wed, Jul 29, 2020 at 01:00:33PM -0700, Sean Christopherson wrote: > On Wed, Jul 29, 2020 at 07:42:59PM +, Fenghua Yu wrote: > > > Smushing the two into a single option is confusing, e.g. from the table > > > below it's not at all clear what will happen if sld=fatal, both features

Re: Inverted mount options completely broken (iversion,relatime)

2020-07-29 Thread David Howells
Josef Bacik wrote: > So my question is, what do we do here? Hmmm... As the code stands, MS_RDONLY, MS_SYNCHRONOUS, MS_MANDLOCK, MS_I_VERSION and MS_LAZYTIME should all be masked off before the new flags are set if called from mount(2) rather than fsconfig(2). do_remount() gives MS_RMT_MASK to

Re: [PATCH 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-29 Thread Pierre-Louis Bossart
On 7/29/20 6:03 AM, Brent Lu wrote: From: Yu-Hsuan Hsu The CRAS server does not set the period size in hw_param so ALSA will calculate a value for period size which is based on the buffer size and other parameters. The value may not always be aligned with Atom's dsp design so a constraint is

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Jim Mattson
On Wed, Jul 29, 2020 at 1:29 PM Alexander Graf wrote: > Meanwhile, I have cleaned up Karim's old patch to add allow listing to > KVM and would post it if Aaron doesn't beat me to it :). Ideally, this becomes a collaboration rather than a race to the finish. I'd like to see both proposals, so tha

Re: [PATCH v6 1/4] dt-bindings: power: Add BQ27Z561 compatible

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 01:31:42PM -0500, Dan Murphy wrote: > Add the Texas Instruments bq27z561 battery monitor to the bq27xxx > binding. > > Acked-by: Rob Herring > Signed-off-by: Dan Murphy > --- Thanks, queued. -- Sebastian > Documentation/devicetree/bindings/power/supply/bq27xxx.ya

Re: [PATCH v6 4/4] power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 01:31:45PM -0500, Dan Murphy wrote: > Add the Texas Instruments BQ28z610 battery monitor. > The register address map is laid out the same as compared to other > devices within the file. > > The battery status register bits are similar to the bq27z561 but they > are dif

Re: [PATCH v6 3/4] dt-bindings: power: Add BQ28z610 compatible

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 01:31:44PM -0500, Dan Murphy wrote: > Add the Texas Instruments bq28z610 battery monitor to the bq27xxx > binding. > > Acked-by: Rob Herring > Signed-off-by: Dan Murphy > --- Thanks, queued. -- Sebastian > Documentation/devicetree/bindings/power/supply/bq27xxx.ya

Re: [PATCH v6 2/4] power: supply: bq27xxx_battery: Add the BQ27Z561 Battery monitor

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 01:31:43PM -0500, Dan Murphy wrote: > Add the Texas Instruments BQ27Z561 battery monitor. The register address > map is laid out the same as compared to other devices within the file. > The battery status register has differing bits to determine if the > battery is ful

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread Sean Christopherson
On Wed, Jul 29, 2020 at 08:35:57PM +, Fenghua Yu wrote: > Hi, Sean, > > On Wed, Jul 29, 2020 at 01:00:33PM -0700, Sean Christopherson wrote: > > On Wed, Jul 29, 2020 at 07:42:59PM +, Fenghua Yu wrote: > > > > Smushing the two into a single option is confusing, e.g. from the table > > > > b

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread peterz
On Wed, Jul 29, 2020 at 05:11:46PM -0300, Vitor Massaru Iha wrote: > This adds the conversion of the runtime tests of test_min_heap, > from `lib/test_min_heap.c` to KUnit tests. > > Please apply this commit first (linux-kselftest/kunit-fixes): > 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kuni

Re: [PATCH] test_power: Fix battery_current initial value

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 08:14:00PM +0800, lh lin wrote: > From: LH Lin > > Since default battery_status is POWER_SUPPLY_STATUS_DISCHARGING, > we should change default battery_current to a negative value. > > Signed-off-by: LH Lin > --- Thanks, queued. -- Sebastian > drivers/power/suppl

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread Fenghua Yu
Hi, Peter, On Wed, Jul 29, 2020 at 10:49:47AM +0200, pet...@infradead.org wrote: > On Fri, Jul 17, 2020 at 02:35:00PM -0700, Fenghua Yu wrote: > > > #DB for bus lock detect fixes all issues in #AC for split lock detect: > > 1) It's architectural ... just need to look at one CPUID bit to know it >

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-29 Thread Bjorn Andersson
On Tue 28 Jul 13:11 PDT 2020, Lina Iyer wrote: > On Tue, Jul 28 2020 at 13:51 -0600, Stephen Boyd wrote: > > Quoting Lina Iyer (2020-07-28 09:52:12) > > > On Mon, Jul 27 2020 at 18:45 -0600, Stephen Boyd wrote: > > > >Quoting Lina Iyer (2020-07-24 09:28:25) > > > >> On Fri, Jul 24 2020 at 03:03 -0

Re: [RFC][PATCH] locking/refcount: Provide __refcount API to obtain the old value

2020-07-29 Thread David Howells
pet...@infradead.org wrote: > I'm not entirely sure what you mean with interpret, provided you don't > trigger a refcount fail, the number will be just what you expect and > would get from refcount_read(). If you do trigger a fail, you'll get a > negative value. That's fine. I seem to remember t

Re: [PATCH v2] netfilter: Replace HTTP links with HTTPS ones

2020-07-29 Thread Pablo Neira Ayuso
On Sat, Jul 25, 2020 at 07:02:25PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. Applied.

Re: [PATCH] perf bench: Add benchmark of find_next_bit

2020-07-29 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 29, 2020 at 04:59:18PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Jul 28, 2020 at 08:51:52AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Jul 24, 2020 at 12:19:59AM -0700, Ian Rogers escreveu: > > > for_each_set_bit, or similar functions like for_each_cpu, may be hot >

Re: [PATCH] netfilter: ip6tables: Remove redundant null checks

2020-07-29 Thread Pablo Neira Ayuso
Applied, thanks.

arch/x86/mm/numa.c:925:5: warning: no previous prototype for 'memory_add_physaddr_to_nid'

2020-07-29 Thread kernel test robot
#x27; info date: 5 months ago config: i386-randconfig-r016-20200729 (attached as .config) compiler: gcc-9 (Debian 9.3.0-14) 9.3.0 reproduce (this is a W=1 build): git checkout 7b27a8622f802761d5c6abd6c37b22312a35343c # save the attached .config to linux build tree make W=1 ARCH

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Alexander Graf
On 29.07.20 22:37, Jim Mattson wrote: On Wed, Jul 29, 2020 at 1:29 PM Alexander Graf wrote: Meanwhile, I have cleaned up Karim's old patch to add allow listing to KVM and would post it if Aaron doesn't beat me to it :). Ideally, this becomes a collaboration rather than a race to the finis

Re: [PATCH v3 04/11] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 4:38 PM Babu Moger wrote: > > Modify intercept_exceptions to generic intercepts in vmcb_control_area. > Use the generic __set_intercept, __clr_intercept and __is_intercept to > set the intercept_exceptions bits. > > Signed-off-by: Babu Moger > --- > @@ -52,6 +54,25 @@ enu

Re: [PATCH] KVM: x86: Deflect unknown MSR accesses to user space

2020-07-29 Thread Jim Mattson
On Wed, Jul 29, 2020 at 1:46 PM Alexander Graf wrote: > Do you have a rough ETA for Aaron's patch set yet? :) Rough ETA: Friday (31 July 2020).

Re: [PATCH 2/2] soc: qcom: smd-rpm: Fix kerneldoc

2020-07-29 Thread Bjorn Andersson
On Wed 29 Jul 00:44 PDT 2020, Krzysztof Kozlowski wrote: > Fix W=1 compile warnings (invalid kerneldoc): > > drivers/soc/qcom/smd-rpm.c:35: warning: Function parameter or member > 'dev' not described in 'qcom_smd_rpm' > drivers/soc/qcom/smd-rpm.c:99: warning: Function parameter or member

Re: [PATCH 08/23] fs: don't change the address limit for ->write_iter in __kernel_write

2020-07-29 Thread Al Viro
On Tue, Jul 07, 2020 at 07:47:46PM +0200, Christoph Hellwig wrote: > If we write to a file that implements ->write_iter there is no need > to change the address limit if we send a kvec down. Implement that > case, and prefer it over using plain ->write with a changed address > limit if available.

Re: [PATCH] net/mlx5e: fix bpf_prog refcnt leaks in mlx5e_alloc_rq

2020-07-29 Thread Saeed Mahameed
On Wed, 2020-07-29 at 13:28 -0700, David Miller wrote: > From: Saeed Mahameed > Date: Wed, 29 Jul 2020 19:02:15 + > > >> Fix this issue by jumping to the error handling path > >> err_rq_wq_destroy > >> when either function fails. > >> > > > > Fixes: 422d4c401edd ("net/mlx5e: RX, Split WQ ob

Re: [RFC][PATCH] locking/refcount: Provide __refcount API to obtain the old value

2020-07-29 Thread Kees Cook
On Wed, Jul 29, 2020 at 09:41:37PM +0100, David Howells wrote: > pet...@infradead.org wrote: > > > I'm not entirely sure what you mean with interpret, provided you don't > > trigger a refcount fail, the number will be just what you expect and > > would get from refcount_read(). If you do trigger a

Re: [PATCH] Module argument to control whether intel-spi-pci attempts to turn the SPI flash chip writeable

2020-07-29 Thread Daniel Gutson
On Mon, Jul 27, 2020 at 12:31 PM Daniel Gutson wrote: > > On Mon, Jul 27, 2020 at 12:15 PM Arnd Bergmann wrote: > > > > On Mon, Jul 27, 2020 at 5:05 PM Daniel Gutson wrote: > > > On Sun, Jul 26, 2020 at 4:17 AM Greg Kroah-Hartman > > > wrote: > > >> > > >> On Sat, Jul 25, 2020 at 02:20:03PM -0

Re: [PATCH v6 1/6] docs: IOMMU user API

2020-07-29 Thread Jacob Pan
On Wed, 29 Jul 2020 01:18:04 + "Tian, Kevin" wrote: > > From: Alex Williamson > > Sent: Wednesday, July 29, 2020 3:20 AM > > > [...] > > > + > > > +For example, IOTLB invalidations should always succeed. There is > > > no +architectural way to report back to the vIOMMU if the UAPI > > > d

Re: [PATCH v2] interconnect: Add bulk API helpers

2020-07-29 Thread Bjorn Andersson
On Wed 29 Jul 05:34 PDT 2020, Georgi Djakov wrote: > There are drivers which just need to get multiple interconnect paths, > request some predefined amounts of bandwidth and then just toggle the > paths between enabled/disabled state. > > The aim of this patch is simplify the above and to allow d

Re: [PATCH net-next RFC 09/13] devlink: Add enable_remote_dev_reset generic parameter

2020-07-29 Thread Jakub Kicinski
On Wed, 29 Jul 2020 17:42:12 +0300 Moshe Shemesh wrote: > On 7/28/2020 3:59 AM, Jakub Kicinski wrote: > > On Mon, 27 Jul 2020 14:02:29 +0300 Moshe Shemesh wrote: > >> The enable_remote_dev_reset devlink param flags that the host admin > >> allows device resets that can be initiated by other hosts

Re: Inverted mount options completely broken (iversion,relatime)

2020-07-29 Thread David Howells
David Howells wrote: > > So my question is, what do we do here? > > Hmmm... As the code stands, MS_RDONLY, MS_SYNCHRONOUS, MS_MANDLOCK, > MS_I_VERSION and MS_LAZYTIME should all be masked off before the new flags are > set if called from mount(2) rather than fsconfig(2). > > do_remount() gives

Re: [PATCH 15/23] seq_file: switch over direct seq_read method calls to seq_read_iter

2020-07-29 Thread Al Viro
On Fri, Jul 17, 2020 at 11:09:13PM +0200, Thomas Gleixner wrote: > > Needs some thought and maybe some cocci help from Julia, but that's way > better than this brute force sed thing which results in malformed crap > like this: > > static const struct file_operations debug_stats_fops = { > .

Re: [RFC PATCH 03/14] coresight: tpiu: Use coresight device access abstraction

2020-07-29 Thread Mathieu Poirier
On Wed, Jul 22, 2020 at 06:20:29PM +0100, Suzuki K Poulose wrote: > TPIU driver access the device before the coresight device > is registered. In other words, before the drvdata->csdev > is valid. Thus, we need to make sure that the csdev_access > is valid for both the invocations. Switch to using

Re: [PATCH bpf-next v2] Documentation/bpf: Use valid and new links in index.rst

2020-07-29 Thread Song Liu
On Wed, Jul 29, 2020 at 6:17 AM Tiezhu Yang wrote: > > There exists an error "404 Not Found" when I click the html link of > "Documentation/networking/filter.rst" in the BPF documentation [1], > fix it. > > Additionally, use the new links about "BPF and XDP Reference Guide" > and "bpf(2)" to avoid

Re: [PATCH v3 05/11] KVM: SVM: Modify 64 bit intercept field to two 32 bit vectors

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 4:38 PM Babu Moger wrote: > > Convert all the intercepts to one array of 32 bit vectors in > vmcb_control_area. This makes it easy for future intercept vector > additions. Also update trace functions. > > Signed-off-by: Babu Moger > --- > @@ -128,8 +129,7 @@ enum { > >

Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command

2020-07-29 Thread Jakub Kicinski
On Wed, 29 Jul 2020 17:54:08 +0300 Moshe Shemesh wrote: > On 7/28/2020 11:06 PM, Jakub Kicinski wrote: > > On Tue, 28 Jul 2020 12:18:30 -0700 Jacob Keller wrote: > >> On 7/28/2020 11:44 AM, Jakub Kicinski wrote: > >>> From user perspective what's important is what the reset achieves (and > >>>

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-29 Thread peterz
On Wed, Jul 29, 2020 at 08:40:57PM +, Fenghua Yu wrote: > On Wed, Jul 29, 2020 at 10:49:47AM +0200, pet...@infradead.org wrote: > > On Fri, Jul 17, 2020 at 02:35:00PM -0700, Fenghua Yu wrote: > > > > > #DB for bus lock detect fixes all issues in #AC for split lock detect: > > > 1) It's archite

Re: [PATCH net-next RFC 02/13] devlink: Add reload levels data to dev get

2020-07-29 Thread Jakub Kicinski
On Wed, 29 Jul 2020 17:37:41 +0300 Moshe Shemesh wrote: > > The fact that the driver supports fw_live_patch, does not necessarily > > mean that the currently running FW can be live upgraded to the > > currently flashed one, right? > > That's correct, though the feature is supported, the firmware

[RFC PATCH 2/3] ipv4/icmp: l3mdev: Perform icmp error route lookup on source device routing table

2020-07-29 Thread Mathieu Desnoyers
As per RFC792, ICMP errors should be sent to the source host. However, in configurations with Virtual Routing and Forwarding tables, looking up which routing table to use is currently done by using the destination net_device. commit 9d1a6c4ea43e ("net: icmp_route_lookup should use rt dev to deter

[RFC PATCH 1/3] selftests: Add VRF icmp error route lookup test

2020-07-29 Thread Mathieu Desnoyers
From: Michael Jeanson The objective is to check that the incoming vrf routing table is selected to send an ICMP error back to the source when the ttl of a packet reaches 1 while it is forwarded between different vrfs. The first test sends a ping with a ttl of 1 from h1 to h2 and parses the outpu

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

2020-07-29 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 t

Re: [PATCH 1/2] kbuild: move shared library build rules to scripts/gcc-plugins/Makefile

2020-07-29 Thread Kees Cook
On Wed, Jul 29, 2020 at 12:15:36PM +0900, Masahiro Yamada wrote: > The shared library build rules are currently implemented in > scripts/Makefile.host, but actually GCC-plugin is the only user of > them. Hence, they do not need to be treewide available. Are none of the VDSOs intending to use these

Re: [PATCH] include: Replace HTTP links with HTTPS ones

2020-07-29 Thread Kees Cook
On Sun, Jul 26, 2020 at 01:01:17PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Signed-off-by: Alexander A. Klimov Reviewed-by: Kees Cook Jon, do you want to take this? --

Re: [PATCH v3 06/11] KVM: SVM: Add new intercept vector in vmcb_control_area

2020-07-29 Thread Jim Mattson
On Tue, Jul 28, 2020 at 4:38 PM Babu Moger wrote: > > The new intercept bits have been added in vmcb control area to support > few more interceptions. Here are the some of them. > - INTERCEPT_INVLPGB, > - INTERCEPT_INVLPGB_ILLEGAL, > - INTERCEPT_INVPCID, > - INTERCEPT_MCOMMIT, > - INTERCEPT_T

drivers/staging/media/atomisp/pci/hmm/hmm.c:269:6: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' {aka 'unsigned int'}

2020-07-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6ba1b005ffc388c2aeaddae20da29e4810dea298 commit: 03884c93560c48c2739caa9b104b0cb4d3ea8c91 media: atomisp: add debug for hmm alloc date: 7 weeks ago config: i386-randconfig-r016-20200729 (attached as

Re: [PATCH net] ptp: ptp_clockmatrix: update to support 4.8.7 firmware

2020-07-29 Thread Richard Cochran
On Tue, Jul 28, 2020 at 04:00:30PM -0400, min.li...@renesas.com wrote: > From: Min Li > > With 4.8.7 firmware, adjtime can change delta instead of absolute time, > which greately increases snap accuracy. PPS alignment doesn't have to > be set for every single TOD change. Other minor changes inclu

RE: [PATCH v3 04/11] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-07-29 Thread Babu Moger
> -Original Message- > From: Jim Mattson > Sent: Wednesday, July 29, 2020 3:48 PM > To: Moger, Babu > Cc: Paolo Bonzini ; Vitaly Kuznetsov > ; Wanpeng Li ; Sean > Christopherson ; kvm list > ; Joerg Roedel ; the arch/x86 > maintainers ; LKML ; Ingo > Molnar ; Borislav Petkov ; H . Pete

RE: [PATCH v3 05/11] KVM: SVM: Modify 64 bit intercept field to two 32 bit vectors

2020-07-29 Thread Babu Moger
> -Original Message- > From: Jim Mattson > Sent: Wednesday, July 29, 2020 4:06 PM > To: Moger, Babu > Cc: Paolo Bonzini ; Vitaly Kuznetsov > ; Wanpeng Li ; Sean > Christopherson ; kvm list > ; Joerg Roedel ; the arch/x86 > maintainers ; LKML ; Ingo > Molnar ; Borislav Petkov ; H . Pete

kernel BUG at arch/x86/mm/physaddr.c:LINE! (6)

2020-07-29 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:23ee3e4e Merge tag 'pci-v5.8-fixes-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16c45f7890 kernel config: https://syzkaller.appspot.com/x/.config?x=f87a5e4232fdb267 das

[PATCH V5 1/3] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-07-29 Thread David E. Box
Add PCIe Designated Vendor-Specific Extended Capability (DVSEC) and defines for the header offsets. Defined in PCIe r5.0, sec 7.9.6. Signed-off-by: David E. Box Acked-by: Bjorn Helgaas Reviewed-by: Andy Shevchenko --- include/uapi/linux/pci_regs.h | 5 + 1 file changed, 5 insertions(+) di

[PATCH V5 0/3] Intel Platform Monitoring Technology

2020-07-29 Thread David E. Box
Intel Platform Monitoring Technology (PMT) is an architecture for enumerating and accessing hardware monitoring capabilities on a device. With customers increasingly asking for hardware telemetry, engineers not only have to figure out how to measure and collect data, but also how to deliver it and

[PATCH V5 3/3] platform/x86: Intel PMT Telemetry capability driver

2020-07-29 Thread David E. Box
PMT Telemetry is a capability of the Intel Platform Monitoring Technology. The Telemetry capability provides access to device telemetry metrics that provide hardware performance data to users from continuous, memory mapped, read-only register spaces. Register mappings are not provided by the drive

[PATCH V5 2/3] mfd: Intel Platform Monitoring Technology support

2020-07-29 Thread David E. Box
Intel Platform Monitoring Technology (PMT) is an architecture for enumerating and accessing hardware monitoring facilities. PMT supports multiple types of monitoring capabilities. This driver creates platform devices for each type so that they may be managed by capability specific drivers (to be in

[PATCH 1/9] drm/nouveau/kms: Handle -EINPROGRESS in nouveau_connector_hotplug()

2020-07-29 Thread Lyude Paul
Looks like that we forgot to handle -EINPROGRESS being returned by pm_runtime_get(), which can happen if multiple callers try to asynchronously resume the GPU before it wakes up. This is perfectly normal and OK, so fix this by treating -EINPROGRESS as success. Signed-off-by: Lyude Paul Fixes: 3e1

[PATCH 3/9] drm/nouveau/kms/fbcon: Correct pm_runtime calls in nouveau_fbcon_release()

2020-07-29 Thread Lyude Paul
We want to update the last busy timer for our device and use pm_runtime_put_autosuspend() here instead so that our GPU can autosuspend when we're done. Signed-off-by: Lyude Paul Fixes: f231976c2e89 ("drm/nouveau/fbcon: take runpm reference when userspace has an open fd") Cc: Ben Skeggs Cc: sta.

[PATCH 5/9] drm/nouveau/kms/fbcon: Use pm_runtime_put_autosuspend() in suspend work

2020-07-29 Thread Lyude Paul
While I don't know of any problems this has caused, it's definitely not a great idea for us to potentially block in nouveau_fbcon_set_suspend_work(). We don't really need to anyway, and want to simply trigger the autosuspend timer instead. Signed-off-by: Lyude Paul --- drivers/gpu/drm/nouveau/no

[PATCH 6/9] drm/nouveau/kms: Use pm_runtime_put_autosuspend() in hpd_work

2020-07-29 Thread Lyude Paul
Again, we don't have any need to suspend the device synchronously here, and doing so could in theory lead to a deadlock (although it's unlikely since we've called pm_runtime_mark_last_busy() before-hand). Signed-off-by: Lyude Paul --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- 1 file chan

[PATCH 9/9] drm/nouveau/kms: Handle -EINPROGRESS in nouveau_display_acpi_ntfy()

2020-07-29 Thread Lyude Paul
This isn't an error, this just means there's multiple asynchronous resume requests going at the same time. Treat it like a success. Signed-off-by: Lyude Paul Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early") Cc: sta...@vger.kernel.org Cc: Karol Herbst C

[PATCH 8/9] drm/nouveau/kms: Fix runtime PM leak in nouveau_display_acpi_ntfy()

2020-07-29 Thread Lyude Paul
Signed-off-by: Lyude Paul Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early") Cc: sta...@vger.kernel.org Cc: Ben Skeggs Cc: dri-de...@lists.freedesktop.org Cc: nouv...@lists.freedesktop.org Cc: # v4.19+ --- drivers/gpu/drm/nouveau/nouveau_display.c | 2 +

[PATCH 2/9] drm/nouveau/kms: Fix rpm leak in nouveau_connector_hotplug()

2020-07-29 Thread Lyude Paul
Found another one, we forget to drop the runtime PM reference we grab here in the event of a failure. So, do that. Signed-off-by: Lyude Paul Fixes: 3e1a12754d4d ("drm/nouveau: Fix deadlocks in nouveau_connector_detect()") Cc: sta...@vger.kernel.org Cc: Ben Skeggs Cc: dri-de...@lists.freedesktop.

[PATCH 7/9] drm/nouveau/kms: Invert conditionals in nouveau_display_acpi_ntfy()

2020-07-29 Thread Lyude Paul
No functional changes here, just a drive-by cleanup. Signed-off-by: Lyude Paul [cc'd to stable since the next fix needs this patch to apply] Fixes: 79e765ad665d ("drm/nouveau/drm/nouveau: Prevent handling ACPI HPD events too early") Cc: sta...@vger.kernel.org Cc: Ben Skeggs Cc: dri-de...@lists.

[PATCH 4/9] drm/nouveau/kms/fbcon: Fix pm_runtime calls in nouveau_fbcon_output_poll_changed()

2020-07-29 Thread Lyude Paul
Noticed two problems here: * We're not dropping our runtime PM refs after getting an error * We're not backing off when pm_runtime_get() indicates that there's already a resume in progress (-EINPROGRESS) (after which any delayed fbcon events will get handled anyway) So, let's fix those. Signe

Re: [PATCH] ext4: check superblock mapped prior to get write access

2020-07-29 Thread Jan Kara
Hello! On Tue 28-07-20 10:33:53, Xianting Tian wrote: > One crash issue happened when directly down the network interface, > which nbd device is connected to. The kernel version is kernel > 4.14.0-115. > According to the debug log and call trace, the buffer of ext4 > superblock already unmapped af

Re: [PATCH] MAINTAINERS: edac: socfpga: transfer SoCFPGA EDAC maintainership

2020-07-29 Thread Thor Thayer
On 7/29/20 12:45 PM, Dinh Nguyen wrote: Thor Thayer is leaving Intel and will no longer be able to maintain the EDAC for SoCFPGA, thus transfer maintainership to Dinh Nguyen. Signed-off-by: Dinh Nguyen --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTA

[PATCH 0/3] Add Broadcom VK driver

2020-07-29 Thread Scott Branden
This patch series drops previous patches in [1] that were incorporated by Kees Cook into patch series "Introduce partial kernel_read_file() support" [2]. Remaining patches are contained in this series to add Broadcom VK driver. (which depends on request_firmware_into_buf API addition in other patc

[PATCH 1/3] bcm-vk: add bcm_vk UAPI

2020-07-29 Thread Scott Branden
Add user space api for bcm-vk driver. Signed-off-by: Scott Branden --- include/uapi/linux/misc/bcm_vk.h | 99 1 file changed, 99 insertions(+) create mode 100644 include/uapi/linux/misc/bcm_vk.h diff --git a/include/uapi/linux/misc/bcm_vk.h b/include/uapi/linux

[PATCH 3/3] MAINTAINERS: bcm-vk: add maintainer for Broadcom VK Driver

2020-07-29 Thread Scott Branden
Add maintainer entry for new Broadcom VK Driver Signed-off-by: Scott Branden --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0569cf304ca..10e4e286baeb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3658,6 +3658,13 @@ L: net...@vge

[PATCH 2/3] misc: bcm-vk: add Broadcom VK driver

2020-07-29 Thread Scott Branden
Add Broadcom VK driver offload engine. This driver interfaces to the VK PCIe offload engine to perform should offload functions as video transcoding on multiple streams in parallel. VK device is booted from files loaded using request_firmware_into_buf mechanism. After booted card status is update

Re: [PATCH v2 1/5] perf record: Set PERF_RECORD_PERIOD if attr->freq is set.

2020-07-29 Thread Ian Rogers
On Wed, Jul 29, 2020 at 11:52 AM Arnaldo Carvalho de Melo wrote: > > Em Tue, Jul 28, 2020 at 01:57:30AM -0700, Ian Rogers escreveu: > > From: David Sharp > > > > evsel__config() would only set PERF_RECORD_PERIOD if it set attr->freq > > There is no such thing as 'PERF_RECORD_PERIOD', its PERF_SAM

Re: kernel BUG at mm/internal.h:LINE! (2)

2020-07-29 Thread Andrew Morton
On Wed, 29 Jul 2020 13:04:21 -0700 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:68845a55 Merge branch 'akpm' into master (patches from And.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17c86c5490 > kernel con

Re: [GIT PULL] Audit fixes for v5.8 (#1)

2020-07-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jul 2020 10:54:14 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git > tags/audit-pr-20200729 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d3590ebf6f91350192737dd1d1b219c05277f067 Thank you! -- Dee

Re: [GIT PULL] 9p update for 5.8

2020-07-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jul 2020 08:33:06 +0200: > https://github.com/martinetd/linux tags/9p-for-5.8-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/21391520cbb597823050ac1bc343a0df3222ac90 Thank you! -- Deet-doot-dot, I am a bot. https://korg.wiki.ke

Re: [git pull] drm fixes for 5.8-rc8

2020-07-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jul 2020 14:44:16 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-07-29 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c2f3850df7f95537e79c561f7be49df2e4ad8060 Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [PATCH] include: Replace HTTP links with HTTPS ones

2020-07-29 Thread Andrew Morton
On Wed, 29 Jul 2020 14:21:12 -0700 Kees Cook wrote: > On Sun, Jul 26, 2020 at 01:01:17PM +0200, Alexander A. Klimov wrote: > > Rationale: > > Reduces attack surface on kernel devs opening the links for MITM > > as HTTPS traffic is much harder to manipulate. > > > > Signed-off-by: Alexander A. Kl

Re: [PATCH 1/1] netfilter: nat: add range checks for access to nf_nat_l[34]protos[]

2020-07-29 Thread Pablo Neira Ayuso
Hi Will, On Mon, Jul 27, 2020 at 05:57:20PM +, Will McVicker wrote: > The indexes to the nf_nat_l[34]protos arrays come from userspace. So we > need to make sure that before indexing the arrays, we verify the index > is within the array bounds in order to prevent an OOB memory access. > Here i

Re: [PATCH] drm/vkms: add missing drm_crtc_vblank_put to the get/put pair on flush

2020-07-29 Thread Daniel Vetter
On Wed, Jul 29, 2020 at 9:09 PM Melissa Wen wrote: > > Melissa Wen > > On Sat, Jul 25, 2020 at 3:12 PM Daniel Vetter wrote: > > > > On Sat, Jul 25, 2020 at 7:45 PM Melissa Wen wrote: > > > > > > On 07/25, Daniel Vetter wrote: > > > > On Sat, Jul 25, 2020 at 5:12 AM Sidong Yang wrote: > > > > >

[PATCH] arm64/alternatives: move length validation inside the subsection

2020-07-29 Thread Sami Tolvanen
Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement sequences") breaks LLVM's integrated assembler, because due to its one-pass design, it cannot compute instruction sequence lengths before the layout for the subsection has been finalized. This change fixes the build by moving

linux-next: Fixes tag needs some work in the powerpc tree

2020-07-29 Thread Stephen Rothwell
Hi all, In commit 443359aebce0 ("powerpc/perf: Fix MMCRA_BHRB_DISABLE define for binutils < 2.28") Fixes tag Fixes: 9908c826d5ed ("Add Power10 PMU feature to DT CPU features") has these problem(s): - Subject does not match target commit subject Just use git log -1 --format=

Re: [Linux-kernel-mentees] [PATCH] drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()

2020-07-29 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jul 29, 2020 at 4:11 AM Christian König wrote: > > Am 28.07.20 um 21:29 schrieb Peilin Ye: > > Compiler leaves a 4-byte hole near the end of `dev_info`, causing > > amdgpu_info_ioctl() to copy uninitialized kernel stack memory to userspace > > when `size` is greate

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Hi Peter, On Wed, Jul 29, 2020 at 5:39 PM wrote: > > On Wed, Jul 29, 2020 at 05:11:46PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_min_heap, > > from `lib/test_min_heap.c` to KUnit tests. > > > > Please apply this commit first (linux-kselftest/kunit-

Re: [PATCH v6 5/6] iommu/uapi: Handle data and argsz filled by users

2020-07-29 Thread Jacob Pan
On Tue, 28 Jul 2020 13:19:44 -0600 Alex Williamson wrote: > On Thu, 23 Jul 2020 10:25:39 -0700 > Jacob Pan wrote: > > > IOMMU user APIs are responsible for processing user data. This patch > > changes the interface such that user pointers can be passed into > > IOMMU code directly. Separate ker

Re: [PATCH -next] drm/amd/powerplay: Remove unneeded cast from memory allocation

2020-07-29 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jul 29, 2020 at 9:11 AM Li Heng wrote: > > Remove casting the values returned by memory allocation function. > > Coccinelle emits WARNING: > > ./drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c:893:37-46: > WARNING: casting value returned by memory all

[PATCH v2] perf bench: Add benchmark of find_next_bit

2020-07-29 Thread Ian Rogers
for_each_set_bit, or similar functions like for_each_cpu, may be hot within the kernel. If many bits were set then one could imagine on Intel a "bt" instruction with every bit may be faster than the function call and word length find_next_bit logic. Add a benchmark to measure this. This benchmark

Re: [PATCH net-next] hinic: add generating mailbox random index support

2020-07-29 Thread Jakub Kicinski
On Wed, 29 Jul 2020 08:59:19 +0800 Luo bin wrote: > add support to generate mailbox random id for VF to ensure that > the mailbox message from VF is valid and PF should check whether > the cmd from VF is supported before passing it to hw. This is hard to review. I don't see how the addition of hin

Re: [PATCH] perf bench: Add benchmark of find_next_bit

2020-07-29 Thread Ian Rogers
On Wed, Jul 29, 2020 at 1:44 PM Arnaldo Carvalho de Melo wrote: > > Em Wed, Jul 29, 2020 at 04:59:18PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Jul 28, 2020 at 08:51:52AM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Fri, Jul 24, 2020 at 12:19:59AM -0700, Ian Rogers escreveu: > >

Re: [PATCH-next v5 0/7] x86/boot: Remove run-time relocations from compressed kernel

2020-07-29 Thread Kees Cook
On Fri, Jul 17, 2020 at 04:17:54PM -0400, Arvind Sankar wrote: > Same as v5 previously posted, but rebased onto next-20200717. > > v5: > https://lore.kernel.org/lkml/20200715004133.1430068-1-nived...@alum.mit.edu/ BTW, some bits of feedback on process: - please don't re-use version numbers, thi

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