Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4369273ybp; Mon, 14 Oct 2019 03:38:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwI0oBvG/MszcjcxROAj5Z9legeYqdAPBf5ULaLMNvKJ7/ZUqhw7JVE3I/1kzCqhX0MJ/ee X-Received: by 2002:a17:906:360c:: with SMTP id q12mr27593387ejb.168.1571049498770; Mon, 14 Oct 2019 03:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571049498; cv=none; d=google.com; s=arc-20160816; b=z/Ou+Qqj1djiVicAxdpyj4RmovfNaDnBBqKiNk58ejR5IcM9Rx3Ox88NiAArer7W4m ez/6YfPzLdpQibrGSwtgcMp/JyhgqlD9d9RlsRLOJi0ZSqccf2hMRboMcnKur6YaVmNr ZCt/idblvp5nmKQQSknqDV8heXEw8IZg1f4IZh/8QxmgHt5ZugJjbO0HGK2yzohsvxSU Rs22k18GFZO+AyGlOVBEe4mhVSUBbZJJFlaqgISRINyTOUh25ZYQLvV0Y4yibHevyeFr Bjfs81hJIDgqBkxcSgzd8JOFAg1fxgYiMuoBKvoFtneh37YC/9cB1KkekDYTQAYp90q6 P9fw== 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=26plC+LB/ET6lKUK8GUr/NZh4YTG4I5vCBM0xWKfjSY=; b=yqApMKvmcYHZKFxVFNSBwobp/pjpwNgzaADS/e6VGoaApXzTdbnw4RjWYsAcUIoEWp 92ZVXBJo10BoeBS8TikvVONd3sXR7qXTkC3aKW8yOoMuEIG+4XmBbQeBEsEuzmVdtYBi k90rL7YMHqJ0Wm7kMMWBAmT+4qY7oWlkQbdaLhJ6PH5rk4djjeAHQqjlBs/QWWPDkCBe G8yBDtwsJc7l2onJLDPFzNb2Lfla230tdUpM+l1SsNxVw3ZsaiOvvCZFelO3hhFHIDxp H/vtaRzzL6uMYK3fjxc7Jrs6Vm+5gYi6B7d7kg0NMR5IxLZo2GMsDyBOji7Z6nOjcfiH l3/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vhfeBhIb; 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 p2si9972882edx.106.2019.10.14.03.37.54; Mon, 14 Oct 2019 03:38:18 -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=vhfeBhIb; 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 S1731500AbfJNKg7 (ORCPT + 99 others); Mon, 14 Oct 2019 06:36:59 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33822 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731457AbfJNKg7 (ORCPT ); Mon, 14 Oct 2019 06:36:59 -0400 Received: by mail-qt1-f194.google.com with SMTP id 3so24791177qta.1 for ; Mon, 14 Oct 2019 03:36:59 -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=26plC+LB/ET6lKUK8GUr/NZh4YTG4I5vCBM0xWKfjSY=; b=vhfeBhIbqctA+sxvOa8rDMgMZA0l1qMP0sDE3KgO56Y6lc3OpphV7fkCxySXu6yuf0 zQI3csG/xFqaWpTB1334kqSZvke3KFNRZYH+iOzLeYF3LT0sw39+f3oVcoWI/Kv5yeV/ nNxqTAO+Kkfu0gzhK+V47J7dgvcAuP4c770wVb5w76FXzfs6pyIY8mljaRNp6JX/TsgU uSpYNOzzWshBvP5PbZKMF4IAnIEEvTr8NIlBi/AY3fRAdB+qU1REmKvrl1AY0eM9iCWI gm54+mmfq7mVRBq78QlBBUDV44/ghCCEpEvb32E2HuFldPnFvz+sBUrhiU9wVri71POt YM6w== 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=26plC+LB/ET6lKUK8GUr/NZh4YTG4I5vCBM0xWKfjSY=; b=ic0/BmZXOyJkwprJYXhmtXHz3HN/kZIfqR3VG7RjLOJc2pI5lTIDXvdkJhVYgTakj2 nkl5bKUBNRkNFX0vJHCvUJIxROHxduEhwgjPQgA//qIz3l1S6OcKp+Z9+dAdY51m6II6 UXQ35guDCW+CLv9kDfCOrEQbxMK0FseZSx9ooQoklbDBOleXtqoXsuA9cXTAWxobdQBc cC86P66/fp5fWP05iuY33z72UM82fphh0531N3pgyVPKMiVS6CONqrvLaJWysT8a5VbT YEGevzpcCTS7Gp2+3zCsZGaaRaCgzF3n5UMUSuN0hd+ryCzrYOS31e5ddNIixJ8R0sCM eUrw== X-Gm-Message-State: APjAAAX3tGIX83MD5eH+6nOj05E9/jvdViG/tv62poV5g3qifHBqIxNz j88tmuSuWRBR8pw+4PdlfqtcBVj+Rctwm6bw6Lpkjw== X-Received: by 2002:ac8:37e8:: with SMTP id e37mr30909144qtc.57.1571049418182; Mon, 14 Oct 2019 03:36:58 -0700 (PDT) MIME-Version: 1.0 References: <20191014103148.17816-1-walter-zh.wu@mediatek.com> In-Reply-To: <20191014103148.17816-1-walter-zh.wu@mediatek.com> From: Dmitry Vyukov Date: Mon, 14 Oct 2019 12:36:45 +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: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? > [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.