Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2287659pxu; Mon, 7 Dec 2020 02:36:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7DGmCMht+BwmfF/KE64GQo/k0/hzWRpncQqdE4U8L7kO6aVgGORPuRPEWfMAkpYoN0sKM X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr17653927ejb.42.1607337360137; Mon, 07 Dec 2020 02:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607337360; cv=none; d=google.com; s=arc-20160816; b=eEuoHqpMceciG0zuZEZSfe8wNfU6gT7xaoVJzGCysHSAHCgY4Xg51idsuMwiKBEYme H/nE0OuuPOOZEMVGqKuWrIrU1w2kqIsEwu9typvgtOCA60159oiehMJjUtif6cHXN0OC T5V9xMKnEIu1o6okeACydGRIX/eGWmEm6olxuehfv4IKdOCr9m3mO2IvvysHATmdxDuX UJMPOte+wsnssfJnKO6EJsaHxaG7lGpRf+aPJ781D/Fdowccb5upVxA8iLC7sFr8VBpH 8c3RxuKX8oigtSVLDP1uUnWemfGVpbUnGSi37DODvJkWmhnOEqJwRSTk4846llEZWZun Yu0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Kpc+AqW25N3HKWO8giwsHao8RSJDaQRq9Os9gw/uXuw=; b=egNm4tm0t0bbvUJZN+JfZ1HgSn8+A8qRopHzPRSaA4UuaLpFvnl8pPNYIAi6NbW/Hs gytqsi48xF8xUD2sBA2vpRB6+CgE/e+GvtFpIJ9LNuyIwz+//plBPqo8H701itgqpmvt SWYAQjPWAD1ApavU9UqavElfrgdjKH6d+l7YFdFd9pCYWPPbC/TLNrgNo4+/eloEcJc3 QTYJBX1vPuq3hbsueHcQk3Q0z0W6w1QdtBasJv1RgRN6gmuAU7DPDX5/3tsi4g2qrHk9 orB7DJzi19aHh4Tg3Ma6MhEI+iT6fsF0Y870kjzkm0aSOg2HhjT97NldQKQOSbZgg337 S50g== 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 u2si5821719ejo.423.2020.12.07.02.35.36; Mon, 07 Dec 2020 02:36:00 -0800 (PST) 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 S1726598AbgLGKdQ (ORCPT + 99 others); Mon, 7 Dec 2020 05:33:16 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:58484 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726076AbgLGKdP (ORCPT ); Mon, 7 Dec 2020 05:33:15 -0500 Received: from ip5f5af0a0.dynamic.kabel-deutschland.de ([95.90.240.160] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kmDom-00045N-42; Mon, 07 Dec 2020 10:32:32 +0000 Date: Mon, 7 Dec 2020 11:32:30 +0100 From: Christian Brauner To: Jann Horn Cc: Oleg Nesterov , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: Re: [PATCH pidfd] signal: Add missing __user annotation to copy_siginfo_from_user_any Message-ID: <20201207103230.inx52blkask3662j@wittgenstein> References: <20201207000252.138564-1-jannh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201207000252.138564-1-jannh@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 01:02:52AM +0100, Jann Horn wrote: > copy_siginfo_from_user_any() takes a userspace pointer as second > argument; annotate the parameter type accordingly. > > Signed-off-by: Jann Horn > --- > I'm messing around with clang's version of __user annotation checking > and it spotted this issue: > > kernel/signal.c:3759:44: warning: casting to dereferenceable pointer removes 'noderef' attribute [-Wnoderef] > ret = copy_siginfo_from_user_any(&kinfo, info); > ^~~~ > Untracked cast to function pointer at kernel/signal.c:4294:26 > > > Christian, since this is pidfd code, can you take this through your tree? > Or should I send this to akpm (or someone else)? I'm picking it up now. :) Thanks! Christian