Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp739583lqd; Wed, 24 Apr 2024 15:55:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCamxQkMPixC9X0kee1Y0wq1ghIK/bQhp8+98JwgxyVw6IRU4sFzhbCnNpukfDOwxtuSArQfz2oCZkgVGpu8PYxGb7x35xk9YNNJWmJQ== X-Google-Smtp-Source: AGHT+IHTQzWVkGRK564ffS99dWIeGOjTJ5NOsQ0p84iKcb2LiXGMZ8cRf0iq/v2R47ETe5NQcwpo X-Received: by 2002:a05:6102:2178:b0:47b:e8b8:ad2a with SMTP id i24-20020a056102217800b0047be8b8ad2amr4153636vsg.8.1713999309770; Wed, 24 Apr 2024 15:55:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713999309; cv=pass; d=google.com; s=arc-20160816; b=hQ4nn+x0c0DzflsAWdD5xzOiwQ/aduQ+8Kc9kSHo/03d87WidffK7uaSNUlowlbRDe MSB8gWc3VyNKeuRglH6ib3z7Hroh2lsf3l34VVy0hw7ZdtQ9BxgbtNxsBZXbmuwKkJpL B3Syhl0majigE4hngIdhOJFyrrt2Cg1Mbr8W2KgEk9V+JsuwQ7Q5bRiToI2rLek/Kw0o 1qGakRCX5boZEjjvtrJtwrFAN9Gks3RmFT3iShi/CfPxJWogGIPQ1Gi2Gw8oWNDot7W4 1s8glKYMThWFxOxPZOcaGGQeyZTrhnb7y9dcurxo1ROSKJuoksmvVY0XZcFGlpqFQ8M1 jL7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=qhV20ebwyjVS9ZmsvftKQpBJifJwQvLD1zjgUNQjXno=; fh=cMQOMgVyRKTASoSL9rhUTfkUzP6uZcdGljnQrcJHWHA=; b=lTSjXN//6Urfx1VDl4wOL1jBiJWFiQC+BhbGpHdEHYnyPocC36rBNSje1Lml6zke6J t68GO9SU9st6bTzNqYt23QaPOCTvluPqS3qhsUMZFVSsg7AXCPrDRVtwJ0zK9zlT6EGL 8nliZjwTHmb+SuaZ3dxIqP3ReSec+QBtdNERCd2X6V/+4ygeyg/FrmikUuxx68iWnU+M Bstm1f1Aoq12tjnYWiADTiOyvktQpIAJLDB+y6uc2urlReIP3ZbrClTCrUqlv7wdkqfI MnqoBy6S4K1PbqmWhqz04fMnaYpAiRq2zplTbfzIazo7Q6Uy3YvvTeewn28gotDx1cSd CuGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eCj4iiRu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-157810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b4-20020ac87fc4000000b0043a353fddb1si1424064qtk.56.2024.04.24.15.55.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 15:55:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=eCj4iiRu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-157810-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7FF191C24256 for ; Wed, 24 Apr 2024 22:55:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E71916EC1C; Wed, 24 Apr 2024 22:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="eCj4iiRu" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 525D116DEDE; Wed, 24 Apr 2024 22:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713999293; cv=none; b=WrdlQyPfYXa90gkRGTdWJQpXMwB6FlO1EswipquEsyvofMokQ5aPdJusio/SvStg/m8Rd4RfUetqFbbuyLhP8Y0zOuGAjtWDNBTHOkYxGR3h/6pOhy/zyBC8BJ4g2SzOGzizCE/KWAPI8ZQdl0Btm/ormRFZuKusJluVhSximfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713999293; c=relaxed/simple; bh=Teu/rIF3h0hRJj/6aYp3wQq0kJy2BWpbwqudl8sG9FA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a8Y8ylYOWPiBrvqUUCpEs4REx6UW5IWgGoJA4V7KXyYNuZAK4V+YC/SXYYB30cPSsD9EO27Txuq0GrAj9BJApWAveKIx+sIO6AUjngdx02Qh9JgnaMoF2bNCHBPZlyLweHxw+qIX6en4wWMOj3OjXLG9yHSABC9TQ8vX73smWNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=eCj4iiRu; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=qhV20ebwyjVS9ZmsvftKQpBJifJwQvLD1zjgUNQjXno=; b=eCj4iiRuMnaF7BjOuB048sOqBK b0pf9KuMzqPwbLvEttEdI5I7j8RuQlZl3w4UUFJo6dpycXfEhwNFaDbwGJm7M4nw5PncuzhzqGr/z 90QOa2VOJbdupbJ8cR6jxjjwexzdayhLmK7k0KenLUDxSE7FLyNB5qtuBiOKQlOhy9V575o5o3fP5 zkcTTK1h4PNr4CQa9zxEK2OzDsEkNbXxwu0fUgeHZDxiT3Zz/C1JBZQawoCSDiEqVxa0cNb37tn/8 f2mQfx0NPHs1jFKV3D2daBLkJwvv9GSpaycjHnUtAfm9EGri+7f6dL0997Q6As40dj81DThDf8GDN F13nkQpw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzlVq-00000006HlS-0TnN; Wed, 24 Apr 2024 22:54:50 +0000 From: Luis Chamberlain To: akpm@linux-foundation.org, ziy@nvidia.com, linux-mm@kvack.org Cc: fstests@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org, hare@suse.de, john.g.garry@oracle.com, p.raghav@samsung.com, da.gomez@samsung.com, mcgrof@kernel.org Subject: [PATCH 0/2] mm/huge_memory: couple fixes and one cleanup Date: Wed, 24 Apr 2024 15:54:47 -0700 Message-ID: <20240424225449.1498244-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain I've been stress testing large folio splits using the new debugfs interface with a new fstests test [0], to make the debugfs interface more useful it helps to do bounds checks on input parameters so this fixes two issues found while doing automatic stress testing of the debugfs interface with found files. Provided there are no issues I think this should go in for v6.9-rc6. Also, *should* we strive to support splits for large folios to min order with say MADV_NOHUGEPAGE ? [0] https://lkml.kernel.org/r/20240424224649.1494092-1-mcgrof@kernel.org Luis Chamberlain (2): mm/huge_memory: skip invalid debugfs file entry for folio split mm/huge_memory: cap max length on debugfs file entry folio split mm/huge_memory.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) -- 2.43.0