Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp129957pxa; Fri, 21 Aug 2020 03:13:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpVrDhSC+kiUjUKaujpoUdAAGKQFMFxspHxXd17Nh/NjZUTZI9S1vXNqJdTK66FfN4ug2A X-Received: by 2002:a17:907:11d0:: with SMTP id va16mr2248498ejb.426.1598004787998; Fri, 21 Aug 2020 03:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598004787; cv=none; d=google.com; s=arc-20160816; b=sFPpsDQnAiTQxCR58JGh0TrTwjc/2uvvNkfPRKuDcStEv0ol7Yx9eexIONxT7o6YLT 2ScI6MPGKG4bmNK2Mx8yz9Q9NS0pLbpO5LKPCoA8xZMFfeDXhCV0xUAk37iEenEkZ1XC arJtG0T+0roEOpSN+vARUliz4MopAUD3X1kY/ZBoBP7rn3/EagEPFUOuLPbqdnQfeYZs 2kchGvAZANtZhKcOyTloFq0DmS1uEIqfIvMSArOeMXQGo213ZvXFjgmDjF5bhdGJ6ZJl vQhLGP0JOHRNE9yUNBd/jtTzMqhMQQlzRsI1iMUWQ7CeKLoVM7N3HNs/g9XC5Y1kUA35 4/IQ== 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=oJN3wZD2Iadhta+J9lF+eLKxZbEwH6T5LBO7jjWL+UY=; b=FCWBhenKqeL94xBwTvp3j6x2ezWn1CAafAXFxbssTN3gQEp6mcucEWxz1DZRWVUdX7 DdsXOwopHtPjY34krGn3OjD0VVglfaPb12sZi8dqfrAwhvNCM9xfLJiU1DIa1ywtqJFr THBiJ+EegVDAY3oS4DBazy0EX9uYcTnhlioowbjX0ulAhKg1yUChnidq+2p66x7FfAWi tXSTrcMDcRbVVP6EdD+fox9Ur669dHNEk+hbJgSP/zy73eXISR6ckg39tnuJelijQLgo QpysVOw0gCF2gtAriimPx+ERSNd6sqs3JmaCZzSOQV0y44vObrvs5rYrScBuQBw37M2r +cnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Go5cdtDw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lo3si814009ejb.219.2020.08.21.03.12.44; Fri, 21 Aug 2020 03:13:07 -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=pass header.i=@linaro.org header.s=google header.b=Go5cdtDw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728499AbgHUKJi (ORCPT + 99 others); Fri, 21 Aug 2020 06:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbgHUKJf (ORCPT ); Fri, 21 Aug 2020 06:09:35 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D14D2C061385 for ; Fri, 21 Aug 2020 03:09:34 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id c4so1132523otf.12 for ; Fri, 21 Aug 2020 03:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oJN3wZD2Iadhta+J9lF+eLKxZbEwH6T5LBO7jjWL+UY=; b=Go5cdtDw/2+rDAroF0NL2B1fIr6RE7CQ8LHkDCxS2qcKqj25C3XoWf8vXu/Zrkz2PE og4/7bXHMt+MQt3ZxSsTe+v71X31CqLGXEEcx6rZmNU8roR2f7OmYO5KjJlgSkwCtoV2 n5bkoD6hUyYWaMMMkBiCnDNglxv8X/KImOgD+9lASXGRVJ8qk8tPz19tH1SPDmon47DX 2CdHiTG+K0UESi9+k/xSZ+exC3c4dDklPFPjgcIUw7Ut6Nsh1DjVz3EGV0mc5MBtWdD4 zm3OLquTJZrhOWZNHEaqtlXidtzUDmZ6VxL+3bPfOGtWVwEKEOPv50kZkpnYhaptT1uV 2tdA== 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=oJN3wZD2Iadhta+J9lF+eLKxZbEwH6T5LBO7jjWL+UY=; b=jSAnppx1pFH1p5oyEFf4YCl0I32yKPZfLeyOIQVOAtm/4oguCzu45AQbmfgRM53XVp gVwZUfgKudOcjkTVP+6F3GNF4wSizBro4tKFR9ul/8XjcgbkTPlrl0pEBdXcFdwr6ejh QDP1POLrwk3EjB5DUAkuhmA6nfLYmrHllZ/OGr0WpBCh6qF7TXU9Bb87EB2qUaMlr91a X3QAy9UP/grijcHKWCBrNeMFlh20B4sCKg6jmqO9D5gxIGkkaUUJpChEHvqaVEFesxDk 9xK6hbpb5rAg1Fubo2t9ZYyYneTZDvY0iXhh122EqLe4grmXVrY/eD8N2g2E9576JGAw kadg== X-Gm-Message-State: AOAM530ashzpwUtUTTWcwowgEhFKEB2xyPQZKo5NEHnccGxm7umGRZ0c k4KAtRJgWwHyZXxGJuPoMY3Vux4If+hyd4tsaKu2Yv10+zI= X-Received: by 2002:a05:6830:11cc:: with SMTP id v12mr1461109otq.268.1598004574028; Fri, 21 Aug 2020 03:09:34 -0700 (PDT) MIME-Version: 1.0 References: <20200710101808.1316522-1-jens.wiklander@linaro.org> In-Reply-To: <20200710101808.1316522-1-jens.wiklander@linaro.org> From: Jens Wiklander Date: Fri, 21 Aug 2020 12:09:22 +0200 Message-ID: Subject: Re: [PATCH] driver: tee: Handle NULL pointer indication from client To: Linux Kernel Mailing List , Linux ARM , op-tee@lists.trustedfirmware.org Cc: Cedric Neveux , Michael Whitfield , Joakim Bech , Jerome Forissier 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 Fri, Jul 10, 2020 at 12:18 PM Jens Wiklander wrote: > > From: Cedric Neveux > > TEE Client introduce a new capability "TEE_GEN_CAP_MEMREF_NULL" > to handle the support of the shared memory buffer with a NULL pointer. > > This capability depends on TEE Capabilities and driver support. > Driver and TEE exchange capabilities at driver initialization. > > Signed-off-by: Michael Whitfield > Signed-off-by: Cedric Neveux > Reviewed-by: Joakim Bech > Tested-by: Joakim Bech (QEMU) > Signed-off-by: Jens Wiklander > --- > drivers/tee/optee/core.c | 7 +++++ > drivers/tee/optee/optee_smc.h | 3 +++ > drivers/tee/tee_core.c | 49 ++++++++++++++++++++++------------- > include/linux/tee_drv.h | 3 +++ > include/uapi/linux/tee.h | 13 ++++++++++ > 5 files changed, 57 insertions(+), 18 deletions(-) I almost forgot this one. I'm picking this up. Cheers, Jens