[PATCH 4/9] KVM: arm/arm64: vgic: Reset base address on kvm_vgic_dist_destroy()

2020-12-12 Thread Eric Auger
On vgic_dist_destroy(), the addresses are not reset. However for kvm selftest purpose this would allow to continue the test execution even after a failure when running KVM_RUN. So let's reset the base addresses. Signed-off-by: Eric Auger --- arch/arm64/kvm/vgic/vgic-init.c | 7 +-- 1 file

[PATCH 9/9] KVM: selftests: aarch64/vgic-v3 init sequence tests

2020-12-12 Thread Eric Auger
The tests exercise the VGIC_V3 device creation including the associated KVM_DEV_ARM_VGIC_GRP_ADDR group attributes: - KVM_VGIC_V3_ADDR_TYPE_DIST/REDIST (vcpu_first and vgic_first) - KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION (redist_regions). Another test dedicates to KVM_DEV_ARM_VGIC_GRP_REDIST_REGS

[PATCH 6/9] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc

2020-12-12 Thread Eric Auger
kvm_arch_vcpu_precreate() returns -EBUSY if the vgic is already initialized. So let's document that KVM_DEV_ARM_VGIC_CTRL_INIT must be called after all vcpu creations. Signed-off-by: Eric Auger --- Documentation/virt/kvm/devices/arm-vgic-v3.rst | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3/9] KVM: arm64: vgic-v3: Fix error handling in vgic_v3_set_redist_base()

2020-12-12 Thread Eric Auger
vgic_register_all_redist_iodevs may succeed while vgic_register_all_redist_iodevs fails. For example this can happen while adding a redistributor region overlapping a dist region. The failure only is detected on vgic_register_all_redist_iodevs when vgic_v3_check_base() gets called. In such a

[PATCH 0/9] KVM/ARM: Some vgic fixes and init sequence KVM selftests

2020-12-12 Thread Eric Auger
While writting vgic v3 init sequence KVM selftests I noticed some relatively minor issues. This was also the opportunity to try to fix the issue laterly reported by Zenghui, related to the RDIST_TYPER last bit emulation. The final patch is a first batch of VGIC init sequence selftests. Of course

Re: mmc: atmel-mci: Reduce scope for the variable “slot” in atmci_request_end()

2020-12-12 Thread Joe Perches
On Sat, 2020-12-12 at 14:17 +0100, Alexandre Belloni wrote: > On 12/12/2020 01:16:39-0800, Joe Perches wrote: > > In this case Alexandre it seems true, but in the generic case > > it may be false. It may depend on stack size and location. > > > > For instance, with large structs declared either

Re: [net-next PATCH] tcp: Add logic to check for SYN w/ data in tcp_simple_retransmit

2020-12-12 Thread Yuchung Cheng
On Fri, Dec 11, 2020 at 5:28 PM Alexander Duyck wrote: > > From: Alexander Duyck > > There are cases where a fastopen SYN may trigger either a ICMP_TOOBIG > message in the case of IPv6 or a fragmentation request in the case of > IPv4. This results in the socket stalling for a second or more as

[PULL REQUEST] i2c for 5.10

2020-12-12 Thread Wolfram Sang
Linus, the AT24 EEPROM driver still needs a bugfix for 5.10. Please pull. Thanks, Wolfram The following changes since commit 0477e92881850d44910a7e94fc2c46f96faa131f: Linux 5.10-rc7 (2020-12-06 14:25:12 -0800) are available in the Git repository at:

Re: [PATCH 3/6] iio:pressure:ms5637: limit available sample frequencies

