Received: by 10.223.164.202 with SMTP id h10csp30533wrb; Wed, 8 Nov 2017 11:29:38 -0800 (PST) X-Google-Smtp-Source: ABhQp+RWAD49tu6np2gU/qRzsqTF/Vwl+4eInuJ0kRCWfzBrq4nFBeVVC3j/jfR930hYAqV7Xq3k X-Received: by 10.98.153.139 with SMTP id t11mr1559677pfk.210.1510169378779; Wed, 08 Nov 2017 11:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510169378; cv=none; d=google.com; s=arc-20160816; b=jXXOZDCYmyLRP+vEhH/9EV3ISKdSI9cqV24lgmzIXXTfAMPtfDs2/bGrxwsJyTTARa 0ToIMXp9SvTP++8im6rko9o+BeYoyL97fENo9TOxe+pV83OT0B2QRhCmmAGHtO2TR6bX 26FnqsskIIfVOvg9rlX+sMByB5MynfQ+dQ5Kzbytn2VS9MNQ/DzWm3OpZut3c5GPzZXU LjDsB8IG5FbTBV9PiD2KOu90E/xX53Lj6au33uKRhE25nwzCFA5AAaWtQ1g8p2Ye673k 4lT/qSDqLaFve/TQSL0jsOhvatWQQ1/aLbl3EbrNU0ty14aO4S29YhS/jGI20m47DxYe DSNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject :smtp-origin-cluster:cc:to:smtp-origin-hostname:from :smtp-origin-hostprefix:dkim-signature:arc-authentication-results; bh=GEVqtzRhTD3T1n6JIB3v0fxMg/SkcfqrWSc+DJ8/nZQ=; b=zp3kCVuJ7V1N1PIm75kGFjo5y5vVBp+TPlQifNgrd9EkA42orBWozEfCnpMCndVyrv B0udoQSg0dHIPsKqLH1iMhEFT//fJp6fctHEfh6Vh9j2w9y0LvBZ2n7aQ6ryeKGn+4/U OjO2F4EBx4occgdynjOkTY0iaizRosENoICU/X7/gXt9D7ttYTQiJLFnQatDrM+EKBE9 BxfSmlpv00XJfYwvtCJFQXtBIUsq587QSKYUMkxQe3DXX/iHCj+9YaQcFvqT0orOLAQL haODwt94y5l0HiqXxQOHbl06KVQgu8BWaWQr30x0c2mVEgCtx50lRDftczPCuFoYCIdk qIbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=FNYqcRZr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si4426869plk.377.2017.11.08.11.29.27; Wed, 08 Nov 2017 11:29:38 -0800 (PST) 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; dkim=pass header.i=@fb.com header.s=facebook header.b=FNYqcRZr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752355AbdKHT2s (ORCPT + 84 others); Wed, 8 Nov 2017 14:28:48 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:38222 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752302AbdKHT2r (ORCPT ); Wed, 8 Nov 2017 14:28:47 -0500 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA8J4SxK015350 for ; Wed, 8 Nov 2017 11:28:47 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=GEVqtzRhTD3T1n6JIB3v0fxMg/SkcfqrWSc+DJ8/nZQ=; b=FNYqcRZrl9aJR8RGFN85lTq1NH2CbObkVjBv++HMDnr7QhkMz2+l4r3kIWj0+scCxmzd YdObpLFv1wVwLyT4xJGAVeAy9MMVYOzq6OC3xMvUi4fkdajZOdMzC7dp5hZNNA/A2lNk 6LbF/aoK/GR/7nA36ZeVF4T665aYAKlaJtU= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2e46wdgf6c-3 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 08 Nov 2017 11:28:47 -0800 Received: from mx-out.facebook.com (192.168.52.123) by PRN-CHUB05.TheFacebook.com (192.168.16.15) with Microsoft SMTP Server id 14.3.361.1; Wed, 8 Nov 2017 11:28:45 -0800 Received: by devbig474.prn1.facebook.com (Postfix, from userid 128203) id 83209E40E97; Wed, 8 Nov 2017 11:28:45 -0800 (PST) Smtp-Origin-Hostprefix: devbig From: Yonghong Song Smtp-Origin-Hostname: devbig474.prn1.facebook.com To: , , , , , , , , CC: Smtp-Origin-Cluster: prn1c29 Subject: [RESEND PATCH tip] x86/idt: Remove X86_TRAP_BP initialization in idt_setup_traps() Date: Wed, 8 Nov 2017 11:28:45 -0800 Message-ID: <20171108192845.552709-1-yhs@fb.com> X-Mailer: git-send-email 2.9.5 X-FB-Internal: Safe MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-08_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit b70543a0b2b6("x86/idt: Move regular trap init to tables") moves regular trap init for each trap vector into a table based initialization. It introduced the initialization for vector X86_TRAP_BP which was not in the original change and it breaks uprobe functionality for x86_32. A program with uprobe instrumented can have segfault on x86_32 instead of normal finish. Uprobe still works on x86_64 even with this commit. This patch removes X86_TRAP_BP from the structure def_idts which is used in idt_setup_traps(). It also removes a redundant entry for X86_TRAP_NMI in def_idts. Tested on both x86_64 and x86_32, uprobe works fine. Fixes: b70543a0b2b6("x86/idt: Move regular trap init to tables") Reported-and-tested-by: Yonghong Song Signed-off-by: Yonghong Song --- arch/x86/kernel/idt.c | 2 -- 1 file changed, 2 deletions(-) [RESEND with adding linux-kernel@vger.kernel.org as the recipient.] diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c index 723fa97..d985cef 100644 --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c @@ -92,8 +92,6 @@ static const __initdata struct idt_data def_idts[] = { INTG(X86_TRAP_DF, double_fault), #endif INTG(X86_TRAP_DB, debug), - INTG(X86_TRAP_NMI, nmi), - INTG(X86_TRAP_BP, int3), #ifdef CONFIG_X86_MCE INTG(X86_TRAP_MC, &machine_check), -- 2.9.5 From 1583643513315067892@xxx Fri Nov 10 02:15:44 +0000 2017 X-GM-THRID: 1583643513315067892 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread