[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170525210048.GA14592@obsidianresearch.com>
Date: Thu, 25 May 2017 15:00:48 -0600
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: Stefan Berger <stefanb@...ux.vnet.ibm.com>
Cc: jarkko.sakkinen@...ux.intel.com, tpmdd-devel@...ts.sourceforge.net,
linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tpm: vtpm_proxy: Do not run tpm2_shutdown
On Thu, May 25, 2017 at 04:54:01PM -0400, Stefan Berger wrote:
> This particular command will never reach anyone listening on the proxy's
> file descriptor since the tear-down only begins when the front- and backend
> are closed.
> The logging happens somewhere else than where the error occurs. What is the
> best way to suppress the logging? Remove it entirely -- probably not.
> Return a special error code that doesn't get logged?
Error code would be my choice.
> that indicates this condition? It's not clear to me. Why not just
> prevent the command from being sent if it will never reach its
> intended destination
There are many cases where the vtpm shutdown can race with something
else, if the logging for this is bothersome it should be fixed
directly.
Adding strange special case flags is confusing as to the purpose - eg
your commit message didn't even say this is only about fixing some
noisy logging.
Jason
Powered by blists - more mailing lists