2020-12-12 Thread Andy Shevchenko
On Thu, Dec 10, 2020 at 2:03 AM Alexandre Belloni wrote: > > Avoid exposing all the sampling frequencies for chip that only support a > subset. > +static ssize_t ms5637_show_samp_freq(struct device *dev, struct > device_attribute *attr, char *buf) > +{ > + struct iio_dev *indio_dev =

[PATCH] net: bcmgenet: Fix a resource leak in an error handling path in the probe functin

2020-12-12 Thread Christophe JAILLET
If the 'register_netdev()' call fails, we must undo a previous 'bcmgenet_mii_init()' call. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Christophe JAILLET --- The missing 'bcmgenet_mii_exit()' call is added here, instead of in the error handling path in order to

Re: [PATCH v3] block: drop dead assignments in loop_init()

2020-12-12 Thread Jens Axboe
On 12/11/20 10:13 PM, Lukas Bulwahn wrote: > Commit 8410d38c2552 ("loop: use __register_blkdev to allocate devices on > demand") simplified loop_init(); so computing the range of the block region > is not required anymore and can be dropped. > > Drop dead assignments in loop_init(). > > As

Re: [PATCH 0/3] block: blk_interposer - Block Layer Interposer

2020-12-12 Thread Jens Axboe
On 12/11/20 11:03 AM, Hannes Reinecke wrote: > On 12/11/20 6:04 PM, Jens Axboe wrote: >> On 12/11/20 9:56 AM, Hannes Reinecke wrote: >>> On 12/11/20 5:33 PM, Jens Axboe wrote: On 12/11/20 9:30 AM, Mike Snitzer wrote: > While I still think there needs to be a proper _upstream_ consumer of

Re: [PATCH 0/3] Remove in_interrupt() usage in sr.

2020-12-12 Thread Jens Axboe
On 12/4/20 9:48 AM, Sebastian Andrzej Siewior wrote: > Before v2.1.62 sr_read_sector() did MODE_SELECT to set the requested sector > size, > issued READ_10 and then used MODE_SELECT to select a sector size of 2048 > bytes. > This function was used to serve ioctl()'s command CDROMREADMODE2 and >

Re: [PATCH 0/3] blk-mq: trivial helper and fixes comments

2020-12-12 Thread Jens Axboe
On 12/4/20 8:20 AM, Minwoo Im wrote: > Hello, > > This patch set contains: > - Introduce a helper to allocate tagset tags for the first time > without 'realloc' keyword that used to be taken. > - Fixes for comments need to be updated. > > Please have a look. Applied, thanks. -- Jens

Re: [PATCH AUTOSEL 5.9 15/23] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-12 Thread Andrea Parri
Hi Sasha, On Sat, Dec 12, 2020 at 11:07:56AM -0500, Sasha Levin wrote: > From: "Andrea Parri (Microsoft)" > > [ Upstream commit 3b8c72d076c42bf27284cda7b2b2b522810686f8 ] FYI, we found that this commit introduced a regression and posted a revert:

[PATCH v9 3/8] IMA: define a hook to measure kernel integrity critical data

2020-12-12 Thread Tushar Sugandhi
IMA provides capabilities to measure file data, and in-memory buffer data. However, various data structures, policies, and states stored in kernel memory also impact the integrity of the system. Several kernel subsystems contain such integrity critical data. These kernel subsystems help protect

[PATCH v9 4/8] IMA: add policy rule to measure critical data

2020-12-12 Thread Tushar Sugandhi
A new IMA policy rule is needed for the IMA hook ima_measure_critical_data() and the corresponding func CRITICAL_DATA for measuring the input buffer. The policy rule should ensure the buffer would get measured only when the policy rule allows the action. The policy rule should also support the

[PATCH v9 7/8] IMA: define a builtin critical data measurement policy

2020-12-12 Thread Tushar Sugandhi
From: Lakshmi Ramasubramanian Define a new critical data builtin policy to allow measuring early kernel integrity critical data before a custom IMA policy is loaded. Add critical data to built-in IMA rules if the kernel command line contains "ima_policy=critical_data". Update the documentation

[PATCH v9 8/8] selinux: include a consumer of the new IMA critical data hook

2020-12-12 Thread Tushar Sugandhi
From: Lakshmi Ramasubramanian SELinux stores the active policy in memory, so the changes to this data at runtime would have an impact on the security guarantees provided by SELinux. Measuring in-memory SELinux policy through IMA subsystem provides a secure way for the attestation service to

[PATCH v9 0/8] IMA: support for measuring kernel integrity critical data

2020-12-12 Thread Tushar Sugandhi
IMA measures files and buffer data such as keys, command-line arguments passed to the kernel on kexec system call, etc. While these measurements are necessary for monitoring and validating the integrity of the system, they are not sufficient. Various data structures, policies, and states stored in

[PATCH v9 2/8] IMA: add support to measure buffer data hash

2020-12-12 Thread Tushar Sugandhi
The original IMA buffer data measurement sizes were small (e.g. boot command line), but the new buffer data measurement use cases have data sizes that are a lot larger. Just as IMA measures the file data hash, not the file data, IMA should similarly support the option for measuring the hash of

[PATCH v9 5/8] IMA: limit critical data measurement based on a label

2020-12-12 Thread Tushar Sugandhi
System administrators should be able to limit which kernel subsystems they want to measure the critical data for. To enable that, an IMA policy condition to choose specific kernel subsystems is needed. This policy condition would constrain the measurement of the critical data based on a label for

[PATCH v9 1/8] IMA: generalize keyring specific measurement constructs

2020-12-12 Thread Tushar Sugandhi
IMA functions such as ima_match_keyring(), process_buffer_measurement(), ima_match_policy() etc. handle data specific to keyrings. Currently, these constructs are not generic to handle any func specific data. This makes it harder to extend them without code duplication. Refactor the keyring

[PATCH v9 6/8] IMA: extend critical data hook to limit the measurement based on a label

2020-12-12 Thread Tushar Sugandhi
The IMA hook ima_measure_critical_data() does not support a way to specify the source of the critical data provider. Thus, the data measurement cannot be constrained based on the data source label in the IMA policy. Extend the IMA hook ima_measure_critical_data() to support passing the data

Re: [PATCH v5 2/2] net: dsa: qca: ar9331: export stats64

2020-12-12 Thread Jakub Kicinski
On Sat, 12 Dec 2020 15:48:52 +0200 Vladimir Oltean wrote: > > + stats->rx_packets = u64_stats_read(>rx64byte) + > > + u64_stats_read(>rx128byte) + u64_stats_read(>rx256byte) + > > + u64_stats_read(>rx512byte) + u64_stats_read(>rx1024byte) + > > +

Re: [patch] close_range.2: new page documenting close_range(2)

2020-12-12 Thread Alejandro Colomar (man-pages)
Hi Christian, Makes sense to me. Thanks, Alex On 12/12/20 1:14 PM, Christian Brauner wrote: > On Thu, Dec 10, 2020 at 03:36:42PM +0100, Alejandro Colomar (man-pages) wrote: >> Hi Christian, > > Hi Alex, > >> >> Thanks for confirming that behavior. Seems reasonable. >> >> I was wondering...

[PATCH v2] mm/vmalloc: randomize vmalloc() allocations

2020-12-12 Thread Topi Miettinen
Memory mappings inside kernel allocated with vmalloc() are in predictable order and packed tightly toward the low addresses. With new kernel boot parameter 'randomize_vmalloc=1', the entire area is used randomly to make the allocations less predictable and harder to guess for attackers. Also

Re: [RFC] ravb: Add support for optional txc_refclk

2020-12-12 Thread Sergei Shtylyov
Hello! On 12.12.2020 19:56, Adam Ford wrote: The SoC expects the txv_refclk is provided, but if it is provided by a programmable clock, there needs to be a way to get and enable this clock to operate. It needs to be optional since it's only necessary for those with programmable clocks.

Re: [PATCH 3/3] kbuild: rewrite ld-version.sh in shell script

2020-12-12 Thread Dominique Martinet
Masahiro Yamada wrote on Sun, Dec 13, 2020: > This script was written in awk in spite of the file extension '.sh'. > Rewrite it as a shell script. Wow! I wasn't expecting so much, would have sent some rework after the upcoming merge window. Thank you. Some comments below that you can probably

[PATCH] media: vsp1: Fix an error handling path in the probe function

2020-12-12 Thread Christophe JAILLET
A previous 'rcar_fcp_get()' call must be undone in the error handling path, as already done in the remove function. Fixes: 94fcdf829793 ("[media] v4l: vsp1: Add FCP support") Signed-off-by: Christophe JAILLET --- drivers/media/platform/vsp1/vsp1_drv.c | 4 +++- 1 file changed, 3 insertions(+),

KMSAN: uninit-value in legacy_dvb_usb_read_remote_control

2020-12-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:73d62e81 kmsan: random: prevent boot-time reports in _mix_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=12d97ccb50 kernel config:

[tip: timers/core] ntp: Fix build error

2020-12-12 Thread tip-bot2 for Ingo Molnar
The following commit has been merged into the timers/core branch of tip: Commit-ID: a3356a079da268cd35460d9bfe052c74383e179b Gitweb: https://git.kernel.org/tip/a3356a079da268cd35460d9bfe052c74383e179b Author:Ingo Molnar AuthorDate:Sat, 12 Dec 2020 18:29:20 +01:00

Re: [PATCH v8 4/8] IMA: add policy rule to measure critical data

2020-12-12 Thread Tushar Sugandhi
+ case CRITICAL_DATA: + if (!rule->data_source) + return true; + + opt_list = rule->data_source; + break; I guess this case should unconditionally return true in this patch and then the include this additional logic in the

Re: [PATCH v5 2/2] net: dsa: qca: ar9331: export stats64

2020-12-12 Thread Jakub Kicinski
On Fri, 11 Dec 2020 11:53:22 +0100 Oleksij Rempel wrote: > Add stats support for the ar9331 switch. > > Signed-off-by: Oleksij Rempel > --- > drivers/net/dsa/qca/ar9331.c | 256 ++- > 1 file changed, 255 insertions(+), 1 deletion(-) > > diff --git

Re: [Cocci] [PATCH 1/3] kbuild: do not use scripts/ld-version.sh for checking spatch version

2020-12-12 Thread Julia Lawall
On Sun, 13 Dec 2020, Masahiro Yamada wrote: > scripts/ld-version.sh was, as its file name implies, originally intended > for the GNU ld version, but is (ab)used for the spatch version too. > > Use 'sort -CV' for the version comparison, then coccicheck does not need > to use

Re: [LSFMMBPF 2021] A status update

2020-12-12 Thread Matthew Wilcox
On Fri, Dec 04, 2020 at 10:48:53AM -0500, Josef Bacik wrote: > We on the program committee hope everybody has been able to stay safe and > healthy during this challenging time, and look forward to being able to see > all of you in person again when it is safe. > > The current plans for LSFMMBPF

Re: [PATCH v3 5/9] spi: spi-mem: Allow masters to transfer dummy cycles directly by hardware

2020-12-12 Thread Sowjanya Komatineni
On 12/12/20 2:57 AM, Boris Brezillon wrote: On Fri, 11 Dec 2020 13:15:59 -0800 Sowjanya Komatineni wrote: This patch adds a flag SPI_MASTER_USES_HW_DUMMY_CYCLES for the controllers that support transfer of dummy cycles by the hardware directly. Hm, not sure this is a good idea. I mean, if

Re: [PATCH v5 1/2] net: dsa: add optional stats64 support

2020-12-12 Thread Jakub Kicinski
On Fri, 11 Dec 2020 11:53:21 +0100 Oleksij Rempel wrote: > +static void dsa_slave_get_stats64(struct net_device *dev, > + struct rtnl_link_stats64 *s) > +{ > + struct dsa_port *dp = dsa_slave_to_port(dev); > + struct dsa_switch *ds = dp->ds; > + > + if

Re: [PATCH net-next v3 0/4] vsock: Add flags field in the vsock address

2020-12-12 Thread Jakub Kicinski
On Fri, 11 Dec 2020 16:24:13 +0100 Stefano Garzarella wrote: > On Fri, Dec 11, 2020 at 12:32:37PM +0200, Andra Paraschiv wrote: > >vsock enables communication between virtual machines and the host they are > >running on. Nested VMs can be setup to use vsock channels, as the multi > >transport

Re: [PATCH -next] platform: surface: fix non-PM_SLEEP build warnings

2020-12-12 Thread Randy Dunlap
On 12/12/20 5:24 AM, Andy Shevchenko wrote: > On Fri, Dec 11, 2020 at 9:20 PM Randy Dunlap wrote: >> >> Fix build warnings when CONFIG_PM_SLEEP is not enabled and these >> functions are not used: >> >> ../drivers/platform/surface/surface_gpe.c:189:12: warning: >> ‘surface_gpe_resume’ defined but

Re: [PATCH] net/mlx4: Use true,false for bool variable

2020-12-12 Thread Jakub Kicinski
On Fri, 11 Dec 2020 11:05:18 +0100 Vasyl Gomonovych wrote: > Fix en_rx.c:687:1-17: WARNING: Assignment of 0/1 to bool variable > Fix main.c:4465:5-13: WARNING: Comparison of 0/1 to bool variable Apart from addressing Joe's comment please name the tool which produced those.

[RFC] ravb: Add support for optional txc_refclk

2020-12-12 Thread Adam Ford
The SoC expects the txv_refclk is provided, but if it is provided by a programmable clock, there needs to be a way to get and enable this clock to operate. It needs to be optional since it's only necessary for those with programmable clocks. Signed-off-by: Adam Ford diff --git

[PATCH 2/3] kbuild: LD_VERSION redenomination

2020-12-12 Thread Masahiro Yamada
Commit ccbef1674a15 ("Kbuild, lto: add ld-version and ld-ifversion macros") introduced scripts/ld-version.sh for GCC LTO. At that time, this script handled 5 version fields because GCC LTO needed the downstream binutils. (https://lkml.org/lkml/2014/4/8/272) The code snippet from the submitted

[PATCH 1/3] kbuild: do not use scripts/ld-version.sh for checking spatch version

2020-12-12 Thread Masahiro Yamada
scripts/ld-version.sh was, as its file name implies, originally intended for the GNU ld version, but is (ab)used for the spatch version too. Use 'sort -CV' for the version comparison, then coccicheck does not need to use scripts/ld-version.sh. Fix nsdeps as well. Signed-off-by: Masahiro Yamada

[PATCH 3/3] kbuild: rewrite ld-version.sh in shell script

2020-12-12 Thread Masahiro Yamada
This script was written in awk in spite of the file extension '.sh'. Rewrite it as a shell script. The code was mostly copy-pasted from scripts/lld-version.sh. The two scripts can be merged, but I am keeping this as a separate file for now. I tested this script for some corner cases reported in

Re: [PATCH linux hwmon-next v5 3/3] dt-bindings: (hwmon/sbtsi_tmep) Add SB-TSI hwmon driver bindings

2020-12-12 Thread Guenter Roeck
On Fri, Dec 11, 2020 at 01:54:27PM -0800, Kun Yi wrote: > Document device tree bindings for AMD SB-TSI emulated temperature > sensor. > > Signed-off-by: Kun Yi Applied, after fixing the subject line. I also added Rob's Reviewed-by: tag from v2. Guenter > --- >

Re: [PATCH linux hwmon-next v5 2/3] hwmon: (sbtsi) Add documentation

2020-12-12 Thread Guenter Roeck
On Fri, Dec 11, 2020 at 01:54:26PM -0800, Kun Yi wrote: > Document the SB-TSI sensor interface driver. > > Signed-off-by: Kun Yi Applied. Note that I added the SPDX identifier to match the one used in the source file. Guenter > --- > Documentation/hwmon/index.rst | 1 + >

Re: [PATCH linux hwmon-next v5 1/3] hwmon: (sbtsi) Add basic support for SB-TSI sensors

2020-12-12 Thread Guenter Roeck
On Fri, Dec 11, 2020 at 01:54:25PM -0800, Kun Yi wrote: > SB Temperature Sensor Interface (SB-TSI) is an SMBus compatible > interface that reports AMD SoC's Ttcl (normalized temperature), > and resembles a typical 8-pin remote temperature sensor's I2C interface > to BMC. > > This commit adds

[PATCH AUTOSEL 5.9 08/23] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.9 04/23] dm integrity: don't use drivers that have CRYPTO_ALG_ALLOCATES_MEMORY

2020-12-12 Thread Sasha Levin
From: Mikulas Patocka [ Upstream commit a7a10bce8a04f48238a8306ec97d430b77917015 ] Don't use crypto drivers that have the flag CRYPTO_ALG_ALLOCATES_MEMORY set. These drivers allocate memory and thus they are not suitable for block I/O processing. Signed-off-by: Mikulas Patocka Signed-off-by:

[PATCH AUTOSEL 5.9 06/23] ASoC: rt5682: change SAR voltage threshold

2020-12-12 Thread Sasha Levin
From: Shuming Fan [ Upstream commit aa4cb898b80a28a610e26d1513e6dd42d995c225 ] To fix errors in some 4 poles headset detection cases, this patch adjusts the voltage threshold for mic detection. Signed-off-by: Shuming Fan Link:

[PATCH AUTOSEL 5.9 05/23] gfs2: set lockdep subclass for iopen glocks

2020-12-12 Thread Sasha Levin
From: Alexander Aring [ Upstream commit 515b269d5bd29a986d5e1c0a0cba87fa865a48b4 ] This patch introduce a new globs attribute to define the subclass of the glock lockref spinlock. This avoid the following lockdep warning, which occurs when we lock an inode lock while an iopen lock is held:

[PATCH AUTOSEL 5.9 02/23] drm/tegra: sor: Ensure regulators are disabled on teardown

2020-12-12 Thread Sasha Levin
From: Marc Zyngier [ Upstream commit 5c1d644c09dbc13b2dc652435786e42b05ac1bb7 ] The Tegra SOR driver uses the devm infrastructure to request regulators, but enables them without registering them with the infrastructure. This results in the following splat if probing fails for any odd resaon

[PATCH AUTOSEL 5.9 14/23] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link:

[PATCH AUTOSEL 5.9 09/23] selftests: tc-testing: enable CONFIG_NET_SCH_RED as a module

2020-12-12 Thread Sasha Levin
From: Davide Caratti [ Upstream commit e14038a7ead09faa180eb072adc4a2157a0b475f ] a proper kernel configuration for running kselftest can be obtained with: $ yes | make kselftest-merge enable compile support for the 'red' qdisc: otherwise, tdc kselftest fail when trying to run tdc test items

[PATCH AUTOSEL 5.4 01/14] drm/tegra: replace idr_init() by idr_init_base()

2020-12-12 Thread Sasha Levin
From: Deepak R Varma [ Upstream commit 41f71629b4c432f8dd47d70ace813be5f79d4d75 ] idr_init() uses base 0 which is an invalid identifier for this driver. The new function idr_init_base allows IDR to set the ID lookup from base 1. This avoids all lookups that otherwise starts from 0 since 0 is

[PATCH AUTOSEL 5.9 03/23] drm/tegra: replace idr_init() by idr_init_base()

2020-12-12 Thread Sasha Levin
From: Deepak R Varma [ Upstream commit 41f71629b4c432f8dd47d70ace813be5f79d4d75 ] idr_init() uses base 0 which is an invalid identifier for this driver. The new function idr_init_base allows IDR to set the ID lookup from base 1. This avoids all lookups that otherwise starts from 0 since 0 is

[PATCH AUTOSEL 5.9 21/23] perf/x86/intel: Check PEBS status correctly

2020-12-12 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit fc17db8aa4c53cbd2d5469bb0521ea0f0a6dbb27 ] The kernel cannot disambiguate when 2+ PEBS counters overflow at the same time. This is what the comment for this code suggests. However, I see the comparison is done with the unfiltered p->status which is a

[PATCH AUTOSEL 5.9 19/23] iwlwifi: pcie: add some missing entries for AX210

2020-12-12 Thread Sasha Levin
From: Golan Ben Ami [ Upstream commit 9b15596c5006d82b2f82810e8cbf80d8c6e7e7b4 ] Some subsytem device IDs were missing from the list, so some AX210 devices were not recognized. Add them. Signed-off-by: Golan Ben Ami Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link:

[PATCH AUTOSEL 5.4 02/14] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 5.9 17/23] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and

