Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4641296pja; Thu, 21 Nov 2019 23:20:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxO2H93YvCTVPGuZnBHN5OdmEdSjtpopUwRZk6lKpDGsMWyc3sUn0/kmwXvkqUc3izqxUD7 X-Received: by 2002:a17:906:e0c5:: with SMTP id gl5mr20235928ejb.119.1574407241044; Thu, 21 Nov 2019 23:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574407241; cv=none; d=google.com; s=arc-20160816; b=JPu0dlbf3iknJ57PPNvaWZmIyTi/fAUijNHFU2X1AtLoZBvMKlwoW1Rh7EeGQAHPIe wWp3qgI4mvsbjkOIHwdZfwExTa6xvLYy/XobM7wTskbDHXyUbmfnoN09BQzr02bEznTJ SALPvGZREzsDbAWVXMdGZjhEK90P2BYEMqGoEQ1/VN/HyuMK5CBniwVc4P1fkCWyzKtM 9vA3zPOlO/MD7e6m3YcUfHoKatEBOObEuMn/oXMi+hjuZHijO9NFY4LjsVfKRV1CWaO3 uxwvwahcrVQ5snmxoW8aL8G+WcYVj/3WsQbUqhi9S94QK3+ZtswsBDXa2yMY3ovO/egB QLFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Rn/XoDq5loIZaVO1pS6BYoAXB6sUp5RYn3/dfFUf7zc=; b=FykJXbmbxg4iTfYa1wKIisKyFKTgp7sbP4DZpPTyOH6OAcPOtTkblPIu8nS/troeP6 8ygxgt7nelaGvgf34VTjwoKr76yf9ThI3/a0Y0QQbVC9gsa2hZ4ynzwLZ422mB/rSo0e OgtCQzKSR52g7X9CkRN6amn4EW20N+tJrV/4O+PNU4bi8gvYroHuymYeyTgaRW0WaTvJ Ity88V7vrGRQ4eqvPupfJNJnlB4KbYXEKtnmx6zslkjZQeLMXtuyuzFgg16GVhOx3exR dBflw8cJPMqLqqVqDNP6Lr+DJnf0bkMbC1J6CKR3ddsLxjFn0cZbpo7vZVNhIkAckXcT JLFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=gHxeAf5s; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18si4258333edj.94.2019.11.21.23.20.16; Thu, 21 Nov 2019 23:20:41 -0800 (PST) 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=@mediatek.com header.s=dk header.b=gHxeAf5s; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726792AbfKVHSq (ORCPT + 99 others); Fri, 22 Nov 2019 02:18:46 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:48330 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726018AbfKVHSn (ORCPT ); Fri, 22 Nov 2019 02:18:43 -0500 X-UUID: a81b81e6f8804a6bb5c3d97cbf665b8d-20191122 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Rn/XoDq5loIZaVO1pS6BYoAXB6sUp5RYn3/dfFUf7zc=; b=gHxeAf5sG9N4OAiGULAd/71WH48OQvo7+wOUdGKXM2iC2ywkuZliaijlJNPHaxe4vfanFehwD/cR/NrEdfz/w7LXThLmOjYgKO/D56KKcmAazYezqNX2IUYqe6ITylL2dbXPxpsJ3lvfVT+YOIg1oRMY6ejkzBXvBS/U+j+RC5M=; X-UUID: a81b81e6f8804a6bb5c3d97cbf665b8d-20191122 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 295321122; Fri, 22 Nov 2019 15:18:37 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 22 Nov 2019 15:18:30 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 22 Nov 2019 15:18:28 +0800 Message-ID: <1574407116.8338.10.camel@mtksdccf07> Subject: Re: [PATCH v4 1/2] kasan: detect negative size in memory operation function From: Walter Wu To: Andrey Ryabinin CC: Alexander Potapenko , Dmitry Vyukov , Matthias Brugger , , , , , wsd_upstream , , Andrew Morton Date: Fri, 22 Nov 2019 15:18:36 +0800 In-Reply-To: References: <20191112065302.7015-1-walter-zh.wu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDE5LTExLTIyIGF0IDAxOjIwICswMzAwLCBBbmRyZXkgUnlhYmluaW4gd3JvdGU6 DQo+IA0KPiBPbiAxMS8xMi8xOSA5OjUzIEFNLCBXYWx0ZXIgV3Ugd3JvdGU6DQo+ID4gS0FTQU4g bWlzc2VkIGRldGVjdGluZyB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