Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1344450 > unrolled thread
| Started by | Alexander Potapenko <glider@google.com> |
|---|---|
| First post | 2016-02-26 17:50 +0100 |
| Last post | 2016-02-29 17:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v4 6/7] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2 Alexander Potapenko <glider@google.com> - 2016-02-26 17:50 +0100
Re: [PATCH v4 6/7] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2 Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2016-02-29 17:40 +0100
| From | Alexander Potapenko <glider@google.com> |
|---|---|
| Date | 2016-02-26 17:50 +0100 |
| Subject | [PATCH v4 6/7] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2 |
| Message-ID | <r6tKy-67J-23@gated-at.bofh.it> |
Signed-off-by: Alexander Potapenko <glider@google.com>
---
lib/test_kasan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/test_kasan.c b/lib/test_kasan.c
index 90ad74f..82169fb 100644
--- a/lib/test_kasan.c
+++ b/lib/test_kasan.c
@@ -294,6 +294,8 @@ static noinline void __init kmalloc_uaf2(void)
}
ptr1[40] = 'x';
+ if (ptr1 == ptr2)
+ pr_err("Could not detect use-after-free: ptr1 == ptr2\n");
kfree(ptr2);
}
--
2.7.0.rc3.207.g0ac5344
[toc] | [next] | [standalone]
| From | Andrey Ryabinin <ryabinin.a.a@gmail.com> |
|---|---|
| Date | 2016-02-29 17:40 +0100 |
| Subject | Re: [PATCH v4 6/7] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2 |
| Message-ID | <r7z1w-5sW-15@gated-at.bofh.it> |
| In reply to | #1344450 |
On 02/26/2016 07:48 PM, Alexander Potapenko wrote:
> Signed-off-by: Alexander Potapenko <glider@google.com>
> ---
> lib/test_kasan.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
> diff --git a/lib/test_kasan.c b/lib/test_kasan.c
> index 90ad74f..82169fb 100644
> --- a/lib/test_kasan.c
> +++ b/lib/test_kasan.c
> @@ -294,6 +294,8 @@ static noinline void __init kmalloc_uaf2(void)
> }
>
> ptr1[40] = 'x';
> + if (ptr1 == ptr2)
> + pr_err("Could not detect use-after-free: ptr1 == ptr2\n");
> kfree(ptr2);
> }
>
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web