[PATCH AUTOSEL 5.4 10/14] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and

[PATCH AUTOSEL 5.4 08/14] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-12 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 3b8c72d076c42bf27284cda7b2b2b522810686f8 ] Check that the packet is of the expected size at least, don't copy data past the packet. Link: https://lore.kernel.org/r/20201118145348.109879-1-parri.and...@gmail.com Cc: "James E.J. Bottomley" Cc:

[PATCH AUTOSEL 5.4 07/14] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link:

Re: [PATCH 4/4] MIPS: mm: Clean up setup of protection map

2020-12-12 Thread Guenter Roeck
On Fri, Nov 13, 2020 at 12:09:52PM +0100, Thomas Bogendoerfer wrote: > Protection map difference between RIXI and non RIXI cpus is _PAGE_NO_EXEC > and _PAGE_NO_READ usage. Both already take care of cpu_has_rixi while > setting up the page bits. So we just need one setup of protection map > and can

[PATCH AUTOSEL 5.4 04/14] habanalabs: put devices before driver removal

2020-12-12 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit b7c56bdec7a29c789fec27f84d40f52fbdfa ] Driver never puts its device and control_device objects, hence a memory leak is introduced every driver removal. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Signed-off-by: Sasha

[PATCH AUTOSEL 5.4 11/14] iwlwifi: pcie: add one missing entry for AX210

