Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1357501ybb; Wed, 8 Apr 2020 23:55:13 -0700 (PDT) X-Google-Smtp-Source: APiQypL8XQGYJ2klFXabUmVVuZ0geOqb4MMlQCZccWJQ3xOn/rNUKqU5scGIjpQ1HLJnd0JnGSGD X-Received: by 2002:a9d:567:: with SMTP id 94mr7830953otw.201.1586415313474; Wed, 08 Apr 2020 23:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586415313; cv=none; d=google.com; s=arc-20160816; b=HGvcwxrHAIyqUlkYYsFgNoiHU/FpWM9jH0mKaAAdSZ6ubBgtIHAprxRbKzHqNKVxgE uPQ4FjL+mA6XxapDX7ssNfViZCaTloEGQbNa7nC8Eqdygw2FKeKmf02cWt1lnR2twZ7+ JuRH0KyPd53As3dIAeT/IFSNXyTe0UopTbBh+vUVdK/PpFdmtkwMLMJP7BC8r6bW5Vmq c//Y4X44W/n43d1JND/mroPHc0Bwr5KGdNmbVcVaEGMJk3f3FR9Ch9pJJOuupsVbW747 UkF9psdcRYJ9yh33c+Tgz+UFbNG26dao0onrL6WVeKMcDWIaDYa33lVIqNY00PcS9YYe OMpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date; bh=cyg5a1bdK4wvJIUx5skP/xMgQSw3/gISoeZxI1qLUQE=; b=pFOi2Zh7ncn/ZKiK5RbRWukAJyDp2gmgHk4SVXNExNa4yfglVEI/+OuMWXSzL733K2 fWVJPyaeZ7FIwx6V5eXNtS6ocXTgWICE5CQYakKv6bh6eBcGIqGqA6ZpkD/den3/Azrj F0ODNdLLWqsqjYA5PDwg07/ZsWor54mq+kYCWuVJMuDNuPLQni/yXJAL75if4SOv2Ktc NaD6kfLs47oQoD+cj4Jt8aULJkGbhIt0/Pa2ez8XNb4Jb1gJzc2aJOXQYMTzIGuRC/JT zA3Q3Dfs3W/+ehGgWnbGKhlQrqOE8kHPgLh5awuR7PPOlxT1aULXWbXnZK4nIqv7yn9A 47Zg== 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 k10si3563755otr.174.2020.04.08.23.54.58; Wed, 08 Apr 2020 23:55:13 -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 S1726638AbgDIGxw convert rfc822-to-8bit (ORCPT + 99 others); Thu, 9 Apr 2020 02:53:52 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33745 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgDIGxv (ORCPT ); Thu, 9 Apr 2020 02:53:51 -0400 Received: by mail-wm1-f66.google.com with SMTP id v8so1784479wma.0 for ; Wed, 08 Apr 2020 23:53:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=t3JE+/sR3iLSFPRwnLZ9+4mg38UzzpABfn85lTFhzWo=; b=LtVmB5emDcI4VOBOSSKJlPMQcj3jZgX1p68bYYraoWIRF/LMT2M8aWhbItr98D6GAJ jHzMVeBKI007LVW/sGFyKN0H+3B8Y0ElIvf15HWaTm3P0+tQ6luW5qRUOjma/3mmIYwi DnOupyTey+OWhKm6bL2oDL8chCXu4nLcro/M9b7rCO7c13lG8h8SzaPCysPRU84CZMWM 8gC0+tGIb57FiHWv602ekUXlx1zgeWPuz14kldhWkQD0w/t6GabD7SwQTtQNEnds9IHp P5SWo37TneYn415YvwSYsjuqdlEkcaFSSw6Oz9S9ZJXTbh/TXd+fAaSSlVWgp5aErQF0 nT4g== X-Gm-Message-State: AGi0Pua1VLRZg8Moh/iT1ruWx9onqG+LCpWzof64aZb4esoXrvyPPZpr esvMkeAUesry5GU40pRy6odwEQ== X-Received: by 2002:a05:600c:2284:: with SMTP id 4mr8455866wmf.103.1586415230083; Wed, 08 Apr 2020 23:53:50 -0700 (PDT) Received: from Google-Pixel-3a.fritz.box (ip5f5bd698.dynamic.kabel-deutschland.de. [95.91.214.152]) by smtp.gmail.com with ESMTPSA id s6sm2506614wmh.17.2020.04.08.23.53.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2020 23:53:49 -0700 (PDT) Date: Thu, 09 Apr 2020 08:53:47 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <2d00096f-94f7-753e-c05f-14860fed2abe@huawei.com> References: <20200330084415.p4v5g6s24innsjrc@wittgenstein> <2d00096f-94f7-753e-c05f-14860fed2abe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH] signal: check sig before setting info in kill_pid_usb_asyncio To: Zhiqiang Liu CC: ebiederm@xmission.com, oleg@redhat.com, tj@kernel.org, guro@fb.com, joel@joelfernandes.org, jannh@google.com, "linux-kernel@vger.kernel.org" , Mingfangsen , Yanxiaodan , linfeilong From: Christian Brauner Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On April 9, 2020 5:26:08 AM GMT+02:00, Zhiqiang Liu wrote: >Friendly ping... > >On 2020/3/30 16:44, Christian Brauner wrote: >> On Mon, Mar 30, 2020 at 10:18:33AM +0800, Zhiqiang Liu wrote: >>> >>> In kill_pid_usb_asyncio, if signal is not valid, we do not need to >>> set info struct. >>> >>> Signed-off-by: Zhiqiang Liu >> >> I'd have done: >> >> if (!valid_signal(sig)) >> return -EINVAL; >> >> instead of setting ret to EINVAL above but that's mostly a matter of >style. >> >> Picking this up unless someone sees a problem with it. >> >> Thank you! >> Acked-by: Christian Brauner >> >> . >> The patches are queued for after rc1. So around next week. They came too late to make it into the merge window. Christian