Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2311688ybi; Mon, 1 Jul 2019 09:48:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMFZAA0F6hchDCNflo+nx0jGtsybdlZmeEbcNrVkrADuMn/323zUdgtVtJcZuSdnW2S6A7 X-Received: by 2002:a17:90a:30e4:: with SMTP id h91mr229370pjb.37.1561999697689; Mon, 01 Jul 2019 09:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561999697; cv=none; d=google.com; s=arc-20160816; b=w2SCv42eEiFgMtKpwXwG2W1FDwoZyKkT6PxHJ8KbLbK9nKcSOpVkxdQVKb9bydjIPl HjifZDnPX34N5GW0hIB/RbvdA45pGp+24NngfgNPvkwBPd1mLXopRMotc6fn7oqBEpaw kliAawegrz0Ui5LS9Xm3CKRxneKEYxTDvlUtEDX7Tx8mjeGO4m+cDOps3mAoid8Ow93i VXsCqDWvrL2wNLoEXaLUK2fsnm4ZMHLjJtiToKlLwhbs19UuGeyKV2WTWfp/Fjq8pSCB 48T/Wy/rtX2EgbDbqJPfYMlLmQFTlWs1JCFJGUrFAFxFwZgYjm0nfzL4I25wq0Ty14j9 Ozew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fJm/GAMYbdZtJRcsfRfb2q5FX+KYbm3/ziLqQuUDglg=; b=gGj4P9u0kITWcZ7yXUpoEJ3N0JajYtbCWlF2nKxKnxQ3BsPppjuhcd6bWfDE7oYKvX cL6HYyTA9AE67a6cqPP+Pg+z8mlNguVYBg8x4FktRai3TnJR9aQ4RhssBnAMwGCO+EBl NkfE3EY2mP7a7fL7D5aXlWgmaxSUE85+uzviSlvRxEQKZyLbuRWh2SYafLEM9Lqy3uXe Exkmw07F7HP+FmAbf4zgSKS5MUsfftmg+0r+0Oa4o2ti5cCs93fh7hCPl0mvmDhV/tXI zh/p7E5PcFCEFCcrPFm4a3J/7G5r6wy6JbmdrPIatJb0ryzdaN40VFPvqJPVyAi0BZu3 qxLA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si86121pjn.10.2019.07.01.09.48.01; Mon, 01 Jul 2019 09:48:17 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728440AbfGAQ07 (ORCPT + 99 others); Mon, 1 Jul 2019 12:26:59 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:35276 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbfGAQ07 (ORCPT ); Mon, 1 Jul 2019 12:26:59 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hhz8Q-00021O-6h; Mon, 01 Jul 2019 16:26:30 +0000 Date: Mon, 1 Jul 2019 17:26:30 +0100 From: Al Viro To: Christian Brauner Cc: syzbot+002e636502bc4b64eb5c@syzkaller.appspotmail.com, jannh@google.com, akpm@linux-foundation.org, arunks@codeaurora.org, ebiederm@xmission.com, elena.reshetova@intel.com, gregkh@linuxfoundation.org, guro@fb.com, ktsanaktsidis@zendesk.com, linux-kernel@vger.kernel.org, mhocko@suse.com, mingo@kernel.org, peterz@infradead.org, riel@surriel.com, rppt@linux.vnet.ibm.com, scuttimmy@gmail.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, willy@infradead.org, yuehaibing@huawei.com Subject: Re: [PATCH] fork: return proper negative error code Message-ID: <20190701162629.GZ17978@ZenIV.linux.org.uk> References: <000000000000e0dc0d058c9e7142@google.com> <20190701144808.6804-1-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701144808.6804-1-christian@brauner.io> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 01, 2019 at 04:48:08PM +0200, Christian Brauner wrote: > Make sure to return a proper negative error code from copy_process() > when anon_inode_getfile() fails with CLONE_PIDFD. Acked-by: Al Viro