From patchwork Fri Aug 21 10:25:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 11728769 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E591B16B1 for ; Fri, 21 Aug 2020 10:25:39 +0000 (UTC) Received: by mail.kernel.org (Postfix) id E0E29207DA; Fri, 21 Aug 2020 10:25:39 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 89D27207BB for ; Fri, 21 Aug 2020 10:25:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dWjxF9at" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89D27207BB Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=jens.wiklander@linaro.org Received: by mail-lf1-f66.google.com with SMTP id k13so680320lfo.0 for ; Fri, 21 Aug 2020 03:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=2N8c3OXNEzBTqLaVo87zY3CUmgiKJ+G+J6J7rbqIlbo=; b=dWjxF9atK4SA+a2BBicNZgWtD+gqRKIlSh+eCb9ZrWWWmny5I7dcFODj1k9M4BJzSE etCvGefxVNxefnJ1/rA/h+OPhvOlBEIFPkSYC2qV/wPFDgAhv2ndsSxen2CcE8VFHdna xD8cNdlR9bVDfDRQBzmfHaFUHcedQ44L+OgcIhfelTR1jc87aM7COGteuEHGwyXkgxNM VqAg9OhHOQydvhVu4ewZ+UcxuZDjwpT2Fru+Vz+lVrXUAoeTWEAIHUuhjk0DpeK9HXJR 9gtq92Hi1VaEZcjY9rNkvpTyBFr9mXfTnqn4qoEBjw+7TByYYQzUnQMonyod4pxtHjgi dBkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=2N8c3OXNEzBTqLaVo87zY3CUmgiKJ+G+J6J7rbqIlbo=; b=LDTRRDFRAHtfMJpLljzcMfKhJXnHtN1R2KjaBSaqc3zmcTTn8A2cIkFRxLveVBBR3e Dwv3WHY0ufmqhckRsa/WtSbAaw/qdtMRDrXbFdk9rJzCCmYY3U56EmngcYWjHXEdh5OA 9OSyj6qbyiKQRFfK1ohMsMdwgGcPAmW4OUfMg6UAnWLpZZ6DiwUacrTvE1PwhaQG6ZHI dODEYQugOnZOVeZkTjWCDb7K/ZvvD6f+Og+vCb1xPkdvc6+OadqrDBK2vp88KfHCsxht i0NXoobJHmXZgimLD4jEkFnn93seqVo6cawT9x85hSGO2a2PrkFuhlNmzvDp7u/xkWph MIbQ== X-Gm-Message-State: AOAM531B/HxvMvKHFfKkJzBKOS8oiWOf9mV/b227wCXVGk2Q8/Zzs1N+ Y4SzSh4nHdJOpmFlk1DbGk5Ohg== X-Google-Smtp-Source: ABdhPJzckqFfo4xbpPPPMFqKSoImgg9uAkXYhFGq/pnbZggdi9ScEbVsbzorv3kKCnMWNIBhDn/lTQ== X-Received: by 2002:ac2:5e8a:: with SMTP id b10mr1180344lfq.14.1598005537801; Fri, 21 Aug 2020 03:25:37 -0700 (PDT) Received: from jade (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id p8sm298370lfh.64.2020.08.21.03.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 03:25:37 -0700 (PDT) Date: Fri, 21 Aug 2020 12:25:35 +0200 From: Jens Wiklander List-Id: To: rm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , Linux ARM , op-tee@lists.trustedfirmware.org, Jerome Forissier Subject: [GIT PULL] tee memref null for v5.10 Message-ID: <20200821102535.GA1872111@jade> MIME-Version: 1.0 Content-Disposition: inline Hello arm-soc maintainers, Please pull this patch enabling a TEE client to indicate a NULL pointer instead of a valid buffer when invoking a Trusted Application. Thanks, Jens The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.linaro.org/people/jens.wiklander/linux-tee.git tags/tee-memref-null-for-v5.10 for you to fetch changes up to ba171d3f0850003216fd1a85190d17b1feddb961: driver: tee: Handle NULL pointer indication from client (2020-08-21 08:55:13 +0200) ---------------------------------------------------------------- Handle NULL pointer indication from tee client Adds support to indicate NULL pointers instead of a valid buffer when querying the needed size of a buffer. ---------------------------------------------------------------- Cedric Neveux (1): driver: tee: Handle NULL pointer indication from client 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(-)