From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x226wHjHUBuwtPVhLw8RgE9bGR63J0MW3ta5aOBgDdE1/afHfdt+LW25vLRLHyEqrymQyHOpD ARC-Seal: i=1; a=rsa-sha256; t=1517350933; cv=none; d=google.com; s=arc-20160816; b=a9BzTELpoLdgIl03ubeRjJMnveWagB2MKzq9/T/RlW4plwMuAvFU5t+amuEma7ptjz a19S9zr1u9+Fd7z9PqSFOb/Q5nFpJI1JYg7mJsiU9ud4Ifo158hpVYnj45gMk6K/f+DT 1Sy5ZKarpyLBHEftcoF6h0LzQjNdNc+I1wxcZdj4Uz3Au0EL1AlSZiDHlh4KCE1151H6 tyKGVrdpGWyynm5joj5teMpPmoq6QONCVMwiC0XB5SKSdhJnlmS7m5RNwFKjco2RuXE/ U2MvafXb4GIS/CVsc9jCxUXQlLIp9HCiNwK9Qt6D7NYe+7A33ry02gbEcJqL429VH0zp glUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:arc-authentication-results; bh=M20cgNCMgR2hn0PETdmwShxi90L15gyZ73JTddiLiDU=; b=Jr/hp5c/3mdJMKkq41vRyU1NXcLJUYJeLDB0oQUSD8S1UyDfWpI7ZwH6VZ2SEYnJ9Y b080Ab4S2WltMqw0Zwr10Pa15P2vLjIE8I5lFviBeY0sQovwBm/CSpFbAqNeh1jrnlFH Nb9dh9UKTzFwIm0ooyP75cB/vlmX+Xk5S5IUCFjN9bEa/9eckgg4kyuhhWZiuA+sM055 DF/36+CgWEO5z+jvW3pGKIBWnOvT0mExVLPIytCFCwQyeneNzorZUP+POyIk3QH6x9sT Ln4KGo7lPOU6jnDfWns2rBRlKp0kjGO2qxjkO5pyppVg4bAOBU739uPIvHDefTrH+GNC FOlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of tglx@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=tglx@linutronix.de Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of tglx@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=tglx@linutronix.de Date: Tue, 30 Jan 2018 23:21:58 +0100 (CET) From: Thomas Gleixner To: Borislav Petkov cc: Tim Chen , Josh Poimboeuf , David Woodhouse , arjan@linux.intel.com, karahmed@amazon.de, x86@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, pbonzini@redhat.com, ak@linux.intel.com, torvalds@linux-foundation.org, gregkh@linux-foundation.org, mingo@kernel.org, luto@kernel.org, linux@dominikbrodowski.net Subject: Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch In-Reply-To: <20180130220052.jotc4orxnzi6s3nx@pd.tnic> Message-ID: References: <1517263487-3708-1-git-send-email-dwmw@amazon.co.uk> <20180130174850.bwypk4r5yn2344jb@treble> <20180130220052.jotc4orxnzi6s3nx@pd.tnic> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590966106432961445?= X-GMAIL-MSGID: =?utf-8?q?1591057772655474336?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On Tue, 30 Jan 2018, Borislav Petkov wrote: > On Tue, Jan 30, 2018 at 01:23:17PM -0800, Tim Chen wrote: > > I'm less familiar with gpg-agent. Dave was the one who > > put in comments about gpg-agent in this patch so perhaps > > he can comment. > > So I looked at gpg-agent and AFAICT, it disables core dumping with > setrlimit(). setrlimit() does not end up fiddling with the dumpable bits in mm->flags. So no. > I wasn't able to attach to it either with gdb but didn't find where we > disable the attaching, for the couple of minutes I grepped through it. prctl(PR_SET_DUMPABLE, 0) = 0 That does the trick. Thanks, tglx