2020-12-12 Thread Sasha Levin
From: Luca Coelho [ Upstream commit 5febcdef30902fa870128b9789b873199f13aff1 ] The 0x0024 subsytem device ID was missing from the list, so some AX210 devices were not recognized. Add it. Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link:

[PATCH AUTOSEL 5.4 05/14] arm64: syscall: exit userspace before unmasking exceptions

2020-12-12 Thread Sasha Levin
From: Mark Rutland [ Upstream commit ca1314d73eed493c49bb1932c60a8605530db2e4 ] In el0_svc_common() we unmask exceptions before we call user_exit(), and so there's a window where an IRQ or debug exception can be taken while RCU is not watching. In do_debug_exception() we account for this in via

[PATCH AUTOSEL 5.4 06/14] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the

[PATCH AUTOSEL 5.9 01/23] drm/tegra: sor: Don't warn on probe deferral

2020-12-12 Thread Sasha Levin
From: Jon Hunter [ Upstream commit cb7ff314e1d9f3d6c62fa2c392e41174721ed0b3 ] Deferred probe is an expected return value for tegra_output_probe(). Given that the driver deals with it properly, there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter

[PATCH] dmaengine: owl-dma: Fix a resource leak in the remove function

2020-12-12 Thread Christophe JAILLET
A 'dma_pool_destroy()' call is missing in the remove function. Add it. This call is already made in the error handling path of the probe function. Fixes: 47e20577c24d ("dmaengine: Add Actions Semi Owl family S900 DMA driver") Signed-off-by: Christophe JAILLET --- drivers/dma/owl-dma.c | 1 + 1

