Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4305468ybp; Mon, 7 Oct 2019 06:34:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwr8230kV5JlCtjV0QeCMHum1y/7Stcg7i6cNCUo+b4b6WEOiEKgy+9s//jIfl8PpI+7ph2 X-Received: by 2002:a05:6402:1202:: with SMTP id c2mr27895494edw.190.1570455274738; Mon, 07 Oct 2019 06:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570455274; cv=none; d=google.com; s=arc-20160816; b=DOavXq6rUqMz8KPMMAy43qzlPZdqoTPmr7+TG2mokJ2TjCBhy6AXg2KiXVfJr7wzlg gOEY+Xr0Vt5PhNnpbzR3mm811tjpxgAtGODypMaRuvW5IjiuYtied0ncQRsx3P/hwvP/ G5/LRMvy9HV6cKl9nrUopaL/0YJh2zA6K2wnW1ffR2HrgknmFHo0KGXjaJVzSFsrtw6/ 7Y0svfAUNmkXt7CcZIf//xRrGChVqTxktjOnzOPMFYmQs/XmL86qU+Q5K8DWm7hHqO9H +D2+TahLi2CDb/gQ7eqY2ACx7r1cjlfuk17abAOc7wOaYe3SG7mQ/TioHhOpqmkn7Hgr Cwjw== 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=Nwlp1QPq4c1Fg6asQ7NB8TWNONjREWmPa9T7sJeo1Lk=; b=ZeZ3Rd0tVjN0LZOWBiiaXdmlSm+WD7jUgO1tIGELfwfRpn+rwKw3y9KocT3eXUfAwd n9Aye3BIN5ba8g2x0bBCY5Um4jcgihf6FRsz5FF7oSL/7Tvel6cLv2XJ3xXDenIeH77/ RO8bsdowkd2Eo9bl+0uWDz5+xTcW7S+RSPcop2BNpjXe45HlwAyjhgsUkIBwkjnbMrHu ZZPO7gb3nRnmDpQ4FaO5u2OwxwjsTvc2tCScHfVWWp94mgHDz0vMgPOXUVDk8+Q/VzpE 0c/Bz1RTEKClHZXKVn5vAqCLzXrbKiugKmMp+aZLpOZzH0JhIbQd1wPnoImvmO/K09sV ETOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=LpR2u7B9; 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 n4si6496296ejj.132.2019.10.07.06.34.10; Mon, 07 Oct 2019 06:34:34 -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=LpR2u7B9; 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 S1727715AbfJGNeF (ORCPT + 99 others); Mon, 7 Oct 2019 09:34:05 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:37571 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbfJGNeE (ORCPT ); Mon, 7 Oct 2019 09:34:04 -0400 Received: by mail-qk1-f195.google.com with SMTP id u184so12540488qkd.4 for ; Mon, 07 Oct 2019 06:34:04 -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=Nwlp1QPq4c1Fg6asQ7NB8TWNONjREWmPa9T7sJeo1Lk=; b=LpR2u7B9qLEOo21QyyEqXT18++T96JVqMjjDQyKd2ZljeCz4lOfAqE9jICCOUofOUh JVqDxIg1Co8ZFXn/zlC3TsCfiNvKGMhAnJLziq46rxbu4og/R+XW5nGWOgqMfz6pbbio DYlXgZzLO48AJQMOMhcVvAs3AI4aCK6b9O3UsPvpLyfmVZgxV62R4sbvBtT07sHpnj9p GKBLb19GpMl2Ppo9oiKiS+DUJEs6IMFL9vxBn6QRUcr9K8bqdEuG6fWgtOg4oqA3msfL F8mqxebT+PFm55/aoOV7zBRZ7ftd+J6BEiZbp+9jRyzhUTvQLBzB0PTqhbMLTk9e18EE 78RA== 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=Nwlp1QPq4c1Fg6asQ7NB8TWNONjREWmPa9T7sJeo1Lk=; b=TJ7XlwD1vkKx30cslCMzj5xEbD+FAkbCyMX53P/DgDt9Y4cp1X7mouJ8s/B73CP+Mi hCkLZ06yk3MFnKSR8O9KVS7pfgVGJWXWuM1zFsaMj1RJKQzLwg1bZcS5vubGU6qA28Bh qVYMuaHk5mNUFxaJOTRtUgTqTaslyRGTLzbbjD7fe/RfzAVI5juq9BdPYuP1X7SYhwLE 4ZNanhbGI9XBxgEfvl3wb5tGzdpeAGHSC//ZVcBX0B2OfcQ8booZROq+VGnMVpjC92VJ ig6lVpqAo4zRtCN2Kkg4pSWh61KZR2j8aH6VOc8cPThv8m7VD2jKK+FoDeXGib7yNkMj NHow== X-Gm-Message-State: APjAAAWvg0K8ILB+DNrP2wh3GD0W5+psjzG1hKs3v50XqANLg/Swf0Ot MEu2wA9aBJnzXH7aP8+eVqymEAnCvjcNpSASEN0cNw== X-Received: by 2002:a37:e10f:: with SMTP id c15mr22691586qkm.256.1570455243666; Mon, 07 Oct 2019 06:34:03 -0700 (PDT) MIME-Version: 1.0 References: <20190927034338.15813-1-walter-zh.wu@mediatek.com> <1569594142.9045.24.camel@mtksdccf07> <1569818173.17361.19.camel@mtksdccf07> <1570018513.19702.36.camel@mtksdccf07> <1570069078.19702.57.camel@mtksdccf07> <1570095525.19702.59.camel@mtksdccf07> <1570110681.19702.64.camel@mtksdccf07> <1570164140.19702.97.camel@mtksdccf07> <1570176131.19702.105.camel@mtksdccf07> <1570182257.19702.109.camel@mtksdccf07> <1570190718.19702.125.camel@mtksdccf07> <1570418576.4686.30.camel@mtksdccf07> <1570436289.4686.40.camel@mtksdccf07> <1570438317.4686.44.camel@mtksdccf07> <1570439032.4686.50.camel@mtksdccf07> <1570440492.4686.59.camel@mtksdccf07> <1570441833.4686.66.camel@mtksdccf07> <1570449804.4686.79.camel@mtksdccf07> <1570451575.4686.83.camel@mtksdccf07> In-Reply-To: <1570451575.4686.83.camel@mtksdccf07> From: Dmitry Vyukov Date: Mon, 7 Oct 2019 15:33:51 +0200 Message-ID: Subject: Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y To: Walter Wu Cc: Andrey Ryabinin , Alexander Potapenko , Matthias Brugger , LKML , kasan-dev , Linux-MM , 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 7, 2019 at 2:33 PM Walter Wu wrote: > On Mon, 2019-10-07 at 14:19 +0200, Dmitry Vyukov wrote: > > On Mon, Oct 7, 2019 at 2:03 PM Walter Wu wrote: > > My idea was just to always print "heap-out-of-bounds" and don't > > differentiate if the size come from userspace or not. > > Got it. > Would you have any other concern about this patch? Last versions of the patch looked good to me except for the bug title. The comment may also need some updating if you change the title.