Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp496946imm; Wed, 6 Jun 2018 00:55:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDLNV9daZpKYE23wxx97zI5JtYZoElhaAlEK2+ZpDtJq+GKdtUk3lZNggeSvjWto0mPPFp X-Received: by 2002:aa7:82d9:: with SMTP id f25-v6mr1418393pfn.218.1528271712185; Wed, 06 Jun 2018 00:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528271712; cv=none; d=google.com; s=arc-20160816; b=L4bzUoozlwvfDgQ/9Vg8ts0pTiL/Tafs5eY3o2W5VrAiaFc4E+NKbADfzFbZLR3/nr iH9GO/WQ7GMhOt9Gr6FFQ0HxZySpPcZhR2A0ZC4jTM5zWFJPVT9SXuXseeW/8svsU4YR wzNAQ6xUaEJFnSznYoaYvpiIDTMXdwq5c8cUyG/ILr2AjrL4SIpRvEZu0l1hxppWQ2kB jrVLjlsTEMSkGuB/iM8HTJWC4EIn7sLK5fw+oVUGcETmsr2cNQUXT27cnhMqFME/2PC3 L3iVM1UJMjyQBNBhzHZuyv9P+hW3k3BWDHlGXaOFCycFMs80OR7MJdfXHo8iDEn5QmTu d1qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=QBXPAYwe+ApBxp3+fXH/Mihkfts5jyq8yIxbKKCgd5E=; b=hYFvBC4jFVRik2exGFv63BBqY/C6cDlFY5LR22VZkHMVqTeElN5OGRAiqXzIq7Mimb Yz+ausNF0H7VK54WmeNJ9VmJhS2sqAPCIiCrz1W+DwqnO7bBbid80vySNd2/0Wb3R2Px pSa3eKXG/wTSZh0pgpdSqSjv6t74Np406GmYt10tXYB4Hp3XfIv8pVTQa46HytlsjN22 3p4n/RhtIZ0Rm1um7cxlXIA7cUW8lj51E886KkgGaWpMqCYMY3nbeWQTD25cO0DRN7Q5 xcXIxJPvimcDMK8jaD4fHehfzXw1D7kzymKADMhKE/wHo+/ijY/yyqjzBV9ccKMpZcxs mzyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11-v6si5713427pgo.43.2018.06.06.00.54.57; Wed, 06 Jun 2018 00:55:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932454AbeFFHxV (ORCPT + 99 others); Wed, 6 Jun 2018 03:53:21 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:40771 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932243AbeFFHxT (ORCPT ); Wed, 6 Jun 2018 03:53:19 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id DBE979D15069E; Wed, 6 Jun 2018 15:53:12 +0800 (CST) Received: from [127.0.0.1] (10.177.23.164) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.382.0; Wed, 6 Jun 2018 15:53:04 +0800 Subject: Is this a kernel BUG? ///Re: [Question] Can we use SIGRTMIN when vdso disabled on X86? To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86l , Dominik Brodowski , Andy Lutomirski , linux-kernel References: <5B1672FE.4050705@huawei.com> CC: From: "Leizhen (ThunderTown)" Message-ID: <5B1792C9.8010203@huawei.com> Date: Wed, 6 Jun 2018 15:52:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <5B1672FE.4050705@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.23.164] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/6/5 19:24, Leizhen (ThunderTown) wrote: > After I executed "echo 0 > /proc/sys/abi/vsyscall32" to disable vdso, the rt_sigaction01 test case from ltp_2015 failed. > The test case source code please refer to the attachment, and the output as blow: > > ----------------- > ./rt_sigaction01 > rt_sigaction01 0 TINFO : signal: 34 > rt_sigaction01 1 TPASS : rt_sigaction call succeeded: result = 0 > rt_sigaction01 0 TINFO : sa.sa_flags = SA_RESETHAND|SA_SIGINFO > rt_sigaction01 0 TINFO : Signal Handler Called with signal number 34 > > Segmentation fault > ------------------ > > > Is this the desired result? In function ia32_setup_rt_frame, I found below code: > > if (ksig->ka.sa.sa_flags & SA_RESTORER) > restorer = ksig->ka.sa.sa_restorer; > else > restorer = current->mm->context.vdso + > vdso_image_32.sym___kernel_rt_sigreturn; > put_user_ex(ptr_to_compat(restorer), &frame->pretcode); > > Because the vdso is disabled, so current->mm->context.vdso is NULL, which cause the result of frame->pretcode invalid. > > I'm not sure whether this is a kernel bug or just an error of test case itself. Can anyone help me? > -- Thanks! BestRegards