Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp659404ybt; Wed, 1 Jul 2020 07:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlx/OqonByZWzOvXitZQy/voNy1AXuR0LqOCZgBiKf4qPid/cXT+qWlAv8I3OA9EGlycfA X-Received: by 2002:a17:906:c187:: with SMTP id g7mr15919795ejz.108.1593612760792; Wed, 01 Jul 2020 07:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593612760; cv=none; d=google.com; s=arc-20160816; b=UI7tmxKvyKiwCanFUwBTIuzdGuU0vl2Bnium7X9ezZF03J54ELTfhmYw3Qs6xKu3HU PpI56MpG+nMhHDfh3EMXoNk04Hp/jxeITbEjqfQZUksw6u+xzesKBp1riFLuXr+HA8J0 ifPUWjsATMgVHRz25VF8TZSq0WlyZAUxosiweK8792vtNlLePKrl+OOJVHoQa8ZugEQg hBvLfZDlcS8TMp50PT/iXbJe5GnWS5djeDKAQmi2rIKkdRpD/C8vKubKyGdsiYyRufNy Vjsspun7DQh96aFqcxjvFPZ91SMaRxAbIq5Pq+Aj1o7dqhWy/muDczZBD3LJT0Dbsjol 3ZVQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Fi6A3CZkk2rH/Msiy+LNlOzuFNldodoMYUgKLMO+kD0=; b=cpAxcNbt2rZkoNkudKW6c4pCCrssOTQ3hpxI8CD4BcN+D2cJqTTZGV0aisCk8/zNJD H3e5407X220r8fZw5MOZz3ZK0WGyQOyKQaCV/yDJfOsWeGhm5GQVWJOjuNoh+kFKaHTp 10xKWNnK9+saQDUi+scaTnQKhitWhDaEUqtXt3yhcPsLmqznsFUv62XP+KhfwAIvvklh zEp6RTbhNRGDRz4unq5dgxiztaXTLdJobdD/sVm6Z2fSgRy2OD25dN3zQfLqhlBhCwuP y28i8qOroVfel9Vyj53dNRvale4kkr9u5TkvaefM6Q7t53rtjiAhQZ5PXVuPmvVXW2V6 h3VA== 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 lf4si4059629ejb.310.2020.07.01.07.12.17; Wed, 01 Jul 2020 07:12:40 -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 S1731315AbgGAOLu (ORCPT + 99 others); Wed, 1 Jul 2020 10:11:50 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:60283 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731153AbgGAOLu (ORCPT ); Wed, 1 Jul 2020 10:11:50 -0400 Received: from fsav305.sakura.ne.jp (fsav305.sakura.ne.jp [153.120.85.136]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 061E90OX093153; Wed, 1 Jul 2020 23:09:00 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav305.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav305.sakura.ne.jp); Wed, 01 Jul 2020 23:09:00 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav305.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 061E8xWB093138 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Jul 2020 23:08:59 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: linux-next: umh: fix processed error when UMH_WAIT_PROC is used seems to break linux bridge on s390x (bisected) To: Luis Chamberlain Cc: Christian Borntraeger , Christoph Hellwig , ast@kernel.org, axboe@kernel.dk, bfields@fieldses.org, bridge@lists.linux-foundation.org, chainsaw@gentoo.org, christian.brauner@ubuntu.com, chuck.lever@oracle.com, davem@davemloft.net, dhowells@redhat.com, gregkh@linuxfoundation.org, jarkko.sakkinen@linux.intel.com, jmorris@namei.org, josh@joshtriplett.org, keescook@chromium.org, keyrings@vger.kernel.org, kuba@kernel.org, lars.ellenberg@linbit.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-security-module@vger.kernel.org, nikolay@cumulusnetworks.com, philipp.reisner@linbit.com, ravenexp@gmail.com, roopa@cumulusnetworks.com, serge@hallyn.com, slyfox@gentoo.org, viro@zeniv.linux.org.uk, yangtiezhu@loongson.cn, netdev@vger.kernel.org, markward@linux.ibm.com, linux-s390 References: <9e767819-9bbe-2181-521e-4d8ca28ca4f7@de.ibm.com> <20200624160953.GH4332@42.do-not-panic.com> <4e27098e-ac8d-98f0-3a9a-ea25242e24ec@de.ibm.com> <4d8fbcea-a892-3453-091f-d57c03f9aa90@de.ibm.com> <1263e370-7cee-24d8-b98c-117bf7c90a83@de.ibm.com> <20200626025410.GJ4332@42.do-not-panic.com> <20200630175704.GO13911@42.do-not-panic.com> <20200701135324.GS4332@42.do-not-panic.com> From: Tetsuo Handa Message-ID: <8d714a23-bac4-7631-e5fc-f97c20a46083@i-love.sakura.ne.jp> Date: Wed, 1 Jul 2020 23:08:57 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200701135324.GS4332@42.do-not-panic.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/07/01 22:53, Luis Chamberlain wrote: >> Well, it is not br_stp_call_user() but br_stp_start() which is expecting >> to set sub_info->retval for both KWIFEXITED() case and KWIFSIGNALED() case. >> That is, sub_info->retval needs to carry raw value (i.e. without "umh: fix >> processed error when UMH_WAIT_PROC is used" will be the correct behavior). > > br_stp_start() doesn't check for the raw value, it just checks for err > or !err. So the patch, "umh: fix processed error when UMH_WAIT_PROC is > used" propagates the correct error now. No. If "/sbin/bridge-stp virbr0 start" terminated due to e.g. SIGSEGV (for example, by inserting "kill -SEGV $$" into right after "#!/bin/sh" line), br_stp_start() needs to select BR_KERNEL_STP path. We can't assume that /sbin/bridge-stp is always terminated by exit() syscall (and hence we can't ignore KWIFSIGNALED() case in call_usermodehelper_exec_sync()).