Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp462796rwe; Fri, 14 Apr 2023 05:41:41 -0700 (PDT) X-Google-Smtp-Source: AKy350adUrLgO/Y33F1GO3/PFL+pk4T1WKSaw8uO/JS8CgV9xzEJ2wsL/4F0m/4io0wusDguu0Me X-Received: by 2002:a17:90b:1095:b0:244:99f4:2f07 with SMTP id gj21-20020a17090b109500b0024499f42f07mr5141574pjb.30.1681476100976; Fri, 14 Apr 2023 05:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681476100; cv=none; d=google.com; s=arc-20160816; b=Z/aFfhO0hxuyPey7A123I1giVK9eLnB/9sOdyhFJCxdw2JxGbh2X3QDytkUL+S0no9 qe742cOYjiccEsFnXNPvHv3oV4H+rnofOuc26a7TgKvkSpHkbSmuOezDhchPzcyx4kzf 07yCFT12nbFvnUd+38tqyV63NhGIs0DoA/x9fNax/n+1bVX6dbTtY36ffRb5YLMowIwr zhRk5vf8xaAadNxjfKghZ+OCtvAerg0lG0Mv4voCMcieCqT/zwu4/1CpdsuylzLkkc40 cxacN/78d0+A1wN8g9dSUUR9xwUukyZYESvKjAW4yQ5HJ8hftdzTUNo+TgwdtU2Y1Mzi YTHA== 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:dkim-signature; bh=x7H01EGh/+8ISC/b+EFCV5qrb4oRgbYnxZRDtZ7KtG4=; b=cLGTxE0Fv6qFLKoG6RBS2eG7Z5/xFk7b7G5ZmNjLBY+jT+WT2vb8wZIh9rGM5vPR7M WPP0xQVGNWLrv4iaD3UIIB8j67E5Jy4g9c9qCzGFBBir7fCaXlxazxs7b4mHZhlt/nQ4 ysJ+Fvl2625RRcK1m9rzsyxK6XJ5C/xQKcZZm2Mwj/U/IlA0GoZPJk0nJwjlVuNzl4BO bzNuBqhLkXR8LYcnaJ59a990mY63A5Z88KQ01SKKKmlaYAWEdDKG26+kYcYuqCwAUURc 1JrHkPTAjxtzOtcQFse31bqTu0zFOZHu1+BMqv6nCF2xNy8dQIGAtMHcbolYcSbk3o5X wgZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lr4CGPox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a17090adf8600b0023d2380862csi4332209pjv.77.2023.04.14.05.41.27; Fri, 14 Apr 2023 05:41:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lr4CGPox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjDNMee (ORCPT + 99 others); Fri, 14 Apr 2023 08:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbjDNMec (ORCPT ); Fri, 14 Apr 2023 08:34:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABCE011C; Fri, 14 Apr 2023 05:34:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3ABDC64782; Fri, 14 Apr 2023 12:34:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E0E2C433EF; Fri, 14 Apr 2023 12:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681475668; bh=BAKGgus4eGkCvEXO27Qe9/ouyyrTGRg0jGngNGSPXuo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lr4CGPoxIPNfWbGXJglt4wgpskvaHOjGHLzfGWujsfLtMTduRUay1tU7R2/fHeBMx 7qLHJcGb/WExdG8Z9iveMTz1kgxl2iuHRYePQpqbba7WpcQPw1Unl6YuYZzzTVGD+s jcfrUJteyFGzNwlVVa6yYDnaHLsi79JBt6hDNCTA1a/E3QbSRYKOqtHvBStwW1HazD S92BWOxtbV2NPtDQalMIcprDQsksn4fyCBrcY2lqOjYsSboHD9xR4vOWfAJTew+lJX BHeaI4c28CWHJLre+g+eq17q5ngGVhrC24gi8l3BNxzrJLDk48TAiRADvlzim5NbVy o1aJODexSzC3w== Date: Fri, 14 Apr 2023 14:34:22 +0200 From: Christian Brauner To: Jan Kara Cc: Luca Vizzarro , linux-kernel@vger.kernel.org, Kevin Brodsky , Szabolcs Nagy , Theodore Ts'o , David Laight , Mark Rutland , Alexander Viro , Jeff Layton , Chuck Lever , linux-fsdevel@vger.kernel.org, Amir Goldstein Subject: Re: [PATCH 5/5] dnotify: Pass argument of fcntl_dirnotify as int Message-ID: <20230414-vorgibt-kringeln-f8bf1ae5278e@brauner> References: <20230414100212.766118-1-Luca.Vizzarro@arm.com> <20230414100212.766118-6-Luca.Vizzarro@arm.com> <20230414104625.gyzuswldwil4jlfw@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230414104625.gyzuswldwil4jlfw@quack3> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 14, 2023 at 12:46:25PM +0200, Jan Kara wrote: > On Fri 14-04-23 11:02:12, Luca Vizzarro wrote: > > The interface for fcntl expects the argument passed for the command > > F_DIRNOTIFY to be of type int. The current code wrongly treats it as > > a long. In order to avoid access to undefined bits, we should explicitly > > cast the argument to int. > > > > Cc: Kevin Brodsky > > Cc: Szabolcs Nagy > > Cc: "Theodore Ts'o" > > Cc: David Laight > > Cc: Mark Rutland > > Cc: Alexander Viro > > Cc: Christian Brauner > > Cc: Jeff Layton > > Cc: Chuck Lever > > Cc: linux-fsdevel@vger.kernel.org > > Cc: Jan Kara > > Cc: Amir Goldstein > > Signed-off-by: Luca Vizzarro > > Looks good to me. Do you plan to merge this series together (perhaps > Christian could?) or should I pick up the dnotify patch? In case someone > else will merge the patch feel free to add: > > Acked-by: Jan Kara Yeah, I'm happy to carry it once it's reviewed if noone objects.