Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp336615rwe; Thu, 25 Aug 2022 00:51:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Wcaf8W3eR6YJDKkJglcj6LHF925/j6eCbI7u/T5rl0Z6xjKio9tXZOURaFnRjt6gQAYxD X-Received: by 2002:a05:6a00:1312:b0:536:fefd:e64a with SMTP id j18-20020a056a00131200b00536fefde64amr2650568pfu.26.1661413871513; Thu, 25 Aug 2022 00:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661413871; cv=none; d=google.com; s=arc-20160816; b=bWtfwHU1BiDyTsy2Om2tAGu8BGMjHqznCrk/F4GMOJwpy7iXA4NbpmCVisPuMI6rDg VHmSdto2M7EK+8l/UblYKqW5i/xfsQB2rQTbSNJeLS1vtka4LyZPc5EU6a6+t1Ssokxt DFM9sFo0I1DGIJTYKKSGl04VNboOUR9mioFC5XELfnZmnyorNM4oayrSYLvvyel5vh8a lbzi9kwmEDrC6oSJ/uV91DDkItT8hMaqfChsoW7QXWJvQu6kGmfUaVCcPjdKvib3tCS1 rxn1TiVgBLL+d2Q2Fc2jndVMAYmuVTMQJnSWvq433B0OKW1haPo0tKsAKGmPFjw0yQon TDrQ== 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=iwXcr8XwqloQc1Eff1h30onnH+eH9eOQxpwa0bzH2tA=; b=pcpOTVoC2tHrfHEiSempXuh6AD0FDGLAfieRIJolaINwHGIRe01aLEgclChpXbTjzL CC5DKtd/Oc+PZMgoOC2XWbiyWcaKW8WV33y3oqmaBixR+V/23Cijg2L17SIzneQGD2JW lDyoLuRqFbSsaksHFNXH7nhuM/1DvRZpnm4SxukwrVcgFVnQ4fKQgeuYFjcFhDpx2U3E uf06f/lZZJRmFBKjidJKBCj1cTnPawOUpVtY7BOTY6n5j19K3v0tBIKHTY94tWI6uGiw LWUM8gwy+fd6VzkCvceJOEQcOVvJj/zh7kPz9MfgJXwvXQD1F+Wgn7uSA06oHciXN6aK J/dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ha5zOtk0; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a17090a4e4800b001fb47ec7b5bsi2944593pjl.165.2022.08.25.00.51.00; Thu, 25 Aug 2022 00:51:11 -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=@linuxfoundation.org header.s=korg header.b=Ha5zOtk0; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237630AbiHYHXA (ORCPT + 99 others); Thu, 25 Aug 2022 03:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbiHYHW6 (ORCPT ); Thu, 25 Aug 2022 03:22:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DF83A1D31; Thu, 25 Aug 2022 00:22:57 -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 E641561901; Thu, 25 Aug 2022 07:22:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3630C433C1; Thu, 25 Aug 2022 07:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661412176; bh=FZL6dNpPI/YKsRnZLNyMo4D7gdJtSXb/mNkH8Nlircs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ha5zOtk0AvY7x3EA510ExFs2Re0tF/qCrDWbj8ScuZmL1dRJ/pCwzPTJ1HofG6kaL LwrifvXSDr2EJZFsFOq5BYmD3ZPtJhQA9mz12KYgxwET8INYKABD3MDe3a9iWm1oNG U0gz1uULE3YJPQ679T93gSvpNaY1U4yRiXxd6ONs= Date: Thu, 25 Aug 2022 09:22:52 +0200 From: Greg KH To: Muhammad Usama Anjum Cc: Jonathan Corbet , Alexander Viro , Andrew Morton , Shuah Khan , "open list:DOCUMENTATION" , open list , "open list:PROC FILESYSTEM" , "open list:MEMORY MANAGEMENT" , "open list:KERNEL SELFTEST FRAMEWORK" , kernel@collabora.com Subject: Re: [PATCH v2 2/4] fs/proc/task_mmu: Implement IOCTL to get and clear soft dirty PTE bit Message-ID: References: <20220825070926.2922471-1-usama.anjum@collabora.com> <20220825070926.2922471-3-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825070926.2922471-3-usama.anjum@collabora.com> 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,URIBL_BLOCKED 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 Thu, Aug 25, 2022 at 12:09:24PM +0500, Muhammad Usama Anjum wrote: > - The flags can be specified in the flags field. Currently only one > PAGEMAP_SD_NO_REUSED_REGIONS is supported which can be specified to > ignore the VMA dirty flags. You forgot to check that all other bits in that flag are set to 0 properly, otherwise you can never add a new bit to the field ever as you can't expect userspace got it right and did not accidentaly set it already. There is kernel documentation on how to add a new ioctl, you might want to read up on that first before resending this. thanks, greg k-h