Re: [PATCH v2 4/8] selftests: vDSO: vdso_test_getrandom: Drop some dead code

2025-05-05 Thread Jason A. Donenfeld
ools/testing/selftests/vDSO/vdso_test_getrandom.c | 11 +-- > 1 file changed, 1 insertion(+), 10 deletions(-) > > diff --git a/tools/testing/selftests/vDSO/vdso_test_getrandom.c > b/tools/testing/selftests/vDSO/vdso_test_getrandom.c > index > f36e50f372f935e6d4da3175c81e210653bdc

[PATCH] kselftest: cpufreq: Get rid of double suspend in rtcwake case

2025-04-30 Thread Nícolas F . R . A . Prado
that it only happens when not using rtcwake. Fixes: 0b631ed3ce92 ("kselftest: cpufreq: Add RTC wakeup alarm") Signed-off-by: Nícolas F. R. A. Prado --- tools/testing/selftests/cpufreq/cpufreq.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selft

[PATCH v2 4/5] arm64: dts: mediatek: mt8188: Describe SCP as a cluster with two cores

2025-04-21 Thread Nícolas F . R . A . Prado
The SCP is currently described in the Devicetree as a single-core processor, but really it is a cluster with two cores. Describe the full cluster but enable only core0 on the current mt8188 platforms since that's the only one usable with the upstream firmware. Co-developed-by: Tinghan

[PATCH v2 5/5] arm64: dts: mediatek: mt8390-genio-common: Add firmware-name for scp0

2025-04-21 Thread Nícolas F . R . A . Prado
Add the firmware-name property for SCP core0 so the firmware can be loaded from its canonical location in the linux-firmware repository. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Nícolas F. R. A. Prado --- arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi | 1 + 1 file

[PATCH v2 3/5] dt-bindings: remoteproc: mediatek: Drop redundant maxItems for mt8192/95

2025-04-21 Thread Nícolas F . R . A . Prado
reg's maxItems is already defined as 3 in the base schema. Remove the redundant assignment in the if branch for mt8192/mt8195. Suggested-by: Krzysztof Kozlowski Signed-off-by: Nícolas F. R. A. Prado --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 1 - 1 file changed, 1 del

[PATCH v2 2/5] dt-bindings: remoteproc: mediatek: Remove l1tcm for dual-core MT8188 SCP

2025-04-21 Thread Nícolas F . R . A . Prado
The SCP present on MT8188 does not have an L1TCM memory region, but the binding incorrectly requires one for the dual-core description of the MT8188 SCP. Remove that requirement. Also update the minimum number of reg and reg-names to 1, since as this is a multi-core SCP with no L1TCM memory, only

