Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3559882ybt; Tue, 30 Jun 2020 06:06:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvg4RJHbqkXc3FxMG3pt9exteUPEK5P53L97TxmqEtdoBxIUFKsR9xGDNVOrH3578A+5Kr X-Received: by 2002:a17:906:dbed:: with SMTP id yd13mr17734849ejb.419.1593522368527; Tue, 30 Jun 2020 06:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593522368; cv=none; d=google.com; s=arc-20160816; b=dT12mNtJ97riGZ/83cZ4t1NzThHI0xcQkHWnvridTRxCVFEkPX0QH3jHMfAZ0sHKoY Di+2RfxeN2QfY8T1u/Qj/BywKVe9DX0wLEYli3o0cB7Cbf8b88khJ9qTBoKG/8s/+fUy F4LomtbIoDHXbpopghCAr3LRhC7U2rRD+zgtV92+cOwC2AHzfon9WC7fHidsomfuhUgY kPmXSmfcrK5riC4yeaIC5YkrVCB1SAw1XA7T/p3mHhFf+5VAj8/6bsn9ABchURrj8WyU Bg0dnrk4YCoAhFQgVL4deeBcrmCNA2b8kMwINndE+LwaN8liWSmauzez2efZIoVETJhv ZVEg== 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:references:cc:to :subject; bh=N/xG+jgJJjWrJnh9skqKo45p49UM/5LTrSGRGrEuwAc=; b=rrL15/ByOTECiZ/tzIeVOfy2QPz8bNt+fHrl8lmkJ/EuJJE6dA90TuX4H3xlDsvCII ZrTZ8xXSU3Iod8jFKqRczgeLpmXJSGQmkMhD5qFNyF0Vx/Fo1NwUphdDFgfv47IF186/ MIVZMJehX7VcEKmwV8kPtEmTQ7oYY5qiusZPStUeKJ4mZNY5HZjNDU1UOCa6iQPDxZVX emCg9026snGzFwBlOTdrCqyrff9kN5oF/9/BbqaKJoWnKdbXfrvPSB0Em5VREY6vYI5z vjWlBtcPtDxSiFo7AUfjwGjNEiwtp/XY5SeGrLVrid0cO3netdbSmmLtCiYSNJytMA3a zfZA== 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 l4si1725914edi.316.2020.06.30.06.05.45; Tue, 30 Jun 2020 06:06:08 -0700 (PDT) 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 S2387961AbgF3NEy (ORCPT + 99 others); Tue, 30 Jun 2020 09:04:54 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45370 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387492AbgF3NEx (ORCPT ); Tue, 30 Jun 2020 09:04:53 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id ABBDE157EE50F893074F; Tue, 30 Jun 2020 21:04:27 +0800 (CST) Received: from [127.0.0.1] (10.174.179.63) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Tue, 30 Jun 2020 21:04:20 +0800 Subject: Re: Question: livepatch failed for new fork() task stack unreliable To: Josh Poimboeuf CC: , , , , , , , , , , References: <20200529174433.wpkknhypx2bmjika@treble> <20200601180538.o5agg5trbdssqken@treble> <20200602131450.oydrydelpdaval4h@treble> <1353648b-f3f7-5b8d-f0bb-28bdb1a66f0f@huawei.com> <20200603153358.2ezz2pgxxxld7mj7@treble> <2225bc83-95f2-bf3d-7651-fdd10a3ddd00@huawei.com> <20200604024051.6ovbr6tbrowwg6jr@treble> <20200605015142.w65uu5wxfmrun2ro@treble> From: "Wangshaobo (bobo)" Message-ID: Date: Tue, 30 Jun 2020 21:04:12 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20200605015142.w65uu5wxfmrun2ro@treble> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.63] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/6/5 9:51, Josh Poimboeuf 写道: > On Fri, Jun 05, 2020 at 09:26:42AM +0800, Wangshaobo (bobo) wrote: >>>> So, I want to ask is there any side effects if i modify like this ? this >>>> modification is based on >>>> >>>> your fix. It looks like ok with proper test. >>>> >>>> diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c >>>> index e9cc182aa97e..ecce5051e8fd 100644 >>>> --- a/arch/x86/kernel/unwind_orc.c >>>> +++ b/arch/x86/kernel/unwind_orc.c >>>> @@ -620,6 +620,7 @@ void __unwind_start(struct unwind_state *state, struct >>>> task_struct *task, >>>>                 state->sp = task->thread.sp; >>>>                 state->bp = READ_ONCE_NOCHECK(frame->bp); >>>>                 state->ip = READ_ONCE_NOCHECK(frame->ret_addr); >>>> +              state->signal = ((void *)state->ip == ret_from_fork); >>>>         } >>>> >>>> diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c >>>> index 7f969b2d240f..d7396431261a 100644 >>>> --- a/arch/x86/kernel/unwind_orc.c >>>> +++ b/arch/x86/kernel/unwind_orc.c >>>> @@ -540,7 +540,7 @@ bool unwind_next_frame(struct unwind_state *state) >>>>          state->sp = sp; >>>>          state->regs = NULL; >>>>          state->prev_regs = NULL; >>>> -        state->signal = ((void *)state->ip == ret_from_fork); >>>> +        state->signal = false; >>>>          break; >>> Yes that's correct. >> Hi, josh >> >> Could i ask when are you free to send the patch, all the tests are passed >> by. > I want to run some regression tests, so it will probably be next week. Hi, josh did you send this patch, I haven't received it up to now, so i ask u to confirm again. thanks, Wang ShaoBo