Currently, VA exhaustion is being checked by passing a hint to mmap() and
expecting it to fail. This patch makes a stricter test by successful write()
calls from /proc/self/maps to a dump file, confirming that a free chunk is
indeed not available.
Signed-off-by: Dev Jain
---
Merge dependency:
ht
On 2024/3/21 14:16, Yi Liu wrote:
On 2024/3/20 20:38, Jason Gunthorpe wrote:
On Tue, Mar 19, 2024 at 03:29:39PM +0800, Yi Liu wrote:
On 2024/3/19 00:52, Jason Gunthorpe wrote:
On Wed, Mar 13, 2024 at 04:11:41PM +0800, Yi Liu wrote:
yes. how about your opinion? @Jason. I noticed the set_dev_p
On Thu, Mar 21, 2024 at 07:26:41PM +0800, Yi Liu wrote:
> > yes, the correct way is to undo what have been done before the fail
> > device. However, I somehow remember that pasid capability is only
> > available when the group is singleton. So iterate all devices of the
> > devices just means one d
On 2024/3/21 20:20, Jason Gunthorpe wrote:
On Thu, Mar 21, 2024 at 07:26:41PM +0800, Yi Liu wrote:
yes, the correct way is to undo what have been done before the fail
device. However, I somehow remember that pasid capability is only
available when the group is singleton. So iterate all devices o
On 3/12/24 08:12, Marcos Paulo de Souza wrote:
> This new test checks if a livepatch with replace attribute set replaces
> all previously applied livepatches.
>
> Signed-off-by: Marcos Paulo de Souza
> ---
> tools/testing/selftests/livepatch/Makefile | 3 +-
> .../selftests/livepatch/te
Commit c72a870926c2 added a mutex to prevent kunit tests from running
concurrently. Unfortunately that mutex gets locked during module load
regardless of whether the module actually has any kunit tests. This
causes a problem for kunit tests that might need to load other kernel
modules (e.g. gss_k
On Mon, Mar 18, 2024 at 11:52 PM Eduard Zingerman wrote:
>
> On Fri, 2024-03-15 at 15:29 +0100, Benjamin Tissoires wrote:
>
> This patch looks good to me, please see two nitpicks below.
> Acked-by: Eduard Zingerman
Thanks!
>
> [...]
>
> > @@ -1350,6 +1358,11 @@ BPF_CALL_3(bpf_timer_start, struc
On Tue, Mar 19, 2024 at 1:20 AM Eduard Zingerman wrote:
>
> On Fri, 2024-03-15 at 15:29 +0100, Benjamin Tissoires wrote:
> > bpf_experimental.h and ../bpf_testmod/bpf_testmod_kfunc.h are both
> > including vmlinux.h, which is not compatible with including time.h
> > or bpf_tcp_helpers.h.
> >
> > S
On Mon, Mar 18, 2024 at 10:59 PM Eduard Zingerman wrote:
>
> On Fri, 2024-03-15 at 15:29 +0100, Benjamin Tissoires wrote:
> [...]
>
> > @@ -12021,6 +12034,12 @@ static int check_kfunc_args(struct
> > bpf_verifier_env *env, struct bpf_kfunc_call_
> > if (ret)
> >
On Tue, Mar 19, 2024 at 12:54 AM Eduard Zingerman wrote:
>
> On Fri, 2024-03-15 at 15:29 +0100, Benjamin Tissoires wrote:
> [...]
>
> > @@ -5279,7 +5281,8 @@ static int map_kptr_match_type(struct
> > bpf_verifier_env *env,
> >
> > static bool in_sleepable(struct bpf_verifier_env *env)
> > {
> >
Following issue was observed while running the uffd-unit-tests selftest
on ARM devices. On x86_64 no issues were detected:
pthread_create followed by fork caused deadlock in certain cases
wherein fork required some work to be completed by the created thread.
Used synchronization to ensure that cre
On 3/20/24 12:01, Ido Schimmel wrote:
On Wed, Mar 20, 2024 at 01:47:36AM +0100, Mirsad Todorovac wrote:
On 3/19/24 15:25, Ido Schimmel wrote:
Will look into it today or later this week.
Thank you for considering this.
Can you please try the following patch?
https://github.com/idosch/lin
On 3/20/24 12:01, Ido Schimmel wrote:
On Wed, Mar 20, 2024 at 01:47:36AM +0100, Mirsad Todorovac wrote:
On 3/19/24 15:25, Ido Schimmel wrote:
Will look into it today or later this week.
Thank you for considering this.
Can you please try the following patch?
https://github.com/idosch/lin
Following issue was observed while running the uffd-unit-tests selftest
on ARM devices. On x86_64 no issues were detected:
pthread_create followed by fork caused deadlock in certain cases
wherein fork required some work to be completed by the created thread.
Used synchronization to ensure that cre
On Thu, 21 Mar 2024 16:05:22 +0530 Dev Jain wrote:
> Currently, VA exhaustion is being checked by passing a hint to mmap() and
> expecting it to fail. This patch makes a stricter test by successful write()
> calls from /proc/self/maps to a dump file, confirming that a free chunk is
> indeed not a
On 12/12/2023 12:46 PM, Sagi Shahar wrote:
> From: Ackerley Tng
>
> One-to-one GVA to GPA mappings can be used in the guest to set up boot
> sequences during which paging is enabled, hence requiring a transition
> from using physical to virtual addresses in consecutive instructions.
>
> Signe
On 12/12/2023 12:46 PM, Sagi Shahar wrote:
> From: Erdem Aktas
>
> TDX requires additional IOCTLs to initialize VM and vCPUs to add
> private memory and to finalize the VM memory. Also additional utility
> functions are provided to manipulate a TD, similar to those that
> manipulate a VM in th
The sigbus-wp test requires the UFFD_FEATURE_WP_HUGETLBFS_SHMEM flag for
shmem and hugetlb targets. Otherwise it is not backwards compatible
with kernels <5.19 and fails with EINVAL.
Signed-off-by: Edward Liaw
---
tools/testing/selftests/mm/uffd-unit-tests.c | 3 ++-
1 file changed, 2 insertion
On 12/12/2023 12:46 PM, Sagi Shahar wrote:
> From: Erdem Aktas
>
> Adding a test to verify TDX lifecycle by creating a TD and running a
> dummy TDG.VP.VMCALL inside it.
>
> Signed-off-by: Erdem Aktas
> Signed-off-by: Ryan Afranji
> Signed-off-by: Sagi Shahar
> Co-developed-by: Ackerley Tn
On Thu, Mar 21, 2024 at 10:32 AM Scott Mayhew wrote:
>
> Commit c72a870926c2 added a mutex to prevent kunit tests from running
> concurrently. Unfortunately that mutex gets locked during module load
> regardless of whether the module actually has any kunit tests. This
> causes a problem for kuni
On Thu, 21 Mar 2024 23:20:21 + Edward Liaw wrote:
> The sigbus-wp test requires the UFFD_FEATURE_WP_HUGETLBFS_SHMEM flag for
> shmem and hugetlb targets. Otherwise it is not backwards compatible
> with kernels <5.19 and fails with EINVAL.
>
> ...
>
> --- a/tools/testing/selftests/mm/uffd-un
On 12/12/2023 12:46 PM, Sagi Shahar wrote:
> The test verifies reads and writes for MSR registers with different access
> level.
>
> Signed-off-by: Sagi Shahar
> Signed-off-by: Ackerley Tng
> Signed-off-by: Ryan Afranji
> ---
> .../selftests/kvm/include/x86_64/tdx/tdx.h| 5 +
> .../se
On 12/12/2023 12:46 PM, Sagi Shahar wrote:
> The test verifies MMIO reads of various sizes from the host to the guest.
>
> Signed-off-by: Sagi Shahar
> Signed-off-by: Ackerley Tng
> Signed-off-by: Ryan Afranji
> ---
> .../selftests/kvm/include/x86_64/tdx/tdcall.h | 2 +
> .../selftests/kvm
On 12/12/2023 12:46 PM, Sagi Shahar wrote:
> The test verifies MMIO writes of various sizes from the guest to the host.
>
> Signed-off-by: Sagi Shahar
> Signed-off-by: Ackerley Tng
> Signed-off-by: Ryan Afranji
> ---
> .../selftests/kvm/include/x86_64/tdx/tdx.h| 2 +
> .../selftests/kv
On Wed, 20 Mar 2024 at 16:18, Kemeng Shi wrote:
>
> There is no KUNIT_VERY_SLOW, I guess we mean KUNIT_SPEED_VERY_SLOW.
>
> Signed-off-by: Kemeng Shi
> ---
Nice catch, thanks!
Reviewed-by: David Gow
Cheers,
-- David
> Documentation/dev-tools/kunit/running_tips.rst | 4 ++--
> 1 file changed
On 3/22/24 03:21, Andrew Morton wrote:
On Thu, 21 Mar 2024 16:05:22 +0530 Dev Jain wrote:
Currently, VA exhaustion is being checked by passing a hint to mmap() and
expecting it to fail. This patch makes a stricter test by successful write()
calls from /proc/self/maps to a dump file, confirmi
26 matches
Mail list logo