From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Elver Subject: [PATCH v2 0/3] Bitops instrumentation for KASAN Date: Wed, 29 May 2019 16:14:58 +0200 Message-ID: <20190529141500.193390-1-elver@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: linux-kernel-owner@vger.kernel.org To: peterz@infradead.org, aryabinin@virtuozzo.com, dvyukov@google.com, glider@google.com, andreyknvl@google.com, mark.rutland@arm.com Cc: corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, arnd@arndb.de, jpoimboe@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kasan-dev@googlegroups.com, Marco Elver List-Id: linux-arch.vger.kernel.org The previous version of this patch series and discussion can be found here: https://lkml.org/lkml/2019/5/28/769 The most significant change is the change of the instrumented access size to cover the entire word of a bit. Marco Elver (3): lib/test_kasan: Add bitops tests x86: Move CPU feature test out of uaccess region asm-generic, x86: Add bitops instrumentation for KASAN Documentation/core-api/kernel-api.rst | 2 +- arch/x86/ia32/ia32_signal.c | 9 +- arch/x86/include/asm/bitops.h | 210 ++++---------- include/asm-generic/bitops-instrumented.h | 317 ++++++++++++++++++++++ lib/test_kasan.c | 75 ++++- 5 files changed, 450 insertions(+), 163 deletions(-) create mode 100644 include/asm-generic/bitops-instrumented.h -- 2.22.0.rc1.257.g3120a18244-goog From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-f74.google.com ([209.85.161.74]:43384 "EHLO mail-yw1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfE2OX0 (ORCPT ); Wed, 29 May 2019 10:23:26 -0400 Received: by mail-yw1-f74.google.com with SMTP id t2so2240456ywc.10 for ; Wed, 29 May 2019 07:23:25 -0700 (PDT) Date: Wed, 29 May 2019 16:14:58 +0200 Message-ID: <20190529141500.193390-1-elver@google.com> Mime-Version: 1.0 Subject: [PATCH v2 0/3] Bitops instrumentation for KASAN From: Marco Elver Content-Type: text/plain; charset="UTF-8" Sender: linux-arch-owner@vger.kernel.org List-ID: To: peterz@infradead.org, aryabinin@virtuozzo.com, dvyukov@google.com, glider@google.com, andreyknvl@google.com, mark.rutland@arm.com Cc: corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, arnd@arndb.de, jpoimboe@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, kasan-dev@googlegroups.com, Marco Elver Message-ID: <20190529141458.eb1hH9RXXyU3Dyc_-w8cy3lvmNfF2Bp-OujtFJZlJmQ@z> The previous version of this patch series and discussion can be found here: https://lkml.org/lkml/2019/5/28/769 The most significant change is the change of the instrumented access size to cover the entire word of a bit. Marco Elver (3): lib/test_kasan: Add bitops tests x86: Move CPU feature test out of uaccess region asm-generic, x86: Add bitops instrumentation for KASAN Documentation/core-api/kernel-api.rst | 2 +- arch/x86/ia32/ia32_signal.c | 9 +- arch/x86/include/asm/bitops.h | 210 ++++---------- include/asm-generic/bitops-instrumented.h | 317 ++++++++++++++++++++++ lib/test_kasan.c | 75 ++++- 5 files changed, 450 insertions(+), 163 deletions(-) create mode 100644 include/asm-generic/bitops-instrumented.h -- 2.22.0.rc1.257.g3120a18244-goog