[PATCH v4 3/7] clk: tegra: Ensure that PLLU configuration is applied properly

2021-03-12 Thread Dmitry Osipenko
The PLLU (USB) consists of the PLL configuration itself and configuration of the PLLU outputs. The PLLU programming is inconsistent on T30 vs T114, where T114 immediately bails out if PLLU is enabled and T30 re-enables a potentially already enabled PLL (left after bootloader) and then fully reprogr

[PATCH v4 4/7] clk: tegra: Halve SCLK rate on Tegra20

2021-03-12 Thread Dmitry Osipenko
Higher SCLK rates on Tegra20 require high core voltage. The higher clock rate may have a positive performance effect only for AHB DMA transfers and AVP CPU, but both aren't used by upstream kernel at all. Halve SCLK rate on Tegra20 in order to remove the high core voltage requirement. Acked-by: Th

[PATCH v4 6/7] clk: tegra: Don't allow zero clock rate for PLLs

2021-03-12 Thread Dmitry Osipenko
Zero clock rate doesn't make sense for PLLs and tegra-clk driver enters into infinite loop on trying to calculate PLL parameters for zero rate. Make code to error out if requested rate is zero. Originally this trouble was found by Robert Yang while he was trying to bring up upstream kernel on Sams

[PATCH v4 7/7] dt-bindings: clock: tegra: Convert to schema

2021-03-12 Thread Dmitry Osipenko
Convert NVIDIA Tegra clock bindings to schema. Signed-off-by: Dmitry Osipenko --- .../bindings/clock/nvidia,tegra-car.yaml | 118 ++ .../bindings/clock/nvidia,tegra114-car.txt| 63 -- .../bindings/clock/nvidia,tegra124-car.txt| 107 .../bind

[PATCH v4 2/7] clk: tegra: Fix refcounting of gate clocks

2021-03-12 Thread Dmitry Osipenko
The refcounting of the gate clocks has a bug causing the enable_refcnt to underflow when unused clocks are disabled. This happens because clk provider erroneously bumps the refcount if clock is enabled at a boot time, which it shouldn't be doing, and it does this only for the gate clocks, while per

Re: [PATCH 24/30] scsi: a100u2w: Remove unused variable 'bios_phys'

2021-03-12 Thread Christoph Hellwig
On Fri, Mar 12, 2021 at 09:47:32AM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): Looks good, Reviewed-by: Christoph Hellwig

[PATCH net] wireless/nl80211: fix wdev_id may be used uninitialized

2021-03-12 Thread Jarod Wilson
Build currently fails with -Werror=maybe-uninitialized set: net/wireless/nl80211.c: In function '__cfg80211_wdev_from_attrs': net/wireless/nl80211.c:124:44: error: 'wdev_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] Easy fix is to just initialize wdev_id to 0, since

[PATCH 0/5] Uncore PMON discovery mechanism support

2021-03-12 Thread kan . liang
From: Kan Liang A mechanism of self-describing HW for the uncore PMOM has been introduced with the latest Intel platforms. By reading through an MMIO page worth of information, SW can ???discover??? all the standard uncore PMON registers. With the discovery mechanism, Perf can - Retrieve the gen

[PATCH 1/5] perf/x86/intel/uncore: Parse uncore discovery tables

2021-03-12 Thread kan . liang
From: Kan Liang A self-describing mechanism for the uncore PerfMon hardware has been introduced with the latest Intel platforms. By reading through an MMIO page worth of information, perf can 'discover' all the standard uncore PerfMon registers in a machine. The discovery mechanism relies on BIO

[PATCH 2/5] perf/x86/intel/uncore: Generic support for the MSR type of uncore blocks

2021-03-12 Thread kan . liang
From: Kan Liang The discovery table provides the generic uncore block information for the MSR type of uncore blocks, e.g., the counter width, the number of counters, the location of control/counter registers, which is good enough to provide basic uncore support. It can be used as a fallback solut

[PATCH 5/5] perf/x86/intel/uncore: Generic support for the MMIO type of uncore blocks

2021-03-12 Thread kan . liang
From: Kan Liang The discovery table provides the generic uncore block information for the MMIO type of uncore blocks, which is good enough to provide basic uncore support. The box control field is composed of the BAR address and box control offset. When initializing the uncore blocks, perf shoul

[PATCH 4/5] perf/x86/intel/uncore: Generic support for the PCI type of uncore blocks

2021-03-12 Thread kan . liang
From: Kan Liang The discovery table provides the generic uncore block information for the PCI type of uncore blocks, which is good enough to provide basic uncore support. The PCI BUS and DEVFN information can be retrieved from the box control field. Introduce the uncore_pci_pmus_register() to re

Re: [PATCH 27/30] scsi: myrs: Remove a couple of unused 'status' variables

2021-03-12 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH 3/5] perf/x86/intel/uncore: Rename uncore_notifier to uncore_pci_sub_notifier