[PATCH v2 1/5] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-04-21 Thread Nícolas F . R . A . Prado
. Fix reg minItems for MT8192 and MT8195 by setting it to 3. Fixes: 6b55b1e2fd7f ("dt-bindings: remoteproc: mediatek: Support MT8195 dual-core SCP") Signed-off-by: Nícolas F. R. A. Prado --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 1 + 1 file changed, 1 insertion(+

[PATCH v2 0/5] Describe MT8188's SCP as dual-core

2025-04-21 Thread Nícolas F . R . A . Prado
This series updates the MT8188 SCP description to dual-core and prepares its usage. Patch 4 updates the MT8188 DT to describe the SCP as a dual core cluster and patch 5 adds the firmware-name property so the firmware can be loaded. Patches 1 through 3 are dt-binding fixes for the SCP. Signed-off

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Jason A. Donenfeld
On Fri, Mar 21, 2025 at 12:45:17PM +, Hangbin Liu wrote: > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > > Hi Hangbin, > > > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > > Hi Jason, Phil, > > > On Wed, Mar 19, 2025

Re: [PATCHv4 RESEND net-next 1/2] selftests: wireguards: convert iptables to nft

2025-03-19 Thread Jason A. Donenfeld
On Mon, Jan 06, 2025 at 08:10:42AM +, Hangbin Liu wrote: > +n0 nft add rule ip wgtest INPUT meta length 1360 counter drop What's the point of `counter` here? It's never read back. > +n0 nft add rule ip wgtest POSTROUTING ip saddr 192.168.1.0/24 ip daddr > 10.0.0.0/24 counter snat to 10.0.0.1

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-19 Thread Jason A. Donenfeld
On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote: > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@ > + echo "file /lib/libmnl.so.0 $(TOOLCHAIN_PATH)/lib/libmnl.so.0 755 0 0" > >> $@ > + echo "file /lib/libnftnl.so.11 $(TOOLCHAIN_PATH)/lib/libnftnl.so.11 755 >

Re: [PATCHv4 RESEND net-next 0/2] selftests: wireguards: use nftables for testing

2025-03-19 Thread Jason A. Donenfeld
On Tue, Mar 18, 2025 at 10:24:40AM +, Hangbin Liu wrote: > I saw the patch status[1] is still "Awaiting Upstream". > Is there anything I need to do? I'm looking at it now, but the subject line of your series says, "selftests: wireguards: " which is really not the same as all the other patches

Re: [PATCH 1/4] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-03-19 Thread Nícolas F . R . A . Prado
On Wed, Mar 19, 2025 at 08:16:37AM +0100, Krzysztof Kozlowski wrote: > On 18/03/2025 23:22, Nícolas F. R. A. Prado wrote: > > Both MT8192 and MT8195 have an L1TCM memory, so it should be described > > in reg, and therefore reg's minItems should be 3, as is already impli

[PATCH 0/4] Describe MT8188's SCP as dual-core

2025-03-18 Thread Nícolas F . R . A . Prado
This series updates the MT8188 SCP description to dual-core and prepares its usage. Patch 3 updates the MT8188 DT to describe the SCP as a dual core cluster and patch 4 adds the firmware-name property so the firmware can be loaded. Patches 1 and 2 are dt-binding fixes for the SCP. Depends on the

[PATCH 4/4] arm64: dts: mediatek: mt8390-genio-common: Add firmware-name for scp0

2025-03-18 Thread Nícolas F . R . A . Prado
Add the firmware-name property for SCP core0 so the firmware can be loaded from its canonical location in the linux-firmware repository. Signed-off-by: Nícolas F. R. A. Prado --- arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64

[PATCH 1/4] dt-bindings: remoteproc: mediatek: Add missing minItems for 8192/8195

2025-03-18 Thread Nícolas F . R . A . Prado
l-core SCP") Signed-off-by: Nícolas F. R. A. Prado --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk

[PATCH 3/4] arm64: dts: mediatek: mt8188: Describe SCP as a cluster with two cores

2025-03-18 Thread Nícolas F . R . A . Prado
The SCP is currently described in the Devicetree as a single-core processor, but really it is a cluster with two cores. Describe the full cluster but enable only core0 on the current mt8188 platforms since that's the only one usable with the upstream firmware. Co-developed-by: Tinghan

[PATCH 2/4] dt-bindings: remoteproc: mediatek: Remove l1tcm for dual-core MT8188 SCP

2025-03-18 Thread Nícolas F . R . A . Prado
The SCP present on MT8188 does not have an L1TCM memory region, but the binding incorrectly requires one for the dual-core description of the MT8188 SCP. Remove that requirement. Also update the minimum number of reg and reg-names to 1, since as this is a multi-core SCP with no L1TCM memory, only

Re: [PATCH v6 2/3] x86/tdx: Fix arch_safe_halt() execution for TDX VMs

2025-02-26 Thread Kirill A. Shutemov
> example: > acpi_safe_halt() => > raw_safe_halt() => > arch_safe_halt() => > irq.safe_halt() => > pv_native_safe_halt() I would rather use paravirt spinlock example. It is less controversial. I still see no point in ACPI cpuidle be a thing in TDX gue

Re: [RESEND PATCH v2] wireguard: selftests: Cleanup CONFIG_UBSAN_SANITIZE_ALL

2025-02-24 Thread Jason A. Donenfeld
Applied, thanks.

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-06 Thread Kirill A. Shutemov
l, Michael > >>> > >>> On 8/8/24 9:51 AM, Kirill A. Shutemov wrote: > >>>> Hongyu reported a hang on kexec in a VM. QEMU reported invalid memory > >>>> accesses during the hang. > >>>> > >>>> Invalid read at

Re: [PATCH v4 5/8] KVM: selftests: Add library support for interacting with SNP

2025-01-13 Thread Nikunj A. Dadhania
On 11/15/2024 5:11 AM, Pratik R. Sampat wrote: > Extend the SEV library to include support for SNP ioctl() wrappers, > which aid in launching and interacting with a SEV-SNP guest. > > Signed-off-by: Pratik R. Sampat > --- > .../selftests/kvm/include/x86_64

Re: [PATCH v4 4/8] KVM: selftests: Introduce SEV VM type check

2025-01-13 Thread Nikunj A. Dadhania
On 11/15/2024 5:11 AM, Pratik R. Sampat wrote: > In preparation for SNP, declutter the vm type check by introducing a > SEV-SNP VM type check as well a transitive set of helper functions. > > The SNP VM type is the subset of SEV-ES. Similarly, the SEV-ES and SNP > types are su

Re: [sos-linux-ext-patches] [PATCH v4 1/8] KVM: SEV: Disable SEV-SNP on FW validation failure

2025-01-12 Thread Nikunj A. Dadhania
On 1/11/2025 3:20 AM, Pratik Rajesh Sampat wrote: > Hi Nikunj, > > On 1/9/25 11:21 PM, Nikunj A. Dadhania wrote: >> >> >> On 11/15/2024 5:10 AM, Pratik R. Sampat wrote: >>> On incompatible firmware versions, SEV-SNP support is pulled and the >>>

Re: [sos-linux-ext-patches] [PATCH v4 2/8] KVM: selftests: SEV-SNP test for KVM_SEV_INIT2

2025-01-09 Thread Nikunj A. Dadhania
On 1/10/2025 11:22 AM, Nikunj A. Dadhania wrote: > > > On 11/15/2024 5:10 AM, Pratik R. Sampat wrote: >> Add the X86_FEATURE_SNP CPU feature to the architectural definition for >> the SEV-SNP VM type to exercise the KVM_SEV_INIT2 call. Ensure that the >> SNP test is

Re: [sos-linux-ext-patches] [PATCH v4 2/8] KVM: selftests: SEV-SNP test for KVM_SEV_INIT2

2025-01-09 Thread Nikunj A. Dadhania
On 11/15/2024 5:10 AM, Pratik R. Sampat wrote: > Add the X86_FEATURE_SNP CPU feature to the architectural definition for > the SEV-SNP VM type to exercise the KVM_SEV_INIT2 call. Ensure that the > SNP test is skipped in scenarios where CPUID supports it but KVM does > not, so that

Re: [sos-linux-ext-patches] [PATCH v4 1/8] KVM: SEV: Disable SEV-SNP on FW validation failure

2025-01-09 Thread Nikunj A. Dadhania
On 11/15/2024 5:10 AM, Pratik R. Sampat wrote: > On incompatible firmware versions, SEV-SNP support is pulled and the > setup is not performed. However, the platform and subsequently the KVM > capability may continue to advertize support for it. Disable support for > SEV-SNP if the FW version va

Re: [PATCH v4 0/3] selftests/lam: get_user additions and LAM enabled check

2024-11-27 Thread Kirill A. Shutemov
On Tue, Nov 26, 2024 at 02:34:47PM +0100, Maciej Wieczor-Retman wrote: > Recent change in how get_user() handles pointers [1] has a specific case > for LAM. It assigns a different bitmask that's later used to check > whether a pointer comes from userland in get_user(). >

Re: [PATCH v4 1/3] selftests/lam: Move cpu_has_la57() to use cpuinfo flag

2024-11-27 Thread Kirill A. Shutemov
On Tue, Nov 26, 2024 at 02:34:48PM +0100, Maciej Wieczor-Retman wrote: > In current form cpu_has_la57() reports platform's support for LA57 > through reading the output of cpuid. A much more useful information is > whether 5-level paging is actually enabled on the running system. &g

Re: [PATCH v3] selftests/lam: Test get_user() LAM pointer handling

2024-11-22 Thread Kirill A. Shutemov
On Fri, Nov 22, 2024 at 09:55:20AM +0100, Maciej Wieczor-Retman wrote: > Recent change in how get_user() handles pointers [1] has a specific case > for LAM. It assigns a different bitmask that's later used to check > whether a pointer comes from userland in get_user(). >

Re: [PATCHv2 net] selftests: wireguard: load nf_conntrack if it's not present

2024-11-17 Thread Jason A. Donenfeld
On Tue, Nov 12, 2024 at 09:48:27AM +, Hangbin Liu wrote: > Some distros may not load nf_conntrack by default, which will cause > subsequent nf_conntrack settings to fail. Let's load this module if it's > not loaded by default. > > Fixes: e7096c131e51 ("net: WireGuard secure network tunnel") >

Re: [PATCHv2 net-next] selftests: wireguards: use nft by default

2024-11-17 Thread Jason A. Donenfeld
27;d rather just do everything in one way or the other. So if you're adamant that we need to use nft, just convert the whole thing. And then subsequently, make sure that the qemu test harness supports it. That should probably be a series. Jason

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2024-11-04 Thread Kirill A. Shutemov
On Thu, Aug 08, 2024 at 06:28:02PM +0300, Kirill A. Shutemov wrote: > On Thu, Aug 08, 2024 at 11:03:30AM -0400, Michael S. Tsirkin wrote: > > On Thu, Aug 08, 2024 at 04:15:25PM +0300, Kirill A. Shutemov wrote: > > > On Thu, Aug 08, 2024 at 08:10:34AM -0400, Michael S. Tsirkin wro

Re: [PATCH RFC v2 3/5] pinctrl: mediatek: common: Expose more configurations to GPIO set_config

2024-11-01 Thread Nícolas F . R . A . Prado
On Fri, Nov 01, 2024 at 03:54:58PM +0800, Chen-Yu Tsai wrote: > On Sat, Oct 26, 2024 at 5:16 AM Nícolas F. R. A. Prado > wrote: > > > > Currently the set_config callback in the gpio_chip registered by the > > pinctrl-mtk-common driver only supports configuring a single p

Re: [PATCH] selftests/lam: Test get_user() LAM pointer handling

2024-10-30 Thread Kirill A. Shutemov
On Tue, Oct 29, 2024 at 03:14:20PM +0100, Maciej Wieczor-Retman wrote: > Recent change in how get_user() handles pointers [1] has a specific case > for LAM. It assigns a different bitmask that's later used to check > whether a pointer comes from userland in get_user(). >

Re: [PATCH RFC v2 0/5] Verify bias functionality for pinctrl_paris driver through new gpio test

2024-10-28 Thread Nícolas F . R . A . Prado
On Fri, Oct 25, 2024 at 03:45:35PM -0400, Nícolas F. R. A. Prado wrote: > This series was motivated by the regression fixed by 166bf8af9122 > ("pinctrl: mediatek: common-v2: Fix broken bias-disable for > PULL_PU_PD_RSEL_TYPE"). A bug was introduced in the pinctrl_paris drive

[PATCH RFC v2 3/5] pinctrl: mediatek: common: Expose more configurations to GPIO set_config

2024-10-25 Thread Nícolas F . R . A . Prado
Currently the set_config callback in the gpio_chip registered by the pinctrl-mtk-common driver only supports configuring a single parameter on specific pins (the input debounce of the EINT controller, on pins that support it), even though many other configurations are already implemented and

[PATCH RFC v2 2/5] pinctrl: mediatek: moore: Expose more configurations to GPIO set_config

2024-10-25 Thread Nícolas F . R . A . Prado
Currently the set_config callback in the gpio_chip registered by the pinctrl_moore driver only supports configuring a single parameter on specific pins (the input debounce of the EINT controller, on pins that support it), even though many other configurations are already implemented and available

[PATCH RFC v2 5/5] selftest: gpio: Add a new set-get config test

2024-10-25 Thread Nícolas F . R . A . Prado
Add a new kselftest that sets a configuration to a GPIO line and then gets it back to verify that it was correctly carried out by the driver. Setting a configuration is done through the GPIO uAPI, but retrieving it is done through the debugfs interface since that is the only place where it can be

[PATCH RFC v2 4/5] selftest: gpio: Add wait flag to gpio-mockup-cdev

2024-10-25 Thread Nícolas F . R . A . Prado
Add a -w flag to the gpio-mockup-cdev utility that causes the program to wait until a signal is received before exiting, even when its behavior is to retrieve the GPIO value of the line. This allows using this utility to keep a GPIO line configured even when in input mode, which will be relied on

[PATCH RFC v2 0/5] Verify bias functionality for pinctrl_paris driver through new gpio test

2024-10-25 Thread Nícolas F . R . A . Prado
This series was motivated by the regression fixed by 166bf8af9122 ("pinctrl: mediatek: common-v2: Fix broken bias-disable for PULL_PU_PD_RSEL_TYPE"). A bug was introduced in the pinctrl_paris driver which prevented certain pins from having their bias configured. Running this test on

[PATCH RFC v2 1/5] pinctrl: mediatek: paris: Expose more configurations to GPIO set_config

2024-10-25 Thread Nícolas F . R . A . Prado
Currently the set_config callback in the gpio_chip registered by the pinctrl_paris driver only supports configuring a single parameter on specific pins (the input debounce of the EINT controller, on pins that support it), even though many other configurations are already implemented and available

Re: [PATCH RFC 1/3] pinctrl: mediatek: paris: Expose more configurations to GPIO set_config

2024-10-25 Thread Nícolas F . R . A . Prado
On Thu, Oct 24, 2024 at 05:17:05PM +0200, AngeloGioacchino Del Regno wrote: > Il 11/09/24 12:10, AngeloGioacchino Del Regno ha scritto: > > Il 09/09/24 20:37, Nícolas F. R. A. Prado ha scritto: > > > Currently the set_config callback in the gpio_chip registered by the > >

Re: [PATCH] selftests/vdso: Add linux/sched.h to fix CLONE_NEWTIME build error

2024-10-02 Thread Jason A. Donenfeld
Wasn't this already submitted and commented on? https://lore.kernel.org/all/20240919111841.20226-1-liaoy...@huawei.com/

[PATCH v2] kselftest: devices: Add test to detect missing devices

2024-09-28 Thread Nícolas F . R . A . Prado
Introduce a new test to identify regressions causing devices to go missing on the system. For each bus and class on the system the test checks the number of devices present against a reference file, which needs to have been generated by the program at a previous point on a known-good kernel, and

Re: [PATCH] selftests: vDSO: align stack for O2-optimized memcpy

2024-09-27 Thread Jason A. Donenfeld
Hi Shuah, On Tue, Sep 24, 2024 at 01:47:23PM +0200, Jason A. Donenfeld wrote: > When switching on -O2, gcc generates SSE2 instructions that assume a > 16-byte aligned stack, which the standalone test's start point wasn't > aligning. Fix this with the usual alignnent s

[PATCH] selftests: vDSO: align stack for O2-optimized memcpy

2024-09-24 Thread Jason A. Donenfeld
When switching on -O2, gcc generates SSE2 instructions that assume a 16-byte aligned stack, which the standalone test's start point wasn't aligning. Fix this with the usual alignnent sequence. Fixes: ecb8bd70d51 ("selftests: vDSO: build tests with O2 optimization") Reported-b

Re: [External] Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-13 Thread A K M Fazla Mehrab .
Hi Josh, On Thu, Sep 12, 2024 at 9:06 AM Song Liu wrote: [...] > > Red Hat (and Meta?) will start using it as soon as x86 support is ready, > > because IBT/LTO support is needed, which kpatch-build can't handle. > > While we (Meta) do have a workaround in kpatch to build

Re: [PATCH 2/2] selftests: vDSO: fix vdso_config for s390

2024-09-11 Thread Jason A. Donenfeld
On Wed, Sep 11, 2024 at 10:50:15AM +0200, Heiko Carstens wrote: > Running vdso_test_correctness on s390x (aka s390 64 bit) emits a warning: > > Warning: failed to find clock_gettime64 in vDSO > > This is caused by the "#elif defined (__s390__)" check in vdso_con

Re: [PATCH 0/2] selftests: vDSO: s390 fixes

2024-09-11 Thread Jason A. Donenfeld
On Wed, Sep 11, 2024 at 10:50:13AM +0200, Heiko Carstens wrote: > Two s390 fixes to make vdso selftests running on s390. > > Jason, given that you carry already a lot of changes for vdso > selftests I guess these should be routed via the random tree. > > Patches apply

[PATCH RFC 3/3] selftest: gpio: Add a new set-get config test

2024-09-09 Thread Nícolas F . R . A . Prado
Add a new kselftest that sets a configuration to a GPIO line and then gets it back to verify that it was correctly carried out by the driver. Setting a configuration is done through the GPIO uAPI, but retrieving it is done through the debugfs interface since that is the only place where it can be

[PATCH RFC 2/3] selftest: gpio: Add wait flag to gpio-mockup-cdev

2024-09-09 Thread Nícolas F . R . A . Prado
Add a -w flag to the gpio-mockup-cdev utility that causes the program to wait until a signal is received before exiting, even when its behavior is to retrieve the GPIO value of the line. This allows using this utility to keep a GPIO line configured even when in input mode, which will be relied on

[PATCH RFC 1/3] pinctrl: mediatek: paris: Expose more configurations to GPIO set_config

2024-09-09 Thread Nícolas F . R . A . Prado
. Expose all configurations currently implemented through the GPIO API so they can also be set from userspace, which is particularly useful to allow testing them from userspace. Signed-off-by: Nícolas F. R. A. Prado --- drivers/pinctrl/mediatek/pinctrl-paris.c | 20 ++-- 1 file changed

[PATCH RFC 0/3] Verify bias functionality for pinctrl_paris driver through new gpio test

2024-09-09 Thread Nícolas F . R . A . Prado
This series was motivated by the regression fixed by 166bf8af9122 ("pinctrl: mediatek: common-v2: Fix broken bias-disable for PULL_PU_PD_RSEL_TYPE"). A bug was introduced in the pinctrl_paris driver which prevented certain pins from having their bias configured. Running this test on

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2024-08-08 Thread Kirill A. Shutemov
On Thu, Aug 08, 2024 at 11:03:30AM -0400, Michael S. Tsirkin wrote: > On Thu, Aug 08, 2024 at 04:15:25PM +0300, Kirill A. Shutemov wrote: > > On Thu, Aug 08, 2024 at 08:10:34AM -0400, Michael S. Tsirkin wrote: > > > On Thu, Aug 08, 2024 at 10:51:41AM +0300, Kirill A. Shutemov wro

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2024-08-08 Thread Kirill A. Shutemov
On Thu, Aug 08, 2024 at 08:10:34AM -0400, Michael S. Tsirkin wrote: > On Thu, Aug 08, 2024 at 10:51:41AM +0300, Kirill A. Shutemov wrote: > > Hongyu reported a hang on kexec in a VM. QEMU reported invalid memory > > accesses during the hang. > > > > Invalid read

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2024-08-08 Thread Kirill A. Shutemov
On Thu, Aug 08, 2024 at 01:37:42PM +0200, Jiri Pirko wrote: > Thu, Aug 08, 2024 at 09:51:41AM CEST, kirill.shute...@linux.intel.com wrote: > >Hongyu reported a hang on kexec in a VM. QEMU reported invalid memory > >accesses during the hang. > > > > Invalid read

[PATCH] virtio: Remove virtio devices on device_shutdown()

2024-08-08 Thread Kirill A. Shutemov
Hongyu reported a hang on kexec in a VM. QEMU reported invalid memory accesses during the hang. Invalid read at addr 0x102877002, size 2, region '(null)', reason: rejected Invalid write at addr 0x102877A44, size 2, region '(null)', reason: rejected

Re: [PATCH v2 1/2] Add prctl to allow userlevel TDX hypercalls

2024-08-02 Thread Kirill A . Shutemov
On Fri, Jul 26, 2024 at 06:58:00PM +, Tim Merrifield wrote: > Add a new process-level prctl option to enable/disable user-level > hypercalls when running in a confidential VM. Add support for > checking this flag on VMCALL #VE for TDX and transfer control to > a hypervisor ven

Re: [PATCH 1/2] x86/tdx: Add prctl to allow userlevel TDX hypercalls

2024-07-23 Thread Kirill A . Shutemov
On Mon, Jul 22, 2024 at 10:04:40PM -0700, Tim Merrifield wrote: > > Thanks for the review, Kirill. > > On Mon, Jul 08, 2024 at 03:19:54PM +0300, Kirill A . Shutemov wrote: > > Hm. Per-thread flag is odd. I think it should be per-process. > > This is the only

Re: [PATCH 2/2] x86/vmware: VMware support for TDX userspace hypercalls

2024-07-08 Thread Kirill A . Shutemov
ifdef CONFIG_INTEL_TDX_GUEST > + .runtime.tdx_hcall = vmware_tdx_user_hcall, > +#endif > }; > -- > 2.40.1 > -- Kiryl Shutsemau / Kirill A. Shutemov

Re: [PATCH 1/2] x86/tdx: Add prctl to allow userlevel TDX hypercalls

2024-07-08 Thread Kirill A . Shutemov
On Wed, Jul 03, 2024 at 11:36:00PM +, Tim Merrifield wrote: > Add a new prctl option to enable/disable user-level hypercalls when > running in a confidential VM. Add support for checking this flag on > VMCALL #VE for TDX and transfer control to a hypervisor > vendor-spec

[PATCH] remoteproc: mediatek: Don't attempt to remap l1tcm memory if missing

2024-06-27 Thread Nícolas F . R . A . Prado
The current code doesn't check whether platform_get_resource_byname() succeeded to get the l1tcm memory, which is optional, before attempting to map it. This results in the following error message when it is missing: mtk-scp 1050.scp: error -EINVAL: invalid resource (null) Add a che

Re: [PATCH 05/14] tracefs: replace call_rcu by kfree_rcu for simple kmem_cache_free callback

2024-06-12 Thread Jason A. Donenfeld
On Tue, Jun 11, 2024 at 10:14:58AM -0400, Steven Rostedt wrote: > On Tue, 11 Jun 2024 10:42:28 +0200 > Vlastimil Babka wrote: > > > AFAICS that documented way is for a different situation? I assume you mean > > this part: > > > > * Specify any additional patch

Re: [PATCH] remoteproc: mediatek: Don't print error when optional scp handle is missing

2024-06-06 Thread Nícolas F . R . A . Prado
On Thu, Jun 06, 2024 at 12:50:56PM +0200, AngeloGioacchino Del Regno wrote: > Il 05/06/24 21:35, Nícolas F. R. A. Prado ha scritto: > > The scp_get() helper has two users: the mtk-vcodec and the mtk-mdp3 > > drivers. mdp3 considers the mediatek,scp phandle optional, and when it

[PATCH v2] ftrace: Add missing kerneldoc parameters to unregister_ftrace_direct()

2024-06-06 Thread Marilene A Garcia
Add the description to the parameters addr and free_filters of the function unregister_ftrace_direct(). Signed-off-by: Marilene A Garcia --- Hello, Thank you for the feedback. The requested changes were applied in this new version. kernel/trace/ftrace.c | 2 ++ 1 file changed, 2 insertions

[PATCH] remoteproc: mediatek: Don't print error when optional scp handle is missing

2024-06-05 Thread Nícolas F . R . A . Prado
to: mtk-mdp3 14001000.dma-controller: can't get SCP node Signed-off-by: Nícolas F. R. A. Prado --- drivers/remoteproc/mtk_scp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index b885a9a041e4..f813117b6312

Re: [PATCH] ocfs2: Annotate struct ocfs2_slot_info with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- fs/ocfs2/slot_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/slot_map.c b/fs/ocfs2/slot_map.c index da7718cef735..e544c704b583 100644 --- a/fs/ocfs2/slot_map.c +++ b/fs/ocfs2

Re: [PATCH] afs: Annotate struct afs_permits with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- fs/afs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/internal.h b/fs/afs/internal.h index 07433a5349ca..469a717467a4 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -705,7 +705,7

Re: [PATCH] ceph: Annotate struct ceph_osd_request with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- include/linux/ceph/osd_client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index bf9823956758..b8610e9d2471 100644 --- a

Re: [PATCH] ceph: Annotate struct ceph_monmap with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-tools/blob/trunk/coccinelle/examples/counted_by.cocci Cc: Ilya Dryomov Cc: Xiubo Li Cc: Jeff Layton Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: ceph-de...@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A

Re: [PATCH] NFS/flexfiles: Annotate struct nfs4_ff_layout_segment with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- fs/nfs/flexfilelayout/flexfilelayout.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/flexfilelayout/flexfilelayout.h b/fs/nfs/flexfilelayout/flexfilelayout.h index 354a031c69b1

Re: [PATCH] afs: Annotate struct afs_addr_list with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- fs/afs/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/internal.h b/fs/afs/internal.h index da73b97e19a9..07433a5349ca 100644 --- a/fs/afs/internal.h +++ b/fs/afs/internal.h @@ -87,7 +87,7

Re: [PATCH] aio: Annotate struct kioctx_table with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Cc: linux-fsde...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- fs/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/aio.c b/fs/aio.c index a4c2a6bac72c..f8589caef9c1 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -80,7

Re: [PATCH] udf: Annotate struct udf_bitmap with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). As found with Coccinelle[1], add __counted_by for struct udf_bitmap. [1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci Cc: Jan Kara Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks

Re: [PATCH] mtd: rawnand: renesas: Annotate struct rnand_chip with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-...@lists.infradead.org Cc: linux-renesas-...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd/nand/raw/renesas-nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/renesas-nand

Re: [PATCH] mtd: rawnand: sunxi: Annotate struct sunxi_nand_chip with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Cc: Jernej Skrabec Cc: Samuel Holland Cc: Manuel Dipolt Cc: linux-...@lists.infradead.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-su...@lists.linux.dev Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd/nand/raw/sunxi_nand.c | 2 +- 1

Re: [PATCH] mtd: rawnand: marvell: Annotate struct marvell_nand_chip with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd/nand/raw/marvell_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c index

Re: [PATCH] mtd: rawnand: meson: Annotate struct meson_nfc_nand_chip with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Raghavendra Cc: Neil Armstrong Cc: Kevin Hilman Cc: Jerome Brunet Cc: Martin Blumenstingl Cc: linux-...@lists.infradead.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-amlo...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd

Re: [PATCH] mtd: rawnand: ingenic: Annotate struct ingenic_nfc with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Vignesh Raghavendra Cc: linux-m...@vger.kernel.org Cc: linux-...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd

Re: [PATCH] mtd: rawnand: denali: Annotate struct denali_chip with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd/nand/raw/denali.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/denali.h b/drivers/mtd/nand/raw/denali.h index ac46eb7956ce..5f2fab022fc5

Re: [PATCH] mtd: cfi: Annotate struct cfi_private with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- include/linux/mtd/cfi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mtd/cfi.h b/include/linux/mtd/cfi.h index d88bb56c18e2..947410faf9e2 100644 --- a/include

Re: [PATCH] mtd: rawnand: atmel: Annotate struct atmel_nand with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Nicolas Ferre Cc: Alexandre Belloni Cc: Claudiu Beznea Cc: linux-...@lists.infradead.org Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/mtd/nand/raw/atmel/nand-controller.c | 2 +- 1 file changed, 1

Re: [PATCH] leds: qcom-lpg: Annotate struct lpg_led with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
c: Douglas Anderson Cc: Anjelique Melendez Cc: linux-l...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/rgb/leds-qcom-lpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/dr

Re: [PATCH] leds: mt6370: Annotate struct mt6370_priv with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Alice Chen Cc: Jacek Anaszewski Cc: ChiYuan Huang Cc: ChiaEn Wu Cc: kernel test robot Cc: linux-l...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers

Re: [PATCH] mtd: Annotate struct lpddr_private with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- include/linux/mtd/qinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mtd/qinfo.h b/include/linux/mtd/qinfo.h index 2e3f43788d48..0421f12156b5 100644 --- a

Re: [PATCH] leds: mt6360: Annotate struct mt6360_priv with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Gene Chen Cc: Jacek Anaszewski Cc: Andy Shevchenko Cc: linux-l...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/flash/leds-mt6360.c | 2 +- 1

Re: [PATCH] leds: lm3697: Annotate struct lm3697 with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/leds-lm3697.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-lm3697.c b/drivers/leds/leds-lm3697.c index cfb8ac220db6..380d17a58fe9 100644 --- a/drivers/leds/leds-lm3697.c +++ b/drivers

Re: [PATCH] leds: gpio: Annotate struct gpio_leds_priv with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/leds-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c index 7bfe40a6bfdd..a6597f0f3eb4 100644 --- a/drivers/leds/leds-gpio.c +++ b/drivers

Re: [PATCH] leds: cr0014114: Annotate struct cr0014114 with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/leds-cr0014114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-cr0014114.c b/drivers/leds/leds-cr0014114.c index b33bca397ea6..c9914fc51f20 100644 --- a/drivers/leds/leds-cr0014114.c

Re: [PATCH] leds: el15203000: Annotate struct el15203000 with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/leds-el15203000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-el15203000.c b/drivers/leds/leds-el15203000.c index 7e7b617bcd56..d40194a3029f 100644 --- a/drivers/leds/leds

Re: [PATCH] leds: aw200xx: Annotate struct aw200xx with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/leds/leds-aw200xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-aw200xx.c b/drivers/leds/leds-aw200xx.c index 691a743cc9b0..4d517cace3e7 100644 --- a/drivers/leds/leds-aw200xx.c +++ b

Re: [PATCH] wifi: mt76: Annotate struct mt76_rx_tid with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
Cc: Kalle Valo Cc: Matthias Brugger Cc: AngeloGioacchino Del Regno Cc: linux-wirel...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-media...@lists.infradead.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/net/wireless

Re: [PATCH] wifi: wcn36xx: Annotate struct wcn36xx_hal_ind_msg with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/net/wireless/ath/wcn36xx/smd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.h b/drivers/net/wireless/ath/wcn36xx/smd.h

Re: [PATCH] wifi: ipw2x00: Annotate struct libipw_txb with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/net/wireless/intel/ipw2x00/libipw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/libipw.h b/drivers/net/wireless/intel/ipw2x00/libipw.h index bec7bc273748

Re: [PATCH] wifi: brcmfmac: firmware: Annotate struct brcmf_fw_request with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: Matthias Brugger Cc: Hector Martin Cc: "Alvin Šipraga" Cc: Hans de Goede Cc: linux-wirel...@vger.kernel.org Cc: brcm80211-dev-list@broadcom.com Cc: sha-cyfmac-dev-l...@infineon.com Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/ne

Re: [PATCH] md/md-linear: Annotate struct linear_conf with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-tools/blob/trunk/coccinelle/examples/counted_by.cocci Cc: Song Liu Cc: linux-r...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/md/md-linear.c | 26 +- drivers/md/md-linear.h | 2 +- 2 files changed, 14

Re: [PATCH] usb: gadget: f_midi: Annotate struct f_midi with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
/blob/trunk/coccinelle/examples/counted_by.cocci Cc: Greg Kroah-Hartman Cc: John Keeping Cc: Peter Chen Cc: Hulk Robot Cc: Allen Pais Cc: Will McVicker Cc: Davidlohr Bueso Cc: Zhang Qilong Cc: linux-...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks

Re: [PATCH] usb: gadget: f_fs: Annotate struct ffs_buffer with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
-...@vger.kernel.org Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/usb/gadget/function/f_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index

Re: [PATCH] wifi: brcmfmac: Annotate struct brcmf_gscan_config with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
: "Gustavo A. R. Silva" Cc: Hector Martin Cc: Ryohei Kondo Cc: Hans de Goede Cc: linux-wirel...@vger.kernel.org Cc: brcm80211-dev-list@broadcom.com Cc: sha-cyfmac-dev-l...@infineon.com Signed-off-by: Kees Cook Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo --- drivers/ne

  1   2   3   4   5   6   7   8   9   10   >