[PATCH AUTOSEL 4.19 3/9] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 2/9] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 4.19 9/9] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and

[PATCH AUTOSEL 5.9 10/23] habanalabs: free host huge va_range if not used

2020-12-12 Thread Sasha Levin
From: Ofir Bitton [ Upstream commit c8c39fbd01d42c30454e42c16bcd69c17260b90a ] If huge range is not valid, driver uses the host range also for huge page allocations, but driver never frees its allocation. This introduces a memory leak every time a user closes its context. Signed-off-by: Ofir

[PATCH AUTOSEL 4.19 4/9] arm64: syscall: exit userspace before unmasking exceptions

2020-12-12 Thread Sasha Levin
From: Mark Rutland [ Upstream commit ca1314d73eed493c49bb1932c60a8605530db2e4 ] In el0_svc_common() we unmask exceptions before we call user_exit(), and so there's a window where an IRQ or debug exception can be taken while RCU is not watching. In do_debug_exception() we account for this in via

[PATCH AUTOSEL 4.19 5/9] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the

[PATCH AUTOSEL 4.19 8/9] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link:

[PATCH AUTOSEL 4.19 1/9] drm/tegra: replace idr_init() by idr_init_base()

2020-12-12 Thread Sasha Levin
From: Deepak R Varma [ Upstream commit 41f71629b4c432f8dd47d70ace813be5f79d4d75 ] idr_init() uses base 0 which is an invalid identifier for this driver. The new function idr_init_base allows IDR to set the ID lookup from base 1. This avoids all lookups that otherwise starts from 0 since 0 is

