Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp748500pxt; Thu, 12 Aug 2021 08:45:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsIbfw5dlftsV5/57p8C0uobaIo1Q8P/taKLS6Lz1sZasdhkg19Pa8KtI75kDi1X2NU6ni X-Received: by 2002:a5e:8f43:: with SMTP id x3mr3559213iop.206.1628783146572; Thu, 12 Aug 2021 08:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628783146; cv=none; d=google.com; s=arc-20160816; b=EvDGLOwpebkkko/tFnHbWtmBgKLcjwxmkDAzDmEClX5NrWeS9k7Migj+BouHzdeL/t w1oJM7pbJitBzKwBGZT4Z5cJNdfuxCAdXuoJcfDDZxAepgFykbCuEaytbCYuq83JdQOV eA6beN/v5HBqo0PTaZnjMnJsQo7E5c+iz0k0PAdGdt+wvtTbGoJ8YwkyzXq6w7NqjGkK SRR/3eqsfv0JXX10CWl5k9/8F9YoSDRnaVDMG0DrwQyYSChwjLOCMNWt+GoQjdORBa3H URn65E9TutyCh6gcp7rdqEIHZU1mjqtZRG1v/N/pus+8kqJ41oYty3Lu5lguosy6XGcv ogfg== 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=zpfP7I/jc2+BB4WhfHjvO/EMXto5OQE4zX/MsZU99j8=; b=M4PZd6/oznBowYbgNkYjxz1cMmKcoInyLwZ7dCfckkQ/EFGBPDyv8VUx048gKh77BL f2o2XoS2HlE7TUyl+/U0nAP8AVWyxG0VgyE5+KM6JNYvOUcQcPnR0K9PmdRiXQ3GbxpK HB9eo2GEJmJQ0jj+gkNeR7YANEK7Wvpie3raS5F8J5yOijF93ew2odc1vzsZuhSaGATK Tir5pPGOw+IyZxx2KbbEAA2Us+VC/YzkahfvkhiKnzPpcZyZv0qdxs+yvR561eK4G1kq hzJiilto/J4aImRHWgzODpJpW/JKZMvUj8IMVeIxUTgi9ixXGbeip+VhL7KB1PW2MP5h KO/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vRiM7MY6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si4104299iow.93.2021.08.12.08.45.34; Thu, 12 Aug 2021 08:45:46 -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=@google.com header.s=20161025 header.b=vRiM7MY6; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237991AbhHLPol (ORCPT + 99 others); Thu, 12 Aug 2021 11:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237375AbhHLPok (ORCPT ); Thu, 12 Aug 2021 11:44:40 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3135C061756 for ; Thu, 12 Aug 2021 08:44:15 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id h11so11095623oie.0 for ; Thu, 12 Aug 2021 08:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zpfP7I/jc2+BB4WhfHjvO/EMXto5OQE4zX/MsZU99j8=; b=vRiM7MY6AWLe90EmHAb55UK+uL56sONCIdxRRFJRtQlGwoPsmFFdPVadl1/Ihi4dbH 2c0xWiepnA2c9RSULOzgy61aGi076jjNO/cC9RxqXz9zyXVsxcFI3xF6xsUxdYi5qF9Q hPJK9IgHTG5gLTYElWri/bym+MsYMrylFs4pVWcUGg/ptdidJalbxIfmqvnbCR/J4wN+ 3/VdVRqSBpWDC1OERKgzjxjgD9g0Pw2qOEKEtKf7+1P33l/c2Z6Dk8k4tUx6wrSCYYJx I3OpGKMIhtUR6LPyIAXfp/5XomW1Pe24lXSdJAMsPG6t9xtau2mdxzH3LTvtL0FSsHhi 7vCg== 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=zpfP7I/jc2+BB4WhfHjvO/EMXto5OQE4zX/MsZU99j8=; b=JuSB6xEMOLbRhyThuHT9EFDo7mUXcOcoKyNocBQoVItEuxQAv7uWINw2yGS+AVyaXb gWBmyVsAaloDl/6Qv34Vg8pOEe8xEOQOwLiDIwVanvYz2gT+B5QJ85w7LW35XvWl1jf+ aQCUHkqO/pPdoPGGk8HvXTFeAlKVYvhcFusjy/lc57QWLJ8wCB9e7e6oQ9oMA31Yhu1e 6eVdrGzj75wQ9HYHiyvRhf9aKIX9g+60eDLAp0mH/xdOf6c4XkZwme/3g6zZ33wzdUCH L1Vm4/o542FnqIkjc9Sk6mCcsLRm25FeGLqtHGdHutbCbyekwrRUH7CQsF5USyVKjKa9 MeSA== X-Gm-Message-State: AOAM533cIUNguipT7q12BNl9Rs4BtN5zN5eOSSFYJklTSHTHXjI6sq/X CTDSRUvJVhncc+YhYHERCspTgAiuJaZSmM/x2N+dEg== X-Received: by 2002:aca:eb8a:: with SMTP id j132mr3817727oih.121.1628783054859; Thu, 12 Aug 2021 08:44:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Thu, 12 Aug 2021 17:44:03 +0200 Message-ID: Subject: Re: [PATCH v2 0/8] kasan: test: avoid crashing the kernel with HW_TAGS To: Andrey Konovalov 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, 12 Aug 2021 at 17:06, Andrey Konovalov wrote: > 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. Reviewed-by: Marco Elver Looks good, thank you!