Re: [PATCH v3 3/3] kasan: delete CONFIG_KASAN_MODULE_TEST

2024-10-13 Thread Andrey Konovalov
On Sun, Oct 13, 2024 at 8:20 PM Sabyrzhan Tasbolatov wrote: > > Since we've migrated all tests to the KUnit framework, > we can delete CONFIG_KASAN_MODULE_TEST and mentioning of it in the > documentation as well. > > I've used the online translator to modify the non-English documentation. > > Sign

Re: [PATCH v3 2/3] kasan: migrate copy_user_test to kunit

2024-10-13 Thread Andrey Konovalov
On Sun, Oct 13, 2024 at 8:19 PM Sabyrzhan Tasbolatov wrote: > > Migrate the copy_user_test to the KUnit framework to verify out-of-bound > detection via KASAN reports in copy_from_user(), copy_to_user() and > their static functions. > > This is the last migrated test in kasan_test_module.c, theref

[PATCH v2 3/3] kasan: delete CONFIG_KASAN_MODULE_TEST

2024-10-13 Thread Sabyrzhan Tasbolatov
Since we've migrated all tests to the KUnit framework, we can delete CONFIG_KASAN_MODULE_TEST and mentioning of it in the documentation as well. I've used the online translator to modify the non-English documentation. Signed-off-by: Sabyrzhan Tasbolatov --- Documentation/dev-tools/kasan.rst

[PATCH v2 2/3] kasan: migrate copy_user_test to kunit

2024-10-13 Thread Sabyrzhan Tasbolatov
Migrate the copy_user_test to the KUnit framework to verify out-of-bound detection via KASAN reports in copy_from_user(), copy_to_user() and their static functions. This is the last migrated test in kasan_test_module.c, therefore delete the file. Signed-off-by: Sabyrzhan Tasbolatov --- mm/kasan

[PATCH v2 1/3] kasan: move checks to do_strncpy_from_user

2024-10-13 Thread Sabyrzhan Tasbolatov
Since in the commit 2865baf54077("x86: support user address masking instead of non-speculative conditional") do_strncpy_from_user() is called from multiple places, we should sanitize the kernel *dst memory and size which were done in strncpy_from_user() previously. Fixes: 2865baf54077 ("x86: suppo

[PATCH v2 0/3] kasan: migrate the last module test to kunit

2024-10-13 Thread Sabyrzhan Tasbolatov
copy_user_test() is the last KUnit-incompatible test with CONFIG_KASAN_MODULE_TEST requirement, which we are going to migrate to KUnit framework and delete the former test and Kconfig as well. In this patch series: - [1/3] move kasan_check_write() and check_object_size() to

Re: [PATCH v2 2/3] kasan: migrate copy_user_test to kunit

2024-10-13 Thread Andrey Konovalov
On Sun, Oct 13, 2024 at 3:02 PM Sabyrzhan Tasbolatov wrote: > > Migrate the copy_user_test to the KUnit framework to verify out-of-bound > detection via KASAN reports in copy_from_user(), copy_to_user() and > their static functions. > > This is the last migrated test in kasan_test_module.c, theref

Re: [PATCH v2 3/3] kasan: delete CONFIG_KASAN_MODULE_TEST

2024-10-13 Thread Andrey Konovalov
On Sun, Oct 13, 2024 at 3:02 PM Sabyrzhan Tasbolatov wrote: > > diff --git a/Documentation/dev-tools/kasan.rst > b/Documentation/dev-tools/kasan.rst > index d7de44f5339..52fdd6b5ef6 100644 > --- a/Documentation/dev-tools/kasan.rst > +++ b/Documentation/dev-tools/kasan.rst > @@ -511,17 +511,12 @@

Re: [PATCH v2 1/3] kasan: move checks to do_strncpy_from_user

2024-10-13 Thread Andrey Konovalov
On Sun, Oct 13, 2024 at 3:01 PM Sabyrzhan Tasbolatov wrote: > > Since in the commit 2865baf54077("x86: support user address masking instead > of non-speculative conditional") do_strncpy_from_user() is called from > multiple places, we should sanitize the kernel *dst memory and size > which were do

[PATCH v3 3/3] kasan: delete CONFIG_KASAN_MODULE_TEST

2024-10-13 Thread Sabyrzhan Tasbolatov
Since we've migrated all tests to the KUnit framework, we can delete CONFIG_KASAN_MODULE_TEST and mentioning of it in the documentation as well. I've used the online translator to modify the non-English documentation. Signed-off-by: Sabyrzhan Tasbolatov --- Changes v2 -> v3: - applied Andrey's p

[PATCH v3 2/3] kasan: migrate copy_user_test to kunit

2024-10-13 Thread Sabyrzhan Tasbolatov
Migrate the copy_user_test to the KUnit framework to verify out-of-bound detection via KASAN reports in copy_from_user(), copy_to_user() and their static functions. This is the last migrated test in kasan_test_module.c, therefore delete the file. Signed-off-by: Sabyrzhan Tasbolatov --- Changes v

[PATCH RESEND v3 0/3] kasan: migrate the last module test to kunit

2024-10-13 Thread Sabyrzhan Tasbolatov
copy_user_test() is the last KUnit-incompatible test with CONFIG_KASAN_MODULE_TEST requirement, which we are going to migrate to KUnit framework and delete the former test and Kconfig as well. In this patch series: - [1/3] move kasan_check_write() and check_object_size() to

[PATCH RESEND v3 3/3] kasan: delete CONFIG_KASAN_MODULE_TEST

2024-10-13 Thread Sabyrzhan Tasbolatov
Since we've migrated all tests to the KUnit framework, we can delete CONFIG_KASAN_MODULE_TEST and mentioning of it in the documentation as well. I've used the online translator to modify the non-English documentation. Reviewed-by: Andrey Konovalov Signed-off-by: Sabyrzhan Tasbolatov --- Changes

[PATCH RESEND v3 2/3] kasan: migrate copy_user_test to kunit

2024-10-13 Thread Sabyrzhan Tasbolatov
Migrate the copy_user_test to the KUnit framework to verify out-of-bound detection via KASAN reports in copy_from_user(), copy_to_user() and their static functions. This is the last migrated test in kasan_test_module.c, therefore delete the file. Reviewed-by: Andrey Konovalov Signed-off-by: Saby

[PATCH RESEND v3 1/3] kasan: move checks to do_strncpy_from_user

2024-10-13 Thread Sabyrzhan Tasbolatov
Since in the commit 2865baf54077("x86: support user address masking instead of non-speculative conditional") do_strncpy_from_user() is called from multiple places, we should sanitize the kernel *dst memory and size which were done in strncpy_from_user() previously. Fixes: 2865baf54077 ("x86: suppo

Re: [PATCH 06/12] huge_memory: Allow mappings of PUD sized pages

2024-10-13 Thread Alistair Popple
Dan Williams writes: > Alistair Popple wrote: >> Currently DAX folio/page reference counts are managed differently to >> normal pages. To allow these to be managed the same as normal pages >> introduce dax_insert_pfn_pud. This will map the entire PUD-sized folio >> and take references as it wou