[PATCH AUTOSEL 4.14 1/8] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 5.4 13/14] perf/x86/intel: Check PEBS status correctly

2020-12-12 Thread Sasha Levin
From: Stephane Eranian [ Upstream commit fc17db8aa4c53cbd2d5469bb0521ea0f0a6dbb27 ] The kernel cannot disambiguate when 2+ PEBS counters overflow at the same time. This is what the comment for this code suggests. However, I see the comparison is done with the unfiltered p->status which is a

[PATCH AUTOSEL 4.14 8/8] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and

[PATCH AUTOSEL 4.14 7/8] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link:

[PATCH AUTOSEL 4.9 1/5] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 4.9 3/5] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.9 13/23] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the

[PATCH AUTOSEL 4.9 5/5] dm table: Remove BUG_ON(in_interrupt())

2020-12-12 Thread Sasha Levin
From: Thomas Gleixner [ Upstream commit e7b624183d921b49ef0a96329f21647d38865ee9 ] The BUG_ON(in_interrupt()) in dm_table_event() is a historic leftover from a rework of the dm table code which changed the calling context. Issuing a BUG for a wrong calling context is frowned upon and

[PATCH AUTOSEL 4.4 1/2] drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

2020-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d ] This wasn't initialized for pre NV50 hardware. Signed-off-by: Christian König Reported-and-Tested-by: Mark Hounschell Reviewed-by: Karol Herbst Link: https://patchwork.freedesktop.org/series/84298/

