linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Get rid of BUG()
@ 2017-01-26 21:20 Jarkko Sakkinen
  2017-01-26 21:20 ` [PATCH 1/3] intel_sgx: do not use BUG() in sgx_free_page() Jarkko Sakkinen
  2017-01-28 13:32 ` [PATCH 0/3] Get rid of BUG() Andy Shevchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Jarkko Sakkinen @ 2017-01-26 21:20 UTC (permalink / raw)
  To: intel-sgx-kernel-dev
  Cc: Jarkko Sakkinen, open list, open list:X86 PLATFORM DRIVERS

The use of BUG() is not favored for any new kernel code. This patch set
implements more reasonable error recovery. In all cases the recovery is not
ideal but it is an improvement to the current situation.

In addition, sgx_free_page() has been simplified by removing the parameter for
skipping EREMOVE. EREMOVE can be successfully executed for an unused EPC page.

Jarkko Sakkinen (3):
  intel_sgx: do not use BUG() in sgx_free_page()
  intel_sgx: remove flags parameter from sgx_free_page()
  intel_sgx: fix error paths for EBLOCK and ETRACK

 drivers/platform/x86/intel_sgx.h            |  4 +-
 drivers/platform/x86/intel_sgx_ioctl.c      | 12 ++--
 drivers/platform/x86/intel_sgx_page_cache.c | 89 +++++++++++++++--------------
 drivers/platform/x86/intel_sgx_util.c       |  6 +-
 drivers/platform/x86/intel_sgx_vma.c        |  6 +-
 5 files changed, 55 insertions(+), 62 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-29 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-26 21:20 [PATCH 0/3] Get rid of BUG() Jarkko Sakkinen
2017-01-26 21:20 ` [PATCH 1/3] intel_sgx: do not use BUG() in sgx_free_page() Jarkko Sakkinen
2017-01-27 15:45   ` Andy Shevchenko
2017-01-29 15:11     ` Jarkko Sakkinen
2017-01-28 13:32 ` [PATCH 0/3] Get rid of BUG() Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).