From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755172AbaA1Qi0 (ORCPT ); Tue, 28 Jan 2014 11:38:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24252 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753572AbaA1QiY (ORCPT ); Tue, 28 Jan 2014 11:38:24 -0500 Date: Tue, 28 Jan 2014 17:38:08 +0100 From: Oleg Nesterov To: Al Viro Cc: Peter Zijlstra , Linus Torvalds , Peter Anvin , Ingo Molnar , Thomas Gleixner , the arch/x86 maintainers , Linux Kernel Mailing List , Srikar Dronamraju Subject: Re: [RFC] de-asmify the x86-64 system call slowpath Message-ID: <20140128163730.GA7596@redhat.com> References: <20140127102759.GY11314@laptop.programming.kicks-ass.net> <20140127113627.GC10323@ZenIV.linux.org.uk> <20140127173931.GB32450@redhat.com> <20140128011841.GG10323@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140128011841.GG10323@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/28, Al Viro wrote: > > On Mon, Jan 27, 2014 at 06:39:31PM +0100, Oleg Nesterov wrote: > > On 01/27, Al Viro wrote: > > > > > > Why is _TIF_UPROBE *not* a part > > > of _TIF_DO_NOTIFY_MASK, for example? > > > > Yes, please see another email. That is why uprobe_deny_signal() > > sets TIF_NOTIFY_RESUME along with TIF_UPROBE. > > *grumble* Can it end up modifying *regs? From very cursory reading of > kernel/events/uprobe.c it seems to do so, so we probably want to leave > via iretq if that has hit, right? But we do this anyway, restore_args path does iretq? I mean, uprobe_notify_resume() is called from do_notify_resume(), it should be fine to modify*regs there? Oleg.