From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id ED7AF469719 for ; Thu, 13 Feb 2020 23:56:21 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id b15so5275971lfc.4 for ; Thu, 13 Feb 2020 12:56:21 -0800 (PST) From: Cyrill Gorcunov Date: Thu, 13 Feb 2020 23:56:16 +0300 Message-Id: <20200213205618.7982-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v7 0/2] fiber: Handle stack madvise/mprotect errors List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Vladislav Shpilevoy Changes in v7: - address Vlad's comments - add test for slab leak when mprotect fails on exit path Still the beautifying of errinj is send as a separate patch so diff is pretty big for now. Cyrill Gorcunov (2): fiber: set diagnostics at madvise/mprotect failure fiber: leak slab if unable to bring prots back src/lib/core/errinj.h | 2 + src/lib/core/fiber.c | 93 +++++++++++++++++++----- test/box/errinj.result | 136 ++++++++++++++++++----------------- test/unit/CMakeLists.txt | 4 ++ test/unit/fiber_stack.c | 102 ++++++++++++++++++++++++++ test/unit/fiber_stack.result | 10 +++ test/unit/suite.ini | 2 +- 7 files changed, 264 insertions(+), 85 deletions(-) create mode 100644 test/unit/fiber_stack.c create mode 100644 test/unit/fiber_stack.result -- 2.20.1