Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1551520pxu; Fri, 27 Nov 2020 09:37:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhxsLkn03hJj7Xrelgso+zTJeNCXV3wDIwVW/ebuK2IKxzF9nKR4VEQXoscg+KJp9R585j X-Received: by 2002:a17:906:3102:: with SMTP id 2mr8974564ejx.135.1606498652933; Fri, 27 Nov 2020 09:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606498652; cv=none; d=google.com; s=arc-20160816; b=hvJxuc63VPyS1Zt9QjJtoBG8PSRbM/NjvZ2onCBr6ktEcqA+UuTSTpyooHmnF8We6I h1xsTJ3VSDzIH7WoSNcYJuxnD4cpZHDdQkYrey37NGDozxPaGYgYuHp7o6gU8ULx9Qqc 51NY402g7vtvD7OvaUHqG461e4goU+2vqwVtIsoXU+VZDKq3WvSDiWwAmvEngmU8UdVk cbaJ+W/yZPEEwnPHz4Uvz49OQ+bbiFdDDE5o5u0Oqg01z6juC4i2YmVjO0UjzWsmHngd uuwJFXv/CK17Gi+qrAxzbmcSpEjMRIppkijmKykXcaFrHK1c8IWTJvGaQeHbIZMq2mKT k6ZQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=p0SuWw2UFZ0ZhTGgemJWzclZugh5Lb07XjiogRBVgmM=; b=hQ/e8MUpkboN29veZ6tF8SKgJ9aqGMLh7PeagPiZNVHURYQohReliXhGYVPthV0/g/ Iwbtk4WGfNKO2JE0yefQewU1KMbBXzRFKs1wRtOdf8Mfhe1Vl8GR0WcXqsDrH/Hwmay8 w9+pef3s37pqOm4lE3Xcu5rEzV/ThnrIyV0APjd7B5tcFreWBCwh8RmMYm2OZo3sGi+S EEaRQsZ2GoBFSl8mjQnIF5o23pPtuDdlbgC6tLulEeeAduoFMqor8zBf7gWRyB7lDjS0 vuZiG4pQd4/X1FO2nrFZbAifGmhdtKG2wKDiqCHu1JKL4hcKPcHtxK9JhVyAn5YZvS1f CQqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si1646421ejd.302.2020.11.27.09.37.11; Fri, 27 Nov 2020 09:37:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732306AbgK0Rcc (ORCPT + 99 others); Fri, 27 Nov 2020 12:32:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:60230 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730603AbgK0Rcc (ORCPT ); Fri, 27 Nov 2020 12:32:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id A5E57ABD7; Fri, 27 Nov 2020 17:32:30 +0000 (UTC) Date: Fri, 27 Nov 2020 18:32:29 +0100 From: Borislav Petkov To: "Chang S. Bae" Cc: tglx@linutronix.de, mingo@kernel.org, luto@kernel.org, x86@kernel.org, len.brown@intel.com, dave.hansen@intel.com, hjl.tools@gmail.com, Dave.Martin@arm.com, mpe@ellerman.id.au, tony.luck@intel.com, ravi.v.shankar@intel.com, libc-alpha@sourceware.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 4/4] selftest/x86/signal: Include test cases for validating sigaltstack Message-ID: <20201127173229.GA13262@zn.tnic> References: <20201119190237.626-1-chang.seok.bae@intel.com> <20201119190237.626-5-chang.seok.bae@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201119190237.626-5-chang.seok.bae@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 19, 2020 at 11:02:37AM -0800, Chang S. Bae wrote: > +static void test_sigaltstack(void *altstack, unsigned long size) > +{ > + if (setup_altstack(altstack, size)) > + err(1, "sigaltstack()"); > + > + sigalrm_expected = (size > at_minstack_size) ? true : false; > + > + sethandler(SIGSEGV, sigsegv, 0); > + sethandler(SIGALRM, sigalrm, SA_ONSTACK); > + > + if (sigsetjmp(jmpbuf, 1) == 0) { > + printf("[RUN]\tTest an %s sigaltstack\n", [RUN] Test an enough sigaltstack That's not english, pls try again. [OK] SIGALRM signal expectedly delivered. What is "expectedly delivered"? -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg