From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15DC6C28D13 for ; Thu, 25 Aug 2022 07:23:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236129AbiHYHW7 (ORCPT ); Thu, 25 Aug 2022 03:22:59 -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> Precedence: bulk List-ID: X-Mailing-List: linux-doc@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