Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2529292pxj; Mon, 14 Jun 2021 00:25:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcYWTbOfcP2j7PMbbulpQHDeScyW63eqQQSI1IzcaoqjaMQVjREt1Sa/NgAuEdghvoobUu X-Received: by 2002:aa7:d294:: with SMTP id w20mr15762762edq.229.1623655526724; Mon, 14 Jun 2021 00:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623655526; cv=none; d=google.com; s=arc-20160816; b=uC0H87PsTxodxEXNV6mDNFc1VFsCv/mmHJ1NptjlVy4xMxRoClEPSNxZTzV6WnTRaz fQt5D3Og3EkjPjUzntsCAx1TvKIa3bLABu9PBHQALDlHJYj66A5vS9C/FpaZZUp9gTtN mEjQMv5lfFivcs+GWfn+yiQHHty2XwXX4S/fTGTLbZ5J+cBwcl+viWEAr5EFbMaX2uIw EJxTUti6ks3BLWveiarUJ9TRBhChlup50y1x9go/Ogzmm5AwIALtq/qpWmVN3duPN5Yr +sO8ujSotJXYqCGJson6fp0/8+sRWiZ69D2csQMrFIYDt3/8lD9CJ/fCm/EqYShpzKT3 DgZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TuRZz017BBgAVMKoaGy8N3HYwV0bwLZwAUPuHJ32orA=; b=xzMf3BBkCTchCjP3oYKtNIvCuDz+59Ki7QD1FDMVa5Gowsvgi0c7mogdxYq8pfoTTc DWijUCJv+2154QWkUHo2yKZC16sjIp7nMhyibpjoCYz6xLDeQpXUZnz2cTpj2vn1/ueN fgt81oeCBmRk5meALAXIQDmhB5gorB9zeSa4VDNWTL5RJ57TKHBJCL4L+NKvRXb7oT7H 4NiDIK0iqz+ivvvUoXvr8JhwgE8s0TSWruMi8MwkYG2Vd5t8lwcymQWEOZWklCfOXmPt hfVHmoItSxAA2jgcKmsFAK+NSuUgxgzXuZSiD58OQeA02WQtQKKSAhvCK0CKNcwoirmm fOqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j3sOCJmU; 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 qo1si10739729ejb.590.2021.06.14.00.25.03; Mon, 14 Jun 2021 00:25:26 -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=j3sOCJmU; 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 S232531AbhFNHY7 (ORCPT + 99 others); Mon, 14 Jun 2021 03:24:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232482AbhFNHY7 (ORCPT ); Mon, 14 Jun 2021 03:24:59 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8725CC061574 for ; Mon, 14 Jun 2021 00:22:56 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id p17so19408392lfc.6 for ; Mon, 14 Jun 2021 00:22:56 -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:references:mime-version :content-disposition:in-reply-to; bh=TuRZz017BBgAVMKoaGy8N3HYwV0bwLZwAUPuHJ32orA=; b=j3sOCJmU0K3TcI1KaLS+R0w+7P4R3fFjhK6QrhK/0X3pmdqGTXcLOu9Mh+/PRHiVjp ng8pGzd/d32BjnDvgz6z8K4NIdl6EGusDd9sTUM093jnnIl6qvkKH2Ska/1JVnQ5QSvP g4sBX5WqMiYo3up8gTRaq9Qk3U1/Qdqyx7dfO39kNGcg7OHhT916iippBIYouH9gKV+h OcvehJpHou6mwIp9dmXDM6GxIG05eKdOJnvYX0Ojkc45xTt2BB6mzP3+7QELscdwKobF AJLVee+P8OlUIGuy3x/mFcZm6E5dfkT4graQf5gbDGqgxzRopeT2tj51qBCyhMJc2/E3 9V5Q== 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:references :mime-version:content-disposition:in-reply-to; bh=TuRZz017BBgAVMKoaGy8N3HYwV0bwLZwAUPuHJ32orA=; b=K3w2bqRmtDgPtoBkFs0kufpRkufa7XXHhLbNcNuzCOiYEsclGb1rgiX+2k/i/htIuZ ag8P7o06ggNNjcoqhAr2v8HnU7lvcnENdNmmrGJPGPHP54Kzq5/iaU/DD7ArjVU1VmU+ nPsxMLkwT2C9aqXLwXkNOz4OL4XbMrsAad2k7WqnFfhsTuyBJsf3zze4mKUBC5xCACVg H0uXPwyrqWqBu9JLHn9dEMkjn/IIYVawxDa4gv6GkdnjNZ0Zp4gnNkWiAQyiZklDuwFE ZRCz/Wn6fQ/jhL/z/MFYAFyBah+S0Is2I6Rq2ps2rVTuE9Chpjf1blbadKJ9AV7GTvuO TK8w== X-Gm-Message-State: AOAM533Tcgie8GpujGMy6D7FkpehvyW+rTlvsEjeX+xlLDISWbe1JvD6 /+Kt339EXWbJrl2igP6NIQ5kdA== X-Received: by 2002:a19:5e5b:: with SMTP id z27mr7650041lfi.403.1623655374886; Mon, 14 Jun 2021 00:22:54 -0700 (PDT) Received: from jade (h-79-136-85-3.A175.priv.bahnhof.se. [79.136.85.3]) by smtp.gmail.com with ESMTPSA id v2sm1390309lfi.115.2021.06.14.00.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 00:22:54 -0700 (PDT) Date: Mon, 14 Jun 2021 09:22:52 +0200 From: Jens Wiklander To: Tyler Hicks Cc: Allen Pais , Sumit Garg , Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Vikas Gupta , Thirupathaiah Annapureddy , Pavel Tatashin , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , op-tee@lists.trustedfirmware.org, linux-integrity@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/8] optee: fix tee out of memory failure seen during kexec reboot Message-ID: <20210614072252.GB1033436@jade> References: <20210610210913.536081-1-tyhicks@linux.microsoft.com> <20210610210913.536081-4-tyhicks@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210610210913.536081-4-tyhicks@linux.microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 04:09:08PM -0500, Tyler Hicks wrote: > From: Allen Pais > > The following out of memory errors are seen on kexec reboot > from the optee core. > > [ 0.368428] tee_bnxt_fw optee-clnt0: tee_shm_alloc failed > [ 0.368461] tee_bnxt_fw: probe of optee-clnt0 failed with error -22 > > tee_shm_release() is not invoked on dma shm buffer. > > Implement .shutdown() method to handle the release of the buffers > correctly. > > More info: > https://github.com/OP-TEE/optee_os/issues/3637 > > Signed-off-by: Allen Pais > Reviewed-by: Tyler Hicks > --- > drivers/tee/optee/core.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) Reviewed-by: Jens Wiklander