Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp732522pxt; Thu, 12 Aug 2021 08:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkpffK70bouqOZUR0wi9OyXzu6uRvY+E8Bv8Xi5x4QZCQernxYc3NQdEvppvenOuzqK/Bj X-Received: by 2002:a05:6402:524b:: with SMTP id t11mr6205060edd.330.1628781891631; Thu, 12 Aug 2021 08:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628781891; cv=none; d=google.com; s=arc-20160816; b=tYTwUCtISM6GvQ9ySHUyodvICMGq/ruD6cU6b54nSroTyrnFCXuxpo13mLuarh24U3 4M9k5JfNdEaoKoLIkyQl1+a2+nJUazuhwEXlUohOoUzWIfAEnQczAtCD4giJlYlVsrXu yRqwwy7/k1PhVZ40CrIQHrl0YsREaTxw0S8dTVFl3Y9DAQvKCrcQcbpSA/QuprjpcBFI uKs+HySm15UfgNaqmpjgRA4tibaN86ne5huk8KvvgsreMFWFeEUR7RGvduYmhGmxZ6ON R3WInlwVYmxofR/s+ObBKwjRcrDl6PP1cJMXbSzbzJEcUNLHu3hANBHAJ8Rcu4UHXivV h9MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QEmLCQfmQOuhAIlIo7tcPafee51VNGzdqFJimZNT+qM=; b=n8bsQEHoYHh+7hJiw1FlJomD735TUsvpA8BG0JFfpO5jq+4olF1rs8J60y1bq4kank Rlkmay9Or016al6lp4T1iHhbzTSAGasauW9MOBf8KUPNz8LPU6vyCSbb40ZGdeFlYFYL zr3GzqseFoBG5k2RMLWAtEhcNaZTTEyf0zC3k0NHrTVePNiAbj/xez4gRd2/QmLxgWCK CQs0qAeg6sy+NpkrkfM9f2fWqsRlL63SIi/gDHAooNDMRlsgiDSwZoEKHRnf/SObHYvU IcSZo3IeetEniVwhxvAOUAdHJnFcvJoP5w9sgPKLCjHLqDmGDh09M1n03s7CMxR+9VAc GtEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KaHfVQvX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck25si2848340edb.245.2021.08.12.08.24.27; Thu, 12 Aug 2021 08:24:51 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=KaHfVQvX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238318AbhHLPGb (ORCPT + 99 others); Thu, 12 Aug 2021 11:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238317AbhHLPGb (ORCPT ); Thu, 12 Aug 2021 11:06:31 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5403C0613D9 for ; Thu, 12 Aug 2021 08:06:05 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id x14so10135941edr.12 for ; Thu, 12 Aug 2021 08:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QEmLCQfmQOuhAIlIo7tcPafee51VNGzdqFJimZNT+qM=; b=KaHfVQvX5t1Gl/ExbaOUje9GfbDNpJxy3O9DDDPK6lqgCRBEspMsuS319Rj3tvxXZu rgg5Dwt0FFu1SsPKItfNcLL+qMjYHNU5khYAm/MFKguqHz+kWovaAVVeZH/IEuy3yJv/ Q1Mch9uD/zrMePWc9us4UQqGcpOGQAFClqnDQ3CMbUgm1a5zjyxy0py54n84rEF+yJo3 EjLufgWVPmsd2j2vYCkJK9dfddOYC7nDEsFq7x2eU55SDH36kskyAmQgetwzsSDuyFfU A2XXlTBpe0eag3MJP1isBUN1KGxKf0OIoGaV82cBaTDStXNtcIeFdSjsONtF4KNj19ys 7IbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QEmLCQfmQOuhAIlIo7tcPafee51VNGzdqFJimZNT+qM=; b=E8NcFppPd3KJZSYQGen/pIF1sLBwxMfrXqae1szOOfHIsXM/zEqECP0gqt5wRx+5G8 iIwOYApcRNVtViJFj61D48DRFz0pptWGtqcbqbI/tlcUBjppYGtb9ENMiTrRDrWg0TwR IYjhd1LpHbbd0ICbRDgSVZhe21V76+6QTif52Y9HSZ0ftXSR7shVm1a4D9a+Z43pxXwp K2a3ipWjN4dBC6zzRMBNhCQ9PudrbeozgBOjnPlqTrqRj66gNx//MDMc1WYY0sEg5slT 1DXBDhVbMwb+Gbkga1cgWbTla9MCrxqEa+S5om1Bl6SVHAhuxVRrjT2gb3UViHiTIa4q Y6tA== X-Gm-Message-State: AOAM530AeUL04Znoi05d00ZLYYZlSUp8f9ZzK4XMgTmeZ5joS5Zqfksq O5u2rmMVpmJm+jiZSlhBw7m/KPnuCu1cTj1Zb+Y= X-Received: by 2002:a05:6402:1299:: with SMTP id w25mr6232247edv.30.1628780764189; Thu, 12 Aug 2021 08:06:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Thu, 12 Aug 2021 17:05:53 +0200 Message-ID: Subject: Re: [PATCH v2 0/8] kasan: test: avoid crashing the kernel with HW_TAGS To: Marco Elver Cc: Andrew Morton , Andrey Ryabinin , Dmitry Vyukov , Alexander Potapenko , kasan-dev , Linux Memory Management List , LKML , andrey.konovalov@linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 12, 2021 at 4:53 PM wrote: > > From: Andrey Konovalov > > KASAN tests do out-of-bounds and use-after-free accesses. Running the > tests works fine for the GENERIC mode, as it uses qurantine and redzones. > But the HW_TAGS mode uses neither, and running the tests might crash > the kernel. > > Rework the tests to avoid corrupting kernel memory. > > Changes v1->v2: > - Touch both good and bad memory in memset tests as suggested by Marco. Ah, I forgot to include your reviews/acks, Marco. Perhaps you can give one for the whole series now. Thanks!