Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7039216ybi; Thu, 13 Jun 2019 08:33:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRD5m/6WZ3Oo0WUR1WTsZmPp01aJlnircainfXGnt92uRgd0JSyDgmpvwU+xdJSo2+dPb+ X-Received: by 2002:aa7:8705:: with SMTP id b5mr73066566pfo.27.1560439995307; Thu, 13 Jun 2019 08:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439995; cv=none; d=google.com; s=arc-20160816; b=qic87LiKS2fyBEYUt7eDRHo6KAvPwkz310lQWrTD6J+kWUgJUdyDKUEKGvmgz5DrVJ ZNwUeLsZeD87AiXvmENbd2FHAkKN66iz7fV/E4X1+uK/aktrHKFxCqjacNgFLlPXMDBm gpjKf9L5V89Hm0aknk3dDArvXWAW4Wo2SvQRalVLUngNneh7bcfvCUEe4C8j+Gg3oXeS 3DxmiEbur8jE1VbrCL4o2b2UVZMBUTfdxqTMPEMSFeRjX+NXIORMlyQj8kWdEMsrHSEY 4MV88k7bNbe5/ReWa5yPLFuxGn5BfxmrbW48cwgQVGn4EGb/n1TQSOQH4YmEIf0/YqOM YXsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=c25GTGgYjaq6dIxvGpZAH+AW4y1jf4y6UBSqUZnSNzw=; b=Fd6gFResHYREbVUtnEbFgF7qPfT3njZ8Aya8Wlq15mDMAJL/EGr0SOkgQsfG1PXfWA erTRLUN869ErujhjNRBcZeOuNnL2sbGb7xmD/2T+EFtBcizWVdSyF6pSkMH5Prr0baEo dki3E7/SHvNwk9dcJyu5RZ+fgnxeUJoEbGhI0z3LJp3iCHNPRzNzhmhrEBv3alXotPgP DGyh7o+s0qHqColSltNl42JTFqr80WOXCUwSsoPJoqk1Q47zUc7zYdgfbUhy/YIPXx4L WS98v+VNGpl35QpfQarDiTy055vybiyl3eLjJuUbE43b2jebYnE+nAHg5KBXQ/gGHpVo 7Vvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k26si98136pgl.70.2019.06.13.08.32.58; Thu, 13 Jun 2019 08:33:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729236AbfFMPcF (ORCPT + 99 others); Thu, 13 Jun 2019 11:32:05 -0400 Received: from relay.sw.ru ([185.231.240.75]:40140 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728558AbfFMKvO (ORCPT ); Thu, 13 Jun 2019 06:51:14 -0400 Received: from [172.16.25.12] by relay.sw.ru with esmtp (Exim 4.92) (envelope-from ) id 1hbNK3-0000dR-IP; Thu, 13 Jun 2019 13:51:11 +0300 Subject: Re: [PATCH v3 3/3] asm-generic, x86: Add bitops instrumentation for KASAN To: Marco Elver , peterz@infradead.org, dvyukov@google.com, glider@google.com, andreyknvl@google.com, mark.rutland@arm.com, hpa@zytor.com Cc: corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, 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 References: <20190531150828.157832-1-elver@google.com> <20190531150828.157832-4-elver@google.com> From: Andrey Ryabinin Message-ID: <5b4babdb-dfae-4006-0608-a9f5814e89e9@virtuozzo.com> Date: Thu, 13 Jun 2019 13:51:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190531150828.157832-4-elver@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/31/19 6:08 PM, Marco Elver wrote: > This adds a new header to asm-generic to allow optionally instrumenting > architecture-specific asm implementations of bitops. > > This change includes the required change for x86 as reference and > changes the kernel API doc to point to bitops-instrumented.h instead. > Rationale: the functions in x86's bitops.h are no longer the kernel API > functions, but instead the arch_ prefixed functions, which are then > instrumented via bitops-instrumented.h. > > Other architectures can similarly add support for asm implementations of > bitops. > > The documentation text was derived from x86 and existing bitops > asm-generic versions: 1) references to x86 have been removed; 2) as a > result, some of the text had to be reworded for clarity and consistency. > > Tested: using lib/test_kasan with bitops tests (pre-requisite patch). > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=198439 > Signed-off-by: Marco Elver Reviewed-by: Andrey Ryabinin