Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4369538ybp; Mon, 14 Oct 2019 03:38:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVCojJFU+8TS7E0eBNI6rEM1AbvAWDtdVJowbK10lRPLuYdSdtnE89xg26gsjb5GFH0ehk X-Received: by 2002:a17:906:2ccc:: with SMTP id r12mr26406919ejr.249.1571049516214; Mon, 14 Oct 2019 03:38:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571049516; cv=none; d=google.com; s=arc-20160816; b=D6dWOPNfWr8Tz3SunI7nXXB6Ad5ZHxf1Bj8MgQDcz3WdsGPoYF1F1a/HBvZcyRBKKx BQMFwDM5aunwYQO7/h+r1Y1FXIVRO1+gBCzYFQ9W+PFrpM80KrVtrjdw3ZhtZO3L5iyd znc9fjiTn//JTK55XCmhUp9xe9LpZhXwd3B6OKHnVpi06awf2+QjIAqXzoPdH0LemvLA o0Aa3GdJFhax1IZGd2ZHEbZ+cZgax49K8wHj3p8u7/soHkCZArnbJqFV0H0GZTQqTAVi DL8YhX6iyFueqdkQBBfO6mmPJHYitvp8QUllsda3ez+nI/e7RuxBKFoTGz3WGEAePyIf dPlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Xb4r1wuhDtOoPbUBnl8EutTh4mh6Tp7aWVqMVQujZhw=; b=qtEmoFCGaciVX2GUD8KaGoDIo77kWwYe3wR2C/nQ3uVe2sAYxeP3tVgnmO9ehHNU3L MdYL6ogLX9fb/sqEwZuWakiyllAOpRV23nx+hbrkGlnb8KV408C2JmY+rsR6lP7SL1Ke wrS3Gf3RF+nDr+tlzyuslHJ9je8nXmUw1w3PnH/eisDXouqtXpb1EN9+GcgzzxgsbU42 gXXrpiKpxQfr2EDeV9U8De732hG5mtIHdQj+7MF+moyNGNCGaPvXW/cWO10fbRgKBM2E sdKc4K/cmj4BHma0MDujAGrY8kBibQWocbl3RM6G7oUYU/JBO+QBlHU8teJ1+Lc6jfRQ +TLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ncAdm5p6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si10905832edx.361.2019.10.14.03.38.13; Mon, 14 Oct 2019 03:38:36 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=ncAdm5p6; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731546AbfJNKhv (ORCPT + 99 others); Mon, 14 Oct 2019 06:37:51 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41466 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731249AbfJNKhv (ORCPT ); Mon, 14 Oct 2019 06:37:51 -0400 Received: by mail-qk1-f193.google.com with SMTP id p10so15408527qkg.8 for ; Mon, 14 Oct 2019 03:37:49 -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=Xb4r1wuhDtOoPbUBnl8EutTh4mh6Tp7aWVqMVQujZhw=; b=ncAdm5p62dlyPVnbhlG8Ia8TOY8Bj9kzLoEPG8kBn98/b8IfkhIVulK5Sep05pIK1O a8o0B3t0aBxh0xAqIOcEfeSXp13CEtfHNcab6d7/193DUVfmkz6KLTW7BNnGSznYniOC OrQZYXwNQfNq6OFKV5BbBiaTmdDdA/KzwRrZQgY2d88OFjuIVU2/uImhKHWnlurIyJTf NP0R4emwQfuBb5AFCb0fsCrPv+n4gOBYVydhYj5Mse1CI1LeqzszvjYKB1kegwn/09dD ncJyFdOgxfUX5QfpE14HpJht0iIDCoje7GqrMD9p9QhnHQ3UxkeRvYSV9f1KCk9Dy3Wa IlLg== 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=Xb4r1wuhDtOoPbUBnl8EutTh4mh6Tp7aWVqMVQujZhw=; b=Y4Akt1YZhJx5zbXx1Ti9vMsfptidDa0cvcSCx2tozBQi+3fySBGU3bjJw7w7utLQVP k6mXlOmwwV2TrWIvnzJihSdK2lJWapd6m50BgGqilG5t3RXs5FL4MYAmOaY+SwVvfjkX FNV8SZlfFB0g5xf4ZBR19Xn1JS4fjqCu2tbPcoyaWtMzpKp9bOZGxDtqmnFL6B4LIJDq /56RlFI0N2G92JVMbdtcv0oRBKmbc3zJA0XUmd3f2kp0M0WeM/W5ZmILOlF7/tU44B0B uAsRX8Q+S1sWzb8Q1PKk47IDAMSD9kivcapOrXaLRy3rVvp3OEtLJy8G2p+nie9VYhQG DkNw== X-Gm-Message-State: APjAAAXXiiOlVOj61Msx3zGkUM/ZzSuPl6vLLQlqLcq5xoDf6wyQKqon JLIbtlKT+1EXc1emtzvOm7vgTD9Xjd8H7ITz5fwXbw== X-Received: by 2002:a05:620a:2158:: with SMTP id m24mr29448433qkm.250.1571049468723; Mon, 14 Oct 2019 03:37:48 -0700 (PDT) MIME-Version: 1.0 References: <20191014103148.17816-1-walter-zh.wu@mediatek.com> In-Reply-To: From: Dmitry Vyukov Date: Mon, 14 Oct 2019 12:37:37 +0200 Message-ID: Subject: Re: [PATCH 0/2] fix the missing underflow in memory operation function To: Walter Wu Cc: Andrey Ryabinin , Alexander Potapenko , Matthias Brugger , kasan-dev , Linux-MM , LKML , Linux ARM , linux-mediatek@lists.infradead.org, wsd_upstream Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 12:36 PM Dmitry Vyukov wrote: > > On Mon, Oct 14, 2019 at 12:32 PM Walter Wu wrote: > > > > The patchsets help to produce KASAN report when size is negative numbers > > in memory operation function. It is helpful for programmer to solve the > > undefined behavior issue. Patch 1 based on Dmitry's review and > > suggestion, patch 2 is a test in order to verify the patch 1. > > Hi Walter, > > I only received this cover letter, but not the actual patches. I also > don't see them in the group: > https://groups.google.com/forum/#!forum/kasan-dev > nor on internet. Have you mailed them? Where are they? OK, received them just now. > > [1]https://bugzilla.kernel.org/show_bug.cgi?id=199341 > > [2]https://lore.kernel.org/linux-arm-kernel/20190927034338.15813-1-walter-zh.wu@mediatek.com/ > > > > Walter Wu (2): > > kasan: detect negative size in memory operation function > > kasan: add test for invalid size in memmove > > > > --- > > lib/test_kasan.c | 18 ++++++++++++++++++ > > mm/kasan/common.c | 13 ++++++++----- > > mm/kasan/generic.c | 5 +++++ > > mm/kasan/generic_report.c | 18 ++++++++++++++++++ > > mm/kasan/tags.c | 5 +++++ > > mm/kasan/tags_report.c | 17 +++++++++++++++++ > > 6 files changed, 71 insertions(+), 5 deletions(-) > > > > -- > > 2.18.0 > > > > -- > > You received this message because you are subscribed to the Google Groups "kasan-dev" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/20191014103148.17816-1-walter-zh.wu%40mediatek.com.