Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10139imu; Mon, 19 Nov 2018 16:45:53 -0800 (PST) X-Google-Smtp-Source: AJdET5dwD5/c1dONmTZjNNW4azeVdw3qrt8rMA+MxnlfQ5r+QR7bIcKxsDKshTJIlfT2yiurEKsp X-Received: by 2002:a62:5c06:: with SMTP id q6-v6mr3216965pfb.171.1542674753383; Mon, 19 Nov 2018 16:45:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542674753; cv=none; d=google.com; s=arc-20160816; b=QT2Eu6dBB5UJrmlLyiMH3N9GmZBls8ROuaRe/BTG7i1ZRU3x22z2OKhP5aqKdIuBBd owlAv7r4pGEAWSK6Cn+2N+yjpoMHnaBkFb6g3kMKZw07KBuu6mGzN17U/enw6tWcBS1x xzINrIyzOHpZlSWTmpgkM1dvh+GOMgKQm9uWdeS07Dk1aSM6Etq1yryTDXBRFQ5yR9+s VoyDAWG274WzRVYARymhZiDyPouNmQNJNExTlFH06Qzq2bAHwc0lfMT6XdKNHgzQ2/hZ Tqw1iezelUADk03Ze1pzEItUNPFD9FLYWLw3fkO/AH7USl/9mQykOmE6xiB8h4ZbNQPB AEow== 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=aQTxASLwPENV9NdvDPbMGdnuXyNP2+yOP9pSbkoLLL8=; b=nnR0wWV3QSLNJHNw0u1mIxKkPoEXttC5j0rJLN5xJ4/Zcui3McDEb0UNwXEiq3i8by parZcswmsXshW10YakC8vA5OOeUuAWdHIS2AbenFPmr6OsyZJ11fXZKGAWod8/+RI3gK JHnilC42A6rb4VJxv7/xLBWA4BuuVuDF5vBGaBKg+phPDU+FlKD/X99R39jSzJCagDkg S/U3UlP/u2xEmsrTBmOr5nOow82/kCVVFIbbueHuXrIJCwMVCaPSVI6r+yc4D0U76H+v Mo2wQFpdNHS0WE9YHpxany5w2LTrqgtIG3BTzoB4EjE6m3hZ47hHEX84WtyW61Zz/Bv6 jpzw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si14851369pgh.92.2018.11.19.16.45.24; Mon, 19 Nov 2018 16:45:53 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730896AbeKTKEi (ORCPT + 99 others); Tue, 20 Nov 2018 05:04:38 -0500 Received: from mga17.intel.com ([192.55.52.151]:62067 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730079AbeKTKEh (ORCPT ); Tue, 20 Nov 2018 05:04:37 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 15:38:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,254,1539673200"; d="gz'50?scan'50,208,50";a="105991001" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 19 Nov 2018 15:38:27 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1gOt7a-0005KO-Dz; Tue, 20 Nov 2018 07:38:26 +0800 Date: Tue, 20 Nov 2018 07:37:58 +0800 From: kbuild test robot To: Christian Brauner Cc: kbuild-all@01.org, ebiederm@xmission.com, linux-kernel@vger.kernel.org, serge@hallyn.com, jannh@google.com, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com, cyphar@cyphar.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, dancol@google.com, timmurray@google.com, linux-man@vger.kernel.org, Christian Brauner , Kees Cook Subject: Re: [PATCH v1 2/2] signal: add procfd_signal() syscall Message-ID: <201811200755.avfmktKQ%fengguang.wu@intel.com> References: <20181119103241.5229-3-christian@brauner.io> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <20181119103241.5229-3-christian@brauner.io> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Christian, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.20-rc3] [cannot apply to next-20181119] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Christian-Brauner/proc-allow-signaling-processes-via-file-descriptors/20181120-063836 config: riscv-tinyconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree GCC_VERSION=8.1.0 make.cross ARCH=riscv All errors (new ones prefixed by >>): kernel/signal.c: In function '__do_sys_procfd_signal': >> kernel/signal.c:3341:7: error: implicit declaration of function 'proc_is_procfd'; did you mean 'clockid_to_fd'? [-Werror=implicit-function-declaration] if (!proc_is_procfd(f.file)) ^~~~~~~~~~~~~~ clockid_to_fd cc1: some warnings being treated as errors vim +3341 kernel/signal.c 3314 3315 /** 3316 * sys_procfd_signal - send a signal to a process through a process file 3317 * descriptor 3318 * @fd: the file descriptor of the process 3319 * @sig: signal to be sent 3320 * @info: the signal info 3321 * @flags: future flags to be passed 3322 */ 3323 SYSCALL_DEFINE4(procfd_signal, int, fd, int, sig, siginfo_t __user *, info, 3324 int, flags) 3325 { 3326 int ret; 3327 struct pid *pid; 3328 kernel_siginfo_t kinfo; 3329 struct fd f; 3330 3331 /* Enforce flags be set to 0 until we add an extension. */ 3332 if (flags) 3333 return -EINVAL; 3334 3335 f = fdget_raw(fd); 3336 if (!f.file) 3337 return -EBADF; 3338 3339 ret = -EINVAL; 3340 /* Is this a process file descriptor? */ > 3341 if (!proc_is_procfd(f.file)) 3342 goto err; 3343 3344 pid = f.file->private_data; 3345 if (!pid) 3346 goto err; 3347 3348 if (info) { 3349 ret = __copy_siginfo_from_user(sig, &kinfo, info); 3350 if (unlikely(ret)) 3351 goto err; 3352 /* 3353 * Not even root can pretend to send signals from the kernel. 3354 * Nor can they impersonate a kill()/tgkill(), which adds 3355 * source info. 3356 */ 3357 ret = -EPERM; 3358 if ((kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL) && 3359 (task_pid(current) != pid)) 3360 goto err; 3361 } else { 3362 prepare_kill_siginfo(sig, &kinfo); 3363 } 3364 3365 ret = kill_pid_info(sig, &kinfo, pid); 3366 3367 err: 3368 fdput(f); 3369 return ret; 3370 } 3371 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation --9jxsPFA5p3P2qPhR Content-Type: application/gzip Content-Disposition: attachment; filename=".config.gz" Content-Transfer-Encoding: base64 H4sICMxI81sAAy5jb25maWcAhTvbcts4su/zFayZqlNJ7cbj2B5vZk/5AQJBCSuCoAFQsvPC UiTGUcWWfHSZSf7+dIO68NLwTu1OMuhGE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