Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp273pxb; Wed, 4 Nov 2020 12:40:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6CWOp5baOSig6TMOIW867vuzjymcZbitIZjd4Wg7LCFOY2due4Yib+HN6Ihd3Hepjz2hf X-Received: by 2002:a17:906:f752:: with SMTP id jp18mr24230169ejb.331.1604522405485; Wed, 04 Nov 2020 12:40:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604522405; cv=none; d=google.com; s=arc-20160816; b=XVUW4taW1giMyRR5+gHbQEns+dOnu8XIGa2oK/NIKIvgAKQvZ9HWzMF/Udnf8pvqNY 18wOiE97oFQN2/b++NfYyOi+BQpCVtZKAxZreVcySm9nTn5FJSCrQCg6g5MeX7w5KB/z xtJY0D0BspxiKr3tpAhpa1d1Y7tQ3uoPVK4F1iFpikPJ1OHdLJx16vlr6k5JHyUan9bz 47R/WmMrAerAJXWKdISo9y3XTI1rlg+ZNAORUu8DkD4Hqv0dejF/FcvDnuZi5+EjKu88 oV6CWEASbueNGXM3CKQWahk6iF549/YEBxldRoWQ8qL24KTBl2KtqMgqj7RxP8fFt962 pcnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fdOGxWPYu/5JHKOXeU4bs0lQc/pjEQxcAHUKgqGUprs=; b=OkYtdUD9BPUOmgJkhR+3epJpwiIvT5C/DJri/n9d6s+cdnYnMf/2cvu8UHhTfACv6w gdmMt9hCtjXtX755XvPw9sVg+GROKTtYrhy1gYVeeP+441siDTDCuh09302feMES0RS7 kSWDNq4SyL5I3sPnJL9yV63GAJ3VS8mT2x+VoXlmzf+rPgBLoJxb3dgukS5w2ijIi4/L 3/itmpgbSddWi+7+O5YkfK0+42Zm4k5oxL5PU4dYZ1yP+u51iYZXtDlxGEWFiYtt3Ri/ ULiEE8kjHfmNnsJamqaI7LIc0ZuacGISGLYBEUOUUiW9sZS3l4Kp2Eu/o8ktqyvYHo0q unLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ovWSDkZj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si1823033edy.436.2020.11.04.12.39.39; Wed, 04 Nov 2020 12:40:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ovWSDkZj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730845AbgKDTR6 (ORCPT + 99 others); Wed, 4 Nov 2020 14:17:58 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47492 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgKDTR5 (ORCPT ); Wed, 4 Nov 2020 14:17:57 -0500 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A4J2RRX006370; Wed, 4 Nov 2020 14:17:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=fdOGxWPYu/5JHKOXeU4bs0lQc/pjEQxcAHUKgqGUprs=; b=ovWSDkZjod958HqXy+qHFL3W7H0m0Am9TuVPIqE8IFtQwXm5NtQnZmquk2Km0vJzXCA1 xhLwMo0RBLqgg3lAbF8wwenODP544v9AO6wrwb5xFBkNFu8DkYZM2mK2HJJDz9SSyzfc 5IZLI0L4LaWWBNlK5NB1LQIqG23x9941ftSQ+6yPC0USyTBv1oSb4vqFixQ473xOLa15 AGB2lYSlKxs5a5PeyTha8CUOS+yj6rRqdpTU7/LhhFES7MnB3aJKutX4G2g7yuoMdCch HHyj2T0/nlseeseK+0obGWQZ5pGVLuISZ0OGxUOPQ/CZsHg3fJgmNNagOYzCBt0B0RHH 9Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 34m1v40u82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Nov 2020 14:17:49 -0500 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0A4J2Z84006711; Wed, 4 Nov 2020 14:17:41 -0500 Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 34m1v40u75-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Nov 2020 14:17:40 -0500 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0A4J7Jgb021441; Wed, 4 Nov 2020 19:17:38 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma06ams.nl.ibm.com with ESMTP id 34h0fcvn7s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Nov 2020 19:17:38 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0A4JHaoC3539506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Nov 2020 19:17:36 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24EAE4C040; Wed, 4 Nov 2020 19:17:36 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F10C64C044; Wed, 4 Nov 2020 19:17:34 +0000 (GMT) Received: from localhost (unknown [9.145.163.252]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 4 Nov 2020 19:17:34 +0000 (GMT) Date: Wed, 4 Nov 2020 20:17:33 +0100 From: Vasily Gorbik To: Andrey Konovalov Cc: Catalin Marinas , Will Deacon , Vincenzo Frascino , kasan-dev@googlegroups.com, Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Elena Petrova , Branislav Rankov , Kevin Brodsky , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 34/41] kasan, x86, s390: update undef CONFIG_KASAN Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-04_12:2020-11-04,2020-11-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=1 adultscore=0 mlxlogscore=999 clxscore=1015 phishscore=0 spamscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011040135 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 05:04:14PM +0100, Andrey Konovalov wrote: > With the intoduction of hardware tag-based KASAN some kernel checks of > this kind: > > ifdef CONFIG_KASAN > > will be updated to: > > if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) > > x86 and s390 use a trick to #undef CONFIG_KASAN for some of the code > that isn't linked with KASAN runtime and shouldn't have any KASAN > annotations. > > Also #undef CONFIG_KASAN_GENERIC with CONFIG_KASAN. > > Signed-off-by: Andrey Konovalov > Signed-off-by: Vincenzo Frascino > Reviewed-by: Marco Elver > --- > Change-Id: I2a622db0cb86a8feb60c30d8cb09190075be2a90 > --- > arch/s390/boot/string.c | 1 + > arch/x86/boot/compressed/misc.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/s390/boot/string.c b/arch/s390/boot/string.c > index b11e8108773a..faccb33b462c 100644 > --- a/arch/s390/boot/string.c > +++ b/arch/s390/boot/string.c > @@ -3,6 +3,7 @@ > #include > #include > #undef CONFIG_KASAN > +#undef CONFIG_KASAN_GENERIC > #include "../lib/string.c" for s390 part Acked-by: Vasily Gorbik