Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1728065pxk; Sat, 26 Sep 2020 03:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/RfuRFgMwSABTGpDHzbyyhndsgGbijPCWhu/JxCbLGGb2mfL41lHwCpaqNvst0lpOGuUM X-Received: by 2002:a50:ee15:: with SMTP id g21mr5975127eds.47.1601114639044; Sat, 26 Sep 2020 03:03:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1601114639; cv=pass; d=google.com; s=arc-20160816; b=aC9of/p5J1Bl5ztr/V0rnI8YlrxC9l/e3Lr4h6+YkrrgHuLlwYcvk3MPbhRZpwNfR/ wpCLM8GGX4GBH/uygBno4y7TzOLVz8ICXVevTVxADuP/MQIDc0vi2pCiBnKYeipNaVSH mUID9AxdEMBHbl+LQRjzvMszuBElX2+YEHssD6rkaef+0ItQBlCKVmpo9EwsrnZh82qs WQYFv5LMnmq0L+7yO791A0kB5e1uWmXPDb+dOJCguVAFDKfoGLqxfYZ06XpUWJ9cgleU RpBCrXYEE/7U9pxllUDdsF1rcXNXmtMi639yeRWDuEx/ZKImnIy6jYpdgMku7BbJ96NH dvgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:wdcipoutbound:user-agent:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr :dkim-signature; bh=MvZBkz7bSacn8DuwqvbVk+t6b7fMTphW7tw3aVMsiuE=; b=fvSmZAtfhi3IKI63Y2crvsZXLX1M61T/p452YNQGurN29kgjsi117bjL5Yhss2JfVl 3Ri83PeEl1FtdFUXLd5vs8/N9Z6qgiQ9xhNk4oHCKUBYvR4y/fCu9XWXCNRy5+QLdLKy qX3HWL3XTLkeLN1f47rtGYqFT4Oc9w8TwLt5nqs+9AYZlr7UzUArAonmm3UQ9Ztime9Z lq+9qldNEW5VGYZ/ijbSLhStNi1leXPhLeQyGEMZUCTnuWmZHroPzzl/6TPJ8Xa+pV8b BBLlmXWCrkGOF+ETB9FquSl8glSDZeTsKkZ2ZJry9zGgE6ZoSoMvyOi+pkEYCZVOA8S6 6+rw== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="Iw/AZZBG"; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=NRQCD5pb; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si4282726ejc.738.2020.09.26.03.03.33; Sat, 26 Sep 2020 03:03:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="Iw/AZZBG"; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=NRQCD5pb; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726587AbgIZKB3 (ORCPT + 99 others); Sat, 26 Sep 2020 06:01:29 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:23008 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgIZKB3 (ORCPT ); Sat, 26 Sep 2020 06:01:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1601114488; x=1632650488; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=MvZBkz7bSacn8DuwqvbVk+t6b7fMTphW7tw3aVMsiuE=; b=Iw/AZZBGbS1XWYTC1nLS9/FpYGWSkKmmpZ3jPv0786i0G+Lix1rW2X4F T7m9h1SEoNbEZLQhSlfZ5OPnk4a+Xk1n0rApPWgEdW49AmNXsWLwYFF05 oKLNLv3okamcxI5SVWZNrljgtm2j4vk7xUK0kXJbXLOuHG0MoYS7ikuNw qskauSVwAI0BVvZaPDjIQdufnKvuTfmJR6402EX8z4VsbmgWVMKFdcGGa Q9K1ny6UR7B21uswhEszE4gj9F4+lUuSOV2gsc9QpzfAjVN7iSRjidOfd 6XmPAwoja3lvC7Lz7B4bZKYK2CTvkneq6q8znfUYL+S5vo/ExwEbwc3nU g==; IronPort-SDR: 8EK1UhgBYmWgCzGL83m9rWHu3DBN01VQ/GbT6/DGnQOZSLrLKl2brMjQxva0tgqcLwY6wA4bGy rUmLdPgiVXuEBsoLK7zrKC4+OMsiAt4jmwSAZgpXbJglHLjQiompcfHTVnP/4vT+CF7YSvwPHR 50Kz9cnSdxkBZLRi83chqdsA8ySMCYsptve8mJi8NJyEv+YJQdqarnoKkFrP2jabgYZEqf7Auj qN14IIaOEP1yLPPZJNFHL9Hk3Z/CyZ9I/3wTAhZMTXMJP4KwTkSu49MtBMKRmRoEQvidZrNbf1 BKk= X-IronPort-AV: E=Sophos;i="5.77,305,1596470400"; d="scan'208";a="149556441" Received: from mail-cys01nam02lp2051.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([104.47.37.51]) by ob1.hgst.iphmx.com with ESMTP; 26 Sep 2020 18:01:28 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dJn9f/sbYTBD2bwZjxu5K0Evd3ljO6o57vqIOk8qyLNBjFzqmZKsf0Df29LohWK57sRhv/HJ3aR9q1fqtD70wqBifNJp0BE8i0rgcGc+rdOJdish/MZuqWDEHKChBA0ACJ6DUmlINHv/Dm62fpjP+AdLfFHDP4w8YPOCpikrg32zdtynW6+us6ftLq6dhgPKhH5eEKF7aJUlA2H7uzUDxosmQShi2nLpHu0Jl0SP1H07Hmdh6jcjfGLMD4cy/beM7hH58Sci5FuExC/5MK+aks/UAy3Rvrv+NYwuECgHOmJo3INCO68BSrEt3Rw+q/ua4Z0FDvKkT0XzlcR7vy5uyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MvZBkz7bSacn8DuwqvbVk+t6b7fMTphW7tw3aVMsiuE=; b=bHP4xQPuo5IotmFZtfutTYtxfAhrRfI4DBgROxaZtPa0qlLuEsUBlB4J9RJyKeUTcTe9ftQB9DQ2wXZwTtwYL4H1tx0ct/HfMmAC96Lrea+p5OCJUf5BIpYBxoRKaOe91q1n4CTqyS7RcgMwf+A0HmwSOuxknKz09ch3PjCQST+huFC2SN4T94IxaEthRPcmhudJYQGY/ZYALZMhYuxF4H0dfdGpZF5h6IUwbFmI1wbZ+ZP6hp1AtXzKGkgAOhRZecVPMi7H7LhyS9Iq4TKmbO0ti9IHsbqfvMqSzty4ioqx3J7bFfAROuT9a0OU61rX3RdGxfESh/TRUW5wwwi5Rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MvZBkz7bSacn8DuwqvbVk+t6b7fMTphW7tw3aVMsiuE=; b=NRQCD5pbCX4o2lboSBI8QYB2GOabgVi//qWJxo3O0AIFQH+bJHguUP75/pORJ6xk0lasHwtBffhpZ3hhy25tkdywUiWfrkQ2vrjpVWQ/3n9Mlt+GaGuD+JrMKlD9ilcnynswUXCwSAdjCesSRb2aPpHnkxb70p2CMt52XZTXIwg= Received: from CY4PR04MB3751.namprd04.prod.outlook.com (2603:10b6:903:ec::14) by CY1PR04MB2316.namprd04.prod.outlook.com (2a01:111:e400:c618::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Sat, 26 Sep 2020 10:01:22 +0000 Received: from CY4PR04MB3751.namprd04.prod.outlook.com ([fe80::9124:2453:fe9c:9a7]) by CY4PR04MB3751.namprd04.prod.outlook.com ([fe80::9124:2453:fe9c:9a7%12]) with mapi id 15.20.3412.024; Sat, 26 Sep 2020 10:01:22 +0000 From: Damien Le Moal To: "anup@brainfault.org" CC: "linux-riscv@lists.infradead.org" , Alistair Francis , "palmerdabbelt@google.com" , Atish Patra , "paul.walmsley@sifive.com" , "aou@eecs.berkeley.edu" , "palmer@dabbelt.com" , "linux-kernel@vger.kernel.org" , Anup Patel Subject: Re: [PATCH] RISC-V: Check clint_time_val before use Thread-Topic: [PATCH] RISC-V: Check clint_time_val before use Thread-Index: AQHWk9aYSJLcKwhKG0OB2/Vy4ql06al6pkQAgAAB0ICAAAQAAIAAAxGAgAABJYA= Date: Sat, 26 Sep 2020 10:01:22 +0000 Message-ID: <6c2d3e6bc1574d2ec3b566ee2138ba354459aeb8.camel@wdc.com> References: <20200926072750.807764-1-anup.patel@wdc.com> <1ee25b9bca3956d15a4a0dbf83f43d1ead454220.camel@wdc.com> <0e1990c99bf2a342cd2e78ec7ecfc2fdecaf67fb.camel@wdc.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.5 (3.36.5-1.fc32) authentication-results: brainfault.org; dkim=none (message not signed) header.d=none;brainfault.org; dmarc=none action=none header.from=wdc.com; x-originating-ip: [2400:2411:43c0:6000:8d3e:27aa:85c2:44b5] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 526a4056-828c-4ed1-1e34-08d862031f35 x-ms-traffictypediagnostic: CY1PR04MB2316: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tpaCjdIdfR9EUlRQkGuwuW1ryHqw78cGKTiXK/k+bJTo7UFt4JLC9TxEPLyiXvygplAXxFKxwOkGshaz+tvDTZNt417nQeJ3OZGAbMOJISEVDC/52+BTR1J0Tw6VBQ0u/Ft76zxeJ/3ziQyjwPoKzRsksYNf9qbZsGzsaKGliM0/m5H46ASMzHoMneYKQpZfYZ/ZEFCC50BaHCt/vcqSVXlFnEeyWt/0NxQtYR9aleTPYpXG3Ka69PqWFOpMyypR6JRUYAl/3wS9RoV2Y2fFo2RFWckjRqD9AGyi1DBPZemPYpBCiK4a7Gmj2pGVZ2y+A+3RfPFY0i9RLfBhnMwo+2l5B7kTzRUlKyBlCtjggb9Z2Gy9jdGrW3vCPMK7GMCv x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR04MB3751.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(366004)(376002)(136003)(346002)(396003)(186003)(54906003)(2906002)(36756003)(86362001)(83380400001)(6506007)(53546011)(316002)(66946007)(6486002)(8676002)(478600001)(8936002)(71200400001)(2616005)(6916009)(66446008)(6512007)(5660300002)(66476007)(76116006)(91956017)(64756008)(66556008)(4326008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: fmv9GP776bWT5cogBIK6ow9YxShL/8XOW4lTB/kGXmEhkAgzO3cv/pZQUSe5mQKxnDbMKH+3awwcYqvFH3Ln3EbuadWuI/P1XBqo/cunpzJntmTjJUVxommrHqxjSagkdAePgso5kovZa8Sk3IccQuerYJEPZmR+g9gPzNg2QHSNbuG15892dHhrjYHWLha+BK7JN0gv3wEuPAJiMgBwW1ksXrPmRKoq4wo/q63MN0G9Bx2o0nUxYzgnbGPDpS3X8nXNu6I9/LFnn+35ZI4+2x94nNhTA/9l2eCnaulABqymgOmJ8jLxuaZY7L+QzJ+nk2GFCqa3TpTclc7ig36+4B2jTp1lb+/Hpc0SAN92cvl31nDRYi3fiVhSLFhSRs9IOpqBti8W0W5ATb+J1hh5h64ycRacgk54b//L78oXd+a+tbbATrEhngTZSS7wQIe8wQDr0TdYC9PkNoBQcs2uj3vDYQsVnF2AfsUD/3EjlLGR06IB2y95VtVmnJQdo5W0Iut8K7M+PYxradXAATcaLWUW9EfwJWWss30XiqWPaUNkNwNt6zrT2jw0fgIZTpJR1iEI2I+EcW9kNr1hcGSiR9bRXk6NpFotxaUZUi3V++YdD12DttLS6tcea6hLY2ITkQlTyWEqnZ0vmTyYdf1rV+/X+nBsNqPHkTJFozg8LojldGCdB6d9GjxiegzBji3Sp7J2UPPsKgYrVQiF7RxQDg== Content-Type: text/plain; charset="utf-8" Content-ID: <3EC163FD21CDF047B836AEB211E92BC3@namprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR04MB3751.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 526a4056-828c-4ed1-1e34-08d862031f35 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2020 10:01:22.0224 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nLnekPAIjgu2TciJROnroXdXjK/ssyWg40p9pk92fIZ1ddlb4Qt5azxoOCJwJNP+aZrPcxJFLNO566TuO7GmtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR04MB2316 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIwLTA5LTI2IGF0IDE1OjI3ICswNTMwLCBBbnVwIFBhdGVsIHdyb3RlOg0KPiBP biBTYXQsIFNlcCAyNiwgMjAyMCBhdCAzOjE2IFBNIERhbWllbiBMZSBNb2FsIDxEYW1pZW4uTGVN b2FsQHdkYy5jb20+IHdyb3RlOg0KPiA+IE9uIFNhdCwgMjAyMC0wOS0yNiBhdCAwOTozMSArMDAw MCwgQW51cCBQYXRlbCB3cm90ZToNCj4gPiA+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0N Cj4gPiA+ID4gRnJvbTogRGFtaWVuIExlIE1vYWwgPERhbWllbi5MZU1vYWxAd2RjLmNvbT4NCj4g PiA+ID4gU2VudDogMjYgU2VwdGVtYmVyIDIwMjAgMTQ6NTUNCj4gPiA+ID4gVG86IHBhdWwud2Fs bXNsZXlAc2lmaXZlLmNvbTsgcGFsbWVyQGRhYmJlbHQuY29tOw0KPiA+ID4gPiBwYWxtZXJkYWJi ZWx0QGdvb2dsZS5jb207IEFudXAgUGF0ZWwgPEFudXAuUGF0ZWxAd2RjLmNvbT47DQo+ID4gPiA+ IGFvdUBlZWNzLmJlcmtlbGV5LmVkdQ0KPiA+ID4gPiBDYzogYW51cEBicmFpbmZhdWx0Lm9yZzsg bGludXgtcmlzY3ZAbGlzdHMuaW5mcmFkZWFkLm9yZzsgQX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