Re: [PATCH v2 09/14] kasan: adapt kmalloc_uaf2 test to HW_TAGS mode

2021-01-13 Thread Alexander Potapenko
On Wed, Jan 13, 2021 at 5:22 PM 'Andrey Konovalov' via kasan-dev wrote: > > In the kmalloc_uaf2() test, the pointers to the two allocated memory > blocks might happen to be the same, and the test will fail. With the > software tag-based mode, the probability of the that is 1/254, so it's > hard

Re: [PATCH v2 09/14] kasan: adapt kmalloc_uaf2 test to HW_TAGS mode

2021-01-13 Thread Marco Elver
On Wed, 13 Jan 2021 at 17:22, Andrey Konovalov wrote: > > In the kmalloc_uaf2() test, the pointers to the two allocated memory > blocks might happen to be the same, and the test will fail. With the > software tag-based mode, the probability of the that is 1/254, so it's > hard to observe the

[PATCH v2 09/14] kasan: adapt kmalloc_uaf2 test to HW_TAGS mode

2021-01-13 Thread Andrey Konovalov
In the kmalloc_uaf2() test, the pointers to the two allocated memory blocks might happen to be the same, and the test will fail. With the software tag-based mode, the probability of the that is 1/254, so it's hard to observe the failure. For the hardware tag-based mode though, the probablity is