Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5544122ybp; Tue, 8 Oct 2019 04:43:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJndS4Y7MMwADw3zpDu4GyMj+cRtooF5JX3EkywC+QLChkjyM/u6DVfDqS4x30CBJK/0F5 X-Received: by 2002:a05:6402:2022:: with SMTP id ay2mr33578047edb.109.1570535002183; Tue, 08 Oct 2019 04:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570535002; cv=none; d=google.com; s=arc-20160816; b=iDmAfokxjslbXJ9AluTQFbbb2VrlCQfprMoGccnHkrj+Is/j/f6vXySEzJrhT9tJJc D8NhqXPPs0IC8/9B8at8frpfv8wsZF4AdFgZOvn92QG5irh9deWRmFWxrjE5sGmMmqHi VbDC3ClFAt43kptzx4CCRGo6D12kVsXsXHCo5Nu5A0964L1XY+IKfwo4RSlm8dFGj2Om rddThd10DIK5gSy13GYvzIhYWJo3Te+8rsmCrEt030+20rppWfk5ifEHVr/wKUEK9FU2 xvBvxnuk7ZD7n3b4sDYYc/V9aG8cHbNHeVJfIywlPzh0RwnabZn/3x4JYzwgnIPDQGwq i2bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=3JJSHu9FsmPxAujVouhMDsGNkk6sBiZ/QmGwiiONFB4=; b=XKcw8QNoaeqKDA8w5rBkpE08DLXez0tYKspN4wsN2d7rvtdU2S0JtktHzaBOeHe5e8 Y1AKDKsqKSDvSEqP6ikBfgNrTisWicLx9MiW+zRfpaV0HGKsV6eldSLNCwyyoQL4R1S5 dKbqVDsaJTofqQDNcTR5YLyHL+jXPNGllmH5mCsxKzgXk+vsXQc1QYF4l4bGadeHED4w Pmo2sWnOqSKvL+/3U3d+gDWowxgX3hk/IKZ0mQMRpP0dhbUp4QaKn6ydM+vPk/P5GbuI XEva1/kqFaM9uXqlj6aUWx3VSj7YtDkLnp7bfVhtN1cJnzRVyjyYkeTt5supXhMmx7b4 ElSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=ft1ONni5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b42si10205932eda.367.2019.10.08.04.42.57; Tue, 08 Oct 2019 04:43:22 -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=@lca.pw header.s=google header.b=ft1ONni5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730648AbfJHLmu (ORCPT + 99 others); Tue, 8 Oct 2019 07:42:50 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:34024 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730118AbfJHLmu (ORCPT ); Tue, 8 Oct 2019 07:42:50 -0400 Received: by mail-qk1-f193.google.com with SMTP id q203so16368402qke.1 for ; Tue, 08 Oct 2019 04:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=3JJSHu9FsmPxAujVouhMDsGNkk6sBiZ/QmGwiiONFB4=; b=ft1ONni5tzPFm7vpcdDKsmvlZcXVOpt9il2RREKA5mDs/iXlDAWt12DMHLjZ40/uLa W67IwIJbw0KNkBqIv4mqZyBbImfLaMu0nTzVSEFCPsLy8grCpjixyboBqo9XE2IH4tVd hGjwfHEsKsBMR5ENiBLo+UUOk6omMbdmasKrLXV3aEjP9VAjG1cdDLfdFo7qNYcJWoed gfSiltjTPQqJJzwlxjca6gnd4c0n7twpHnJ+3DTdcwWAOFKCl2oc0uPUxGLRuRIDyNjK 5dSd5S5fEJI+6sKBBNyzSXaremLmFju9Z/ytR3YTieR9ADzSZj1Br7Zm7qBD0AloT/mj ub5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=3JJSHu9FsmPxAujVouhMDsGNkk6sBiZ/QmGwiiONFB4=; b=r+DAhLW8QDDziyut7uzVStflwSI3WSaRNEId7MypTZJ2y4tbhXzwHAXLaKNn/irgg1 7pAqH/gr7NmktxRKxVDEegTKFlrL+MyXqQieIGm5a/jzV7P/uclGtDe2wfy7LG9WS63T c14XBmdDuqe+QA3DNf9ZMbweMQqGDi3IX6g0m93LcsJqy6PUD1z9eYxqEJy0PadCWy9f Q4Qf16rfIh/FpE3xM120ZSeax7rvLEIn0rBlbX7H11HmbxRI+rMSI8gIVeFLDGNGMWtj 7uD3ZZDAAD4LsFEPWERR628aeN2DSrET+yR1symEXH5EQi3L+TxuS8SpZ58Ek0CXenaj wzxg== X-Gm-Message-State: APjAAAV26bJ/bXqEH9fEhTYDTa3RQNfuag0GHg06fXazJG4QZEng4l0K vocZJvSsPP2NC3HZcbzD9LGIFw== X-Received: by 2002:a37:bec1:: with SMTP id o184mr28322315qkf.479.1570534969079; Tue, 08 Oct 2019 04:42:49 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id g19sm11133394qtb.2.2019.10.08.04.42.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Oct 2019 04:42:48 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y Date: Tue, 8 Oct 2019 07:42:47 -0400 Message-Id: References: <1570532528.4686.102.camel@mtksdccf07> Cc: Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Matthias Brugger , LKML , kasan-dev , Linux-MM , Linux ARM , linux-mediatek@lists.infradead.org, wsd_upstream In-Reply-To: <1570532528.4686.102.camel@mtksdccf07> To: Walter Wu X-Mailer: iPhone Mail (17A860) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 8, 2019, at 7:02 AM, Walter Wu wrote: >=20 > I don't know very well in UBSAN, but I try to build ubsan kernel and > test a negative number in memset and kmalloc_memmove_invalid_size(), it > look like no check. It sounds like more important to figure out why the UBSAN is not working in t= his case rather than duplicating functionality elsewhere.=