2021-03-12 Thread kan . liang
From: Kan Liang Perf will use a similar method to the PCI sub driver to register the PMUs for the PCI type of uncore blocks. The method requires a BUS notifier to support hotplug. The current BUS notifier cannot be reused, because it searches a const id_table for the corresponding registered PMU.

Re: [PATCH v4] do_wait: make PIDTYPE_PID case O(1) instead of O(n)

2021-03-12 Thread Oleg Nesterov
On 03/11, Jim Newsome wrote: > > +static bool is_effectively_child(struct wait_opts *wo, bool ptrace, > + struct task_struct *target) > +{ > + struct task_struct *parent = > + !ptrace ? target->real_parent : target->parent; > + > + return current ==

Re: [PATCH] powerpc: mm: book3s64: Fix a typo in the file mmu_context.c

2021-03-12 Thread Randy Dunlap
On 3/12/21 3:25 AM, Bhaskar Chowdhury wrote: > > s/detalis/details/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/powerpc/mm/book3s64/mmu_context.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/mm/book3s64/mmu_context.c > b

[PATCH v6 0/5] proc: subset=pid: Relax check of mount visibility

2021-03-12 Thread Alexey Gladkov
Allow to mount procfs with subset=pid option even if the entire procfs is not fully accessible to the mounter. Changelog - v6: * Add documentation about procfs mount restrictions. * Reorder commits for better review. v4: * Set SB_I_DYNAMIC only if pidonly is set. * Add an error message if

[PATCH v6 3/5] proc: Disable cancellation of subset=pid option

2021-03-12 Thread Alexey Gladkov
When procfs is mounted with subset=pid option, where is no way to remount it with this option removed. This is done in order not to make visible what ever was hidden since some checks occur during mount. This patch makes the limitation explicit and prints an error message. Signed-off-by: Alexey G

[PATCH v6 5/5] docs: proc: add documentation about relaxing visibility restrictions

2021-03-12 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- Documentation/filesystems/proc.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 5a1bb0e081fd..9d993aef7f1c 100644 --- a/Documentation/filesystems/proc.rst +++

[PATCH v6 1/5] docs: proc: add documentation about mount restrictions

2021-03-12 Thread Alexey Gladkov
Signed-off-by: Alexey Gladkov --- Documentation/filesystems/proc.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index 2fa69f710e2a..5a1bb0e081fd 100644 --- a/Documentation/filesystems/proc.rst +++ b/

[PATCH v6 4/5] proc: Relax check of mount visibility

2021-03-12 Thread Alexey Gladkov
Allow to mount procfs with subset=pid option even if the entire procfs is not fully accessible to the user. Signed-off-by: Alexey Gladkov --- fs/namespace.c | 30 ++ fs/proc/root.c | 16 ++-- include/linux/fs.h | 1 + 3 files changed, 29 insertion

[PATCH v6 2/5] proc: subset=pid: Show /proc/self/net only for CAP_NET_ADMIN

2021-03-12 Thread Alexey Gladkov
Cache the mounters credentials and allow access to the net directories contingent of the permissions of the mounter of proc. Do not show /proc/self/net when proc is mounted with subset=pid option and the mounter does not have CAP_NET_ADMIN. Signed-off-by: Alexey Gladkov --- fs/proc/proc_net.c

Re: [PATCH] staging: wimax: i2400m: Mundane typos fix in the file tx.c

2021-03-12 Thread Randy Dunlap
On 3/12/21 3:42 AM, Bhaskar Chowdhury wrote: > > s/exahusted/exhausted/ > s/caleed/called/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/staging/wimax/i2400m/tx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/wimax

Re: [PATCH] CIFS: Prevent error log on spurious oplock break

2021-03-12 Thread Tom Talpey
On 3/12/2021 6:49 AM, Vincent Whitchurch wrote: On Tue, Mar 09, 2021 at 04:29:14PM +0100, Steve French wrote: On Tue, Mar 9, 2021, 07:42 Vincent Whitchurch via samba-technical mailto:samba-techni...@lists.samba.org>> wrote: Thank you for the suggestions. In my case, I've only received some re

Re: [External] Re: [PATCH v3 3/4] mm: memcontrol: use obj_cgroup APIs to charge kmem pages

2021-03-12 Thread Muchun Song
On Fri, Mar 12, 2021 at 11:59 PM Johannes Weiner wrote: > > On Fri, Mar 12, 2021 at 05:22:55PM +0800, Muchun Song wrote: > > On Thu, Mar 11, 2021 at 6:05 AM Johannes Weiner wrote: > > > > @@ -6828,7 +6857,7 @@ static void uncharge_batch(const struct > > > > uncharge_gather *ug) > > > > > > > >

Re: slow boot with 7fef431be9c9 ("mm/page_alloc: place pages to tail in __free_pages_core()")

2021-03-12 Thread David Hildenbrand
On 12.03.21 17:19, Liang, Liang (Leo) wrote: [AMD Public Use] Dmesg attached. So, looks like the "real" slowdown starts once the buddy is up and running (no surprise). [0.044035] Memory: 6856724K/7200304K available (14345K kernel code, 9699K rwdata, 5276K rodata, 2628K init, 12104K b

Re: [PATCH net-next 2/4] gro: don't dereference napi->gro_hash[x] multiple times in dev_gro_receive()

2021-03-12 Thread Eric Dumazet
On Fri, Mar 12, 2021 at 5:22 PM Alexander Lobakin wrote: > > GRO bucket index doesn't change through the entire function. > Store a pointer to the corresponding bucket on stack once and use > it later instead of dereferencing again and again. > > Signed-off-by: Alexander Lobakin > --- > net/core

Re: [PATCH v4] do_wait: make PIDTYPE_PID case O(1) instead of O(n)

2021-03-12 Thread Jim Newsome
On 3/12/21 10:41, Oleg Nesterov wrote: > On 03/11, Jim Newsome wrote: >> + >> +if (target && is_effectively_child(wo, ptrace, target)) { >> +retval = wait_consider_task(wo, ptrace, target); > No, this is not right... You need to check target->ptrace != 0. Shoot; got lost in the s

Re: [PATCH] selftests/sgx: fix EINIT failure dueto SGX_INVALID_SIGNATURE

2021-03-12 Thread Jarkko Sakkinen
On Thu, Mar 11, 2021 at 12:53:49PM +0800, Tianjia Zhang wrote: > > > On 3/11/21 11:42 AM, Jarkko Sakkinen wrote: > > On Thu, Mar 11, 2021 at 10:47:50AM +0800, Jia Zhang wrote: > > > > > > > > > On 2021/3/11 上午5:39, Jarkko Sakkinen wrote: > > > > On Wed, Mar 10, 2021 at 08:44:44PM +0800, Jia Zha

Re: [PATCH v2 1/3] tpm: efi: Use local variable for calculating final log size

2021-03-12 Thread Jarkko Sakkinen
On Thu, Mar 11, 2021 at 09:02:38AM -0500, Stefan Berger wrote: > > On 3/10/21 6:24 PM, Jarkko Sakkinen wrote: > > On Thu, Mar 11, 2021 at 01:21:47AM +0200, Jarkko Sakkinen wrote: > > > On Wed, Mar 10, 2021 at 05:19:14PM -0500, Stefan Berger wrote: > > > > When tpm_read_log_efi is called multiple t

Re: [PATCH v4 0/9] soundwire: qcom: various improvements

2021-03-12 Thread Pierre-Louis Bossart
On 3/12/21 6:00 AM, Srinivas Kandagatla wrote: Thanks for reviewing v3 of this patchset! During testing SoundWire controller on SM8250 MTP, we found few issues like all the interrupts are not handled, all transport parameters are not read from device tree. Patch to add Auto Enumeration suppor

Re: [PATCH v22 8/8] x86/vdso: Add ENDBR64 to __vdso_sgx_enter_enclave

2021-03-12 Thread Jarkko Sakkinen
On Wed, Mar 10, 2021 at 03:20:20PM -0800, Dave Hansen wrote: > On 3/10/21 2:55 PM, Yu, Yu-cheng wrote: > > On 3/10/2021 2:39 PM, Jarkko Sakkinen wrote: > >> On Wed, Mar 10, 2021 at 02:05:19PM -0800, Yu-cheng Yu wrote: > >>> When CET is enabled, __vdso_sgx_enter_enclave() needs an endbr64 > >>> in t

Re: [PATCH v3 1/5] soundwire: add static port mapping support

2021-03-12 Thread Pierre-Louis Bossart
On 3/12/21 5:39 AM, Srinivas Kandagatla wrote: Some of the SoundWire device ports are statically mapped to Controller ports during design, however there is no way to expose this information to the controller. Controllers like Qualcomm ones use this info to setup static bandwidth parameters for

Re: [PATCH v22 8/8] x86/vdso: Add ENDBR64 to __vdso_sgx_enter_enclave

2021-03-12 Thread Jarkko Sakkinen
On Thu, Mar 11, 2021 at 09:42:05AM +0100, Peter Zijlstra wrote: > On Thu, Mar 11, 2021 at 05:36:06AM +0200, Jarkko Sakkinen wrote: > > Does it do any harm to put it there unconditionally? > > Blows up your text footprint and I$ pressure. These instructions are 4 > bytes each. > > Aside from that,

Re: [PATCH v22 8/8] x86/vdso: Add ENDBR64 to __vdso_sgx_enter_enclave

2021-03-12 Thread Jarkko Sakkinen
On Fri, Mar 12, 2021 at 06:55:57PM +0200, Jarkko Sakkinen wrote: > On Wed, Mar 10, 2021 at 03:20:20PM -0800, Dave Hansen wrote: > > On 3/10/21 2:55 PM, Yu, Yu-cheng wrote: > > > On 3/10/2021 2:39 PM, Jarkko Sakkinen wrote: > > >> On Wed, Mar 10, 2021 at 02:05:19PM -0800, Yu-cheng Yu wrote: > > >>>

Re: [PATCH net] net: ipa: terminate message handler arrays

2021-03-12 Thread Bjorn Andersson
On Fri 12 Mar 09:12 CST 2021, Alex Elder wrote: > When a QMI handle is initialized, an array of message handler > structures is provided, defining how any received message should > be handled based on its type and message ID. The QMI core code > traverses this array when a message arrives and cal

Re: [PATCH v1 2/3] driver core: Update device link status properly for device_bind_driver()

2021-03-12 Thread Jon Hunter
On 02/03/2021 21:11, Saravana Kannan wrote: > Device link status was not getting updated correctly when > device_bind_driver() is called on a device. This causes a warning[1]. > Fix this by updating device links that can be updated and dropping > device links that can't be updated to a sensible s

Re: [PATCH v22 8/8] x86/vdso: Add ENDBR64 to __vdso_sgx_enter_enclave

2021-03-12 Thread Dave Hansen
On 3/12/21 8:55 AM, Jarkko Sakkinen wrote: >> ENDBR is a special new instruction for the Indirect Branch Tracking >> (IBT) component of CET. IBT prevents attacks by ensuring that (most) >> indirect branches and function calls may only land at ENDBR >> instructions. Branches that don't follow the

Re: [RFC PATCH 0/6] spi: Add OSPI PHY calibration support for spi-cadence-quadspi

2021-03-12 Thread Pratyush Yadav
On 12/03/21 02:32PM, Michael Walle wrote: > Am 2021-03-11 20:12, schrieb Pratyush Yadav: > > The main problem here is telling the controller where to find the > > pattern and how to read it. This RFC uses nvmem cells which point to a > > fixed partition containing the data to do the reads. It depen

Re: [PATCH 4/4] KVM: x86/mmu: Factor out tdp_iter_return_to_root

2021-03-12 Thread Paolo Bonzini
On 12/03/21 17:35, Sean Christopherson wrote: What about calling it tdp_iter_restart()? Or tdp_iter_resume()? Or something like tdp_iter_restart_at_next() if we want it to give a hint that the next_last thing is where it restarts. I think I like tdp_iter_restart() the best. It'd be easy enoug

Re: [PATCH 0/4] Fix RCU warnings in TDP MMU

2021-03-12 Thread Paolo Bonzini
On 12/03/21 00:16, Ben Gardon wrote: The Linux Test Robot found a few RCU warnings in the TDP MMU: https://www.spinics.net/lists/kernel/msg3845500.html https://www.spinics.net/lists/kernel/msg3845521.html Fix these warnings and cleanup a hack in tdp_mmu_iter_cond_resched. Tested by compiling as

YOU HAVE WON

2021-03-12 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International progr

Re: [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd

2021-03-12 Thread Sedat Dilek
On Fri, Mar 12, 2021 at 5:57 PM Sedat Dilek wrote: > > On Sun, Mar 7, 2021 at 6:07 PM Alan Stern wrote: > > > > On Sun, Mar 07, 2021 at 05:57:39PM +0100, Sedat Dilek wrote: > > > On Sun, Mar 7, 2021 at 4:46 PM Alan Stern > > > wrote: > > > > > > > > On Sat, Mar 06, 2021 at 09:49:00PM +0100, Sed

[PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-12 Thread Daniel Lezcano
We want to have any kind of name for the cooling devices as we do no longer want to rely on auto-numbering. Let's replace the cooling device's fixed array by a char pointer to be allocated dynamically when registering the cooling device, so we don't limit the length of the name. Rework the error p

[PATCH v2 4/5] thermal/drivers/cpuidle_cooling: Use device name instead of auto-numbering

2021-03-12 Thread Daniel Lezcano
Currently the naming of a cooling device is just a cooling technique followed by a number. When there are multiple cooling devices using the same technique, it is impossible to clearly identify the related device as this one is just a number. For instance: thermal-idle-0 thermal-idle-1 thermal

[PATCH v2 3/5] thermal/drivers/devfreq_cooling: Use device name instead of auto-numbering

2021-03-12 Thread Daniel Lezcano
Currently the naming of a cooling device is just a cooling technique followed by a number. When there are multiple cooling devices using the same technique, it is impossible to clearly identify the related device as this one is just a number. For instance: thermal-devfreq-0 thermal-devfreq-1 e

[PATCH v2 5/5] thermal/drivers/cpufreq_cooling: Remove unused list

2021-03-12 Thread Daniel Lezcano
There is a list with the purpose of grouping the cpufreq cooling device together as described in the comments but actually it is unused, the code evolved since 2012 and the list was no longer needed. Delete the remaining unused list related code. Signed-off-by: Daniel Lezcano --- drivers/therma

[PATCH v2 2/5] thermal/drivers/cpufreq_cooling: Use device name instead of auto-numbering

2021-03-12 Thread Daniel Lezcano
Currently the naming of a cooling device is just a cooling technique followed by a number. When there are multiple cooling devices using the same technique, it is impossible to clearly identify the related device as this one is just a number. For instance: thermal-cpufreq-0 thermal-cpufreq-1 e

Re: [RFC PATCH v2 08/11] iommu/dma: Support PCI P2PDMA pages in dma-iommu map_sg

2021-03-12 Thread Logan Gunthorpe
On 2021-03-12 8:52 a.m., Robin Murphy wrote: > On 2021-03-11 23:31, Logan Gunthorpe wrote: >> When a PCI P2PDMA page is seen, set the IOVA length of the segment >> to zero so that it is not mapped into the IOVA. Then, in finalise_sg(), >> apply the appropriate bus address to the segment. The IOV

Re: [PATCH] ptrace: Allow other threads to access tracee

2021-03-12 Thread Oleg Nesterov
On 03/11, Jim Newsome wrote: > > I suppose even if the corruption of the register-values-themselves is > acceptable, some synchronization may be needed to avoid the possibility > of corrupting the kernel's data structures? Yes, the kernel can crash. Just look at the comment above ptrace_freeze_tr

Re: [PATCH 01/24] x86/resctrl: Split struct rdt_resource

2021-03-12 Thread James Morse
Hi Reinette, On 17/11/2020 19:20, Reinette Chatre wrote: > On 10/30/2020 9:10 AM, James Morse wrote: >> Splitting rdt_domain up in a similar way happens in the next patch. >> No change in behaviour, this patch just moves types around. > > Please remove the "this patch" term. >> diff --git a/arch

Re: [PATCH 03/24] x86/resctrl: Add resctrl_arch_get_num_closid()

2021-03-12 Thread James Morse
Hi Reinette, On 17/11/2020 19:57, Reinette Chatre wrote: > On 10/30/2020 9:10 AM, James Morse wrote: >> resctrl chooses whether to enable CDP, once it does, half the number >> of closid are available. MPAM doesn't behave like this, an in-kernel user >> of MPAM could be 'using CDP' while resctrl is

Re: [PATCH 04/24] x86/resctrl: Add a separate schema list for resctrl

2021-03-12 Thread James Morse
Hi Reinette On 17/11/2020 21:29, Reinette Chatre wrote: > On 10/30/2020 9:11 AM, James Morse wrote: >> To support multiple architectures, the resctrl code needs to be split >> into a 'fs' specific part in core code, and an arch-specific backend. >> >> It should be difficult for the arch-specific b

Re: [PATCH 05/24] x86/resctrl: Pass the schema in resdir's private pointer

2021-03-12 Thread James Morse
Hi Reinette, On 17/11/2020 21:49, Reinette Chatre wrote: > It is not clear what "resdir" mentioned in subject line refers to. rdtgroup_mkdir_info_resdir(), it looks I picked the wrong bit to identify it. ('info' in a name usually conveys no information at all!) > Could it be changed to "info di

Re: [PATCH 06/24] x86/resctrl: Store the effective num_closid in the schema

2021-03-12 Thread James Morse
Hi Reinette, On 17/11/2020 22:04, Reinette Chatre wrote: > On 10/30/2020 9:11 AM, James Morse wrote: >> resctrl_schema holds properties that vary with the style of configuration >> that resctrl applies to a resource. >> >> Once the arch code has a single resource per cache that can be configured,

[PATCH v7 1/5] tools/certs: Add print-cert-tbs-hash.sh

2021-03-12 Thread Mickaël Salaün
From: Mickaël Salaün Add a new helper print-cert-tbs-hash.sh to generate a TBSCertificate hash from a given certificate. This is useful to generate a blacklist key description used to forbid loading a specific certificate in a keyring, or to invalidate a certificate provided by a PKCS#7 file. T

[PATCH v7 0/5] Enable root to update the blacklist keyring

2021-03-12 Thread Mickaël Salaün
This new patch series is a rebase on David Howells's and Eric Snowberg's keys-cve-2020-26541-v3. I successfully tested this patch series with the 186 entries from https://uefi.org/sites/default/files/resources/dbxupdate_x64.bin (184 binary hashes and 2 certificates). The goal of these patches is

[PATCH v7 4/5] certs: Factor out the blacklist hash creation

2021-03-12 Thread Mickaël Salaün
From: Mickaël Salaün Factor out the blacklist hash creation with the get_raw_hash() helper. This also centralize the "tbs" and "bin" prefixes and make them private, which help to manage them consistently. Cc: David Howells Cc: David S. Miller Cc: David Woodhouse Cc: Eric Snowberg Cc: Herbert

[PATCH v7 5/5] certs: Allow root user to append signed hashes to the blacklist keyring

2021-03-12 Thread Mickaël Salaün
From: Mickaël Salaün Add a kernel option SYSTEM_BLACKLIST_AUTH_UPDATE to enable the root user to dynamically add new keys to the blacklist keyring. This enables to invalidate new certificates, either from being loaded in a keyring, or from being trusted in a PKCS#7 certificate chain. This also

YOU HAVE WON

2021-03-12 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International progr

[PATCH v7 3/5] certs: Make blacklist_vet_description() more strict

2021-03-12 Thread Mickaël Salaün
From: Mickaël Salaün Before exposing this new key type to user space, make sure that only meaningful blacklisted hashes are accepted. This is also checked for builtin blacklisted hashes, but a following commit make sure that the user will notice (at built time) and will fix the configuration if

[PATCH v7 2/5] certs: Check that builtin blacklist hashes are valid

2021-03-12 Thread Mickaël Salaün
From: Mickaël Salaün Add and use a check-blacklist-hashes.awk script to make sure that the builtin blacklist hashes set with CONFIG_SYSTEM_BLACKLIST_HASH_LIST will effectively be taken into account as blacklisted hashes. This is useful to debug invalid hash formats, and it make sure that previou

Re: [PATCH v6 1/4] dt-bindings: Introduce SoC sleep stats bindings

2021-03-12 Thread Bjorn Andersson
On Mon 08 Feb 18:23 CST 2021, Stephen Boyd wrote: > Quoting Maulik Shah (2021-02-04 06:21:45) > > + > > +description: > > + Always On Processor/Resource Power Manager maintains statistics of the > > SoC > > + sleep modes involving powering down of the rails and oscillator clock. > > + > > + St

YOU HAVE WON

2021-03-12 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International progr

Re: mmotm 2021-03-11-21-46 uploaded (mm/shmem.c)

2021-03-12 Thread Randy Dunlap
On 3/11/21 9:47 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2021-03-11-21-46 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

Re: [PATCH v6 1/4] dt-bindings: Introduce SoC sleep stats bindings

2021-03-12 Thread Bjorn Andersson
On Thu 04 Feb 08:21 CST 2021, Maulik Shah wrote: > From: Mahesh Sivasubramanian > > Add device binding documentation for Qualcomm Technologies, Inc. (QTI) > SoC sleep stats driver. The driver is used for displaying SoC sleep > statistic maintained by Always On Processor or Resource Power Manager

Re: [PATCH v3 3/3] mm: fs: Invalidate BH LRU during page migration

2021-03-12 Thread Minchan Kim
On Fri, Mar 12, 2021 at 10:33:48AM +0100, David Hildenbrand wrote: > On 12.03.21 10:03, David Hildenbrand wrote: > > On 10.03.21 17:14, Minchan Kim wrote: > > > ffer_head LRU caches will be pinned and thus cannot be migrated. > > > This can prevent CMA allocations from succeeding, which are often u

[PATCH 6/9] objtool: Add elf_create_undef_symbol()

2021-03-12 Thread Peter Zijlstra
Allow objtool to create undefined symbols; this allows creating relocations to symbols not currently in the symbol table. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/elf.c | 180 +++- tools/objtool/include/objtool/elf.h |1 2 file

[PATCH 3/9] objtool: Per arch retpoline naming

2021-03-12 Thread Peter Zijlstra
The __x86_indirect_ naming is obviously not generic. Shorten to allow matching some additional magic names later. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/arch/x86/decode.c |5 + tools/objtool/check.c|9 +++-- tools/objtool/include/objtool/arch

[PATCH 8/9] objtool: Skip magical retpoline .altinstr_replacement

2021-03-12 Thread Peter Zijlstra
When the .altinstr_replacement is a retpoline, skip the alternative. We already special case retpolines anyway. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/special.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) --- a/tools/objtool/special.c +++ b/tools/objtoo

[PATCH 4/9] objtool: Fix static_call list generation

2021-03-12 Thread Peter Zijlstra
Currently objtool generates tail call entries in add_jump_destination() but waits until validate_branch() to generate the regular call entries, move these to add_call_destination() for consistency. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/check.c | 17 - 1 file c

[PATCH 0/9] x86,objtool: Optimize !RETPOLINE

2021-03-12 Thread Peter Zijlstra
Hi, Now that Juergen's paravirt rework, which included the negative alternative stuff, landed in tip, here's a respin of my retpoline patches. The main feature is replacing the compiler generated (tail) calls to __x86_indirect_thunk_\reg with an ALTERNATIVE that replaces them with regular indirec

[PATCH 7/9] objtool: Allow archs to rewrite retpolines

2021-03-12 Thread Peter Zijlstra
When retpolines are employed, compilers typically emit calls to retpoline thunks. Objtool recognises these calls and marks them as dynamic calls. Provide infrastructure for architectures to rewrite/augment what the compiler wrote for us. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/c

[PATCH 5/9] objtool: Rework rebuild_reloc logic

2021-03-12 Thread Peter Zijlstra
Instead of manually calling elf_rebuild_reloc_section() on sections we've called elf_add_reloc() on, have elf_write() DTRT. This makes it easier to add random relocations in places without carefully tracking when we're done and need to flush what section. Signed-off-by: Peter Zijlstra (Intel) --

[PATCH 1/9] x86/retpoline: Simplify retpolines

2021-03-12 Thread Peter Zijlstra
Due to commit c9c324dc22aa ("objtool: Support stack layout changes in alternatives"), it is possible to simplify the retpolines. Currently our retpolines consist of 2 symbols, __x86_indirect_thunk_\reg, which is the compiler target, and __x86_retpoline_\reg, which is the actual retpoline. Both are

[PATCH 2/9] objtool: Correctly handle retpoline thunk calls

2021-03-12 Thread Peter Zijlstra
Just like JMP handling, convert a direct CALL to a retpoline thunk into a retpoline safe indirect CALL. Signed-off-by: Peter Zijlstra (Intel) --- tools/objtool/check.c | 12 1 file changed, 12 insertions(+) --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -953,6 +953,18

[PATCH 9/9] objtool,x86: Rewrite retpoline thunk calls

2021-03-12 Thread Peter Zijlstra
When the compiler emits: "CALL __x86_indirect_thunk_\reg" for an indirect call, have objtool rewrite it to: ALTERNATIVE "call __x86_indirect_thunk_\reg", "call *%reg", ALT_NOT(X86_FEATURE_RETPOLINE) Additionally, in order to not emit endless identical .altinst_replacem

Re: [PATCH 4/4] kbuild: dwarf: use AS_VERSION instead of test_dwarf5_support.sh

2021-03-12 Thread Masahiro Yamada
On Thu, Mar 4, 2021 at 5:44 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Wed, Mar 3, 2021 at 10:34 AM Masahiro Yamada wrote: > > > > The test code in scripts/test_dwarf5_support.sh is somewhat difficult > > to understand, but after all, we want to check binutils >= 2.35.2 > > > > Fro

Re: [PATCH v2 5/5] thermal/drivers/cpufreq_cooling: Remove unused list

2021-03-12 Thread Lukasz Luba
On 3/12/21 5:03 PM, Daniel Lezcano wrote: There is a list with the purpose of grouping the cpufreq cooling device together as described in the comments but actually it is unused, the code evolved since 2012 and the list was no longer needed. Delete the remaining unused list related code. Sig

Re: [PATCH 2/4] kbuild: collect minimum tool versions into scripts/tool-version.sh

2021-03-12 Thread Masahiro Yamada
On Thu, Mar 4, 2021 at 9:11 AM Nathan Chancellor wrote: > > On Thu, Mar 04, 2021 at 03:33:31AM +0900, Masahiro Yamada wrote: > > The kernel build uses various tools, many of which are provided by the > > same software suite, for example, LLVM and Binutils. > > > > When we raise the minimal version

YOU HAVE WON

2021-03-12 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International progr

Re: [PATCH v7 2/2] ARM: ftrace: Add MODULE_PLTS support

2021-03-12 Thread Qais Yousef
Hi Alexander On 03/10/21 18:17, Alexander Sverdlin wrote: > Hi! > > On 10/03/2021 17:14, Florian Fainelli wrote: > > I tried on 5.12-rc2 and 5.11 but couldn't reproduce the problem using > > your > >>> I still can't reproduce on 5.12-rc2. > >>> > >>> I do have CONFIG_ARM_MODULE_PLTS=y. D

Re: [PATCH] vdpa: fix build dependency of VIRTIO_PCI_LIB

2021-03-12 Thread Randy Dunlap
On 3/12/21 1:36 AM, Jason Wang wrote: > The modern PCI device module should be built independently without > VIRTIO. This patch fixes this. > > Fixes: 7075992ba8873(“vdpa: introduce virtio pci driver") > Reported-by: Randy Dunlap > Signed-off-by: Jason Wang Acked-by: Randy Dunlap # build-teste

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-12 Thread Steven Rostedt
On Fri, 12 Mar 2021 15:47:26 +0100 Borislav Petkov wrote: > On Fri, Mar 12, 2021 at 03:29:48PM +0100, Sedat Dilek wrote: > > What does this change exactly mean to/for me? > > Probably nothing. > > I would be very surprised if it would be at all noticeable for you - > it's not like the kernel

Re: [PATCH 8/9] KVM: arm64: vgic-v3: Expose GICR_TYPER.Last for userspace

2021-03-12 Thread Auger Eric
Hi Alexandru, On 1/20/21 5:13 PM, Alexandru Elisei wrote: > Hi Eric, > > On 1/14/21 10:16 AM, Auger Eric wrote: >> Hi Alexandru, >> >> On 1/12/21 6:02 PM, Alexandru Elisei wrote: >>> Hi Eric, >>> >>> On 12/12/20 6:50 PM, Eric Auger wrote: Commit 23bde34771f1 ("KVM: arm64: vgic-v3: Drop the >

Re: [PATCH] dt-bindings: mailbox: Add compatible for SM8350 IPCC

2021-03-12 Thread Bjorn Andersson
On Thu 11 Mar 23:12 CST 2021, Vinod Koul wrote: Adding Jassi as recipient. Please let Vinod know if you want him to resend this patch to you. (I send a patch for MAINTAINERS yesterday) > Add the compatible string for SM8350 IPCC block on this SoC > Reviewed-by: Bjorn Andersson Regards, Bjorn

Re: [PATCH 5/9] KVM: arm: move has_run_once after the map_resources

2021-03-12 Thread Auger Eric
Hi Alexandru, On 1/20/21 4:56 PM, Alexandru Elisei wrote: > Hi Eric, > > On 1/14/21 10:02 AM, Auger Eric wrote: >> Hi Alexandru, >> >> On 1/12/21 3:55 PM, Alexandru Elisei wrote: >>> Hi Eric, >>> >>> On 12/12/20 6:50 PM, Eric Auger wrote: has_run_once is set to true at the beginning of

[PATCH] mt76: mt7921: remove redundant check on type

2021-03-12 Thread Colin King
From: Colin Ian King Currently in the switch statement case where type is NL80211_IFTYPE_STATION there is a check to see if type is not NL80211_IFTYPE_STATION. This check is always false and is redundant dead code that can be removed. Addresses-Coverity: ("Logically dead code") Fixes: e0f9fdda8

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

2021-03-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 th

[PATCH v3 2/8] KVM: arm64: Fix KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION read

2021-03-12 Thread Eric Auger
The doc says: "The characteristics of a specific redistributor region can be read by presetting the index field in the attr data. Only valid for KVM_DEV_TYPE_ARM_VGIC_V3" Unfortunately the existing code fails to read the input attr data. Fixes: 04c110932225 ("KVM: arm/arm64: Implement KVM_VGIC

[PATCH v3 1/8] KVM: arm64: vgic-v3: Fix some error codes when setting RDIST base

2021-03-12 Thread Eric Auger
KVM_DEV_ARM_VGIC_GRP_ADDR group doc says we should return -EEXIST in case the base address of the redist is already set. We currently return -EINVAL. However we need to return -EINVAL in case a legacy REDIST address is attempted to be set while REDIST_REGIONS were set. This case is discriminated b

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

2021-03-12 Thread Eric Auger
vgic_v3_insert_redist_region() may succeed while vgic_register_all_redist_iodevs fails. For example this happens 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 vgic_register_redi

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

2021-03-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 --- v1 -> v2: - use dist-> in the else and add braces ---

[PATCH v3 6/8] KVM: arm64: Simplify argument passing to vgic_uaccess_[read|write]

2021-03-12 Thread Eric Auger
vgic_uaccess() takes a struct vgic_io_device argument, converts it to a struct kvm_io_device and passes it to the read/write accessor functions, which convert it back to a struct vgic_io_device. Avoid the indirection by passing the struct vgic_io_device argument directly to vgic_uaccess_{read,write

[PATCH v3 5/8] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc

2021-03-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 --- v1 -> v2: - Must be called after all vcpu creations -> Must be called after all VCPUs have been

[PATCH v3 7/8] KVM: arm64: vgic-v3: Expose GICR_TYPER.Last for userspace

2021-03-12 Thread Eric Auger
Commit 23bde34771f1 ("KVM: arm64: vgic-v3: Drop the reporting of GICR_TYPER.Last for userspace") temporarily fixed a bug identified when attempting to access the GICR_TYPER register before the redistributor region setting, but dropped the support of the LAST bit. Emulating the GICR_TYPER.Last bit

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

2021-03-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 - KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Some other tests dedicate to KVM_DEV_ARM_VGIC_GRP_REDIST_REGS group and especially the GICR_TYPER read. The

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 5:36 PM Ben Dooks wrote: > > On 12/03/2021 16:34, Ben Dooks wrote: > > On 12/03/2021 16:30, Ben Dooks wrote: > >> On 12/03/2021 15:12, Dmitry Vyukov wrote: > >>> On Fri, Mar 12, 2021 at 2:50 PM Ben Dooks > >>> wrote: > > On 10/03/2021 17:16, Dmitry Vyukov wrote:

Re: [PATCH 07/24] x86/resctrl: Label the resources with their configuration type

2021-03-12 Thread James Morse
Hi Reinette, On 17/11/2020 22:30, Reinette Chatre wrote: > On 10/30/2020 9:11 AM, James Morse wrote: >> Before the name for the schema can be generated, the type of the >> configuration being applied to the resource needs to be known. Label >> all the entries in rdt_resources_all[], and copy that

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-12 Thread Sedat Dilek
On Fri, Mar 12, 2021 at 6:26 PM Steven Rostedt wrote: > > On Fri, 12 Mar 2021 15:47:26 +0100 > Borislav Petkov wrote: > > > On Fri, Mar 12, 2021 at 03:29:48PM +0100, Sedat Dilek wrote: > > > What does this change exactly mean to/for me? > > > > Probably nothing. > > > > I would be very surprised

<    5   6   7   8   9   10   11   12   13   14   >