[PATCH AUTOSEL 4.9 2/5] drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

2020-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d ] This wasn't initialized for pre NV50 hardware. Signed-off-by: Christian König Reported-and-Tested-by: Mark Hounschell Reviewed-by: Karol Herbst Link: https://patchwork.freedesktop.org/series/84298/

[PATCH AUTOSEL 4.14 4/8] vxlan: Add needed_headroom for lower device

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit 0a35dc41fea67ac4495ce7584406bf9557a6e7d0 ] It was observed that sending data via batadv over vxlan (on top of wireguard) reduced the performance massively compared to raw ethernet or batadv on raw ethernet. A check of perf data showed that the

Re: [PATCH v3] Compiler Attributes: remove CONFIG_ENABLE_MUST_CHECK

2020-12-12 Thread Guenter Roeck
On Sun, Nov 29, 2020 at 04:33:35AM +0900, Masahiro Yamada wrote: > Revert commit cebc04ba9aeb ("add CONFIG_ENABLE_MUST_CHECK"). > > A lot of warn_unused_result warnings existed in 2006, but until now > they have been fixed thanks to people doing allmodconfig tests. > > Our goal is to always

Re: [PATCH -next] c6x: fix build of signal.c using _TIF_SIGNALs

2020-12-12 Thread Jens Axboe
On 12/9/20 8:17 PM, Randy Dunlap wrote: > kernel/signal.c in arch/c6x/ needs to build > since it contains _TIF_SIGNALfoobar #defines, so add it. > > Placates these build errors: > > ../arch/c6x/kernel/signal.c: In function 'do_notify_resume': > ../arch/c6x/kernel/signal.c:316:27: error:

[PATCH AUTOSEL 4.14 2/8] drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve

2020-12-12 Thread Sasha Levin
From: Christian König [ Upstream commit aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d ] This wasn't initialized for pre NV50 hardware. Signed-off-by: Christian König Reported-and-Tested-by: Mark Hounschell Reviewed-by: Karol Herbst Link: https://patchwork.freedesktop.org/series/84298/

[PATCH AUTOSEL 4.14 3/8] drm/tegra: sor: Disable clocks on error in tegra_sor_init()

2020-12-12 Thread Sasha Levin
From: Qinglang Miao [ Upstream commit bf3a3cdcad40e5928a22ea0fd200d17fd6d6308d ] Fix the missing clk_disable_unprepare() before return from tegra_sor_init() in the error handling case. Signed-off-by: Qinglang Miao Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.14 5/8] vxlan: Copy needed_tailroom from lowerdev

2020-12-12 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit a5e74021e84bb5eadf760aaf2c583304f02269be ] While vxlan doesn't need any extra tailroom, the lowerdev might need it. In that case, copy it over to reduce the chance for additional (re)allocations in the transmit path. Signed-off-by: Sven Eckelmann Link:

[PATCH AUTOSEL 5.9 07/23] kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling

2020-12-12 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8ff00399b153440c1c83e20c43020385b416415b ] powerpc/64s keeps a counter in the mm which counts bits set in mm_cpumask as well as other things. This means it can't use generic code to clear bits out of the mask and doesn't adjust the arch specific counter.

[PATCH AUTOSEL 5.4 09/14] scsi: mpt3sas: Increase IOCInit request timeout to 30s

2020-12-12 Thread Sasha Levin
From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] Currently the IOCInit request message timeout is set to 10s. This is not sufficient in some scenarios such as during HBA FW downgrade operations. Increase the IOCInit request timeout to 30s. Link:

[PATCH AUTOSEL 5.9 22/23] kbuild: avoid split lines in .mod files

2020-12-12 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 7d32358be8acb119dcfe39b6cf67ec6d94bf1fe7 ] "xargs echo" is not a safe way to remove line breaks because the input may exceed the command line limit and xargs may break it up into multiple invocations of echo. This should never happen because

[PATCH AUTOSEL 5.9 20/23] drm/amd/display: Init clock value by current vbios CLKs

2020-12-12 Thread Sasha Levin
From: Brandon Syu [ Upstream commit 7e0b367db85ef7b91399006253759a024eab7653 ] [Why] While booting into OS, driver updates DPP/DISP CLKs. But init clock value is zero which is invalid. [How] Get current clocks value to update init clocks. To avoid underflow. Signed-off-by: Brandon Syu

[PATCH AUTOSEL 5.9 18/23] iwlwifi: pcie: add one missing entry for AX210

2020-12-12 Thread Sasha Levin
From: Luca Coelho [ Upstream commit 5febcdef30902fa870128b9789b873199f13aff1 ] The 0x0024 subsytem device ID was missing from the list, so some AX210 devices were not recognized. Add it. Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link:

<    1   2   3   4   >