Message ID | 20221107165001.5717-1-sj@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2167340wru; Mon, 7 Nov 2022 08:52:44 -0800 (PST) X-Google-Smtp-Source: AMsMyM74KxUoNPjMjW533NvP8B4gg9WcdP84waN+WkKQ3nExCQkvV3uTfMuiCYyPrtIepkBa7gXM X-Received: by 2002:a17:907:3f24:b0:7ad:dcf7:c48 with SMTP id hq36-20020a1709073f2400b007addcf70c48mr39595332ejc.547.1667839964015; Mon, 07 Nov 2022 08:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667839964; cv=none; d=google.com; s=arc-20160816; b=xJWFm/nlCDhk9ljcgWyK4NoOaOKknQnA581Vd8ZwqtNILeGbNyVbkNfU8hZ+jnT2TH KcNjqE8hw/KIxag/+v1syVZPvPLNTuBS7wCoNxYJ6/QRzJnalzvWEXoop3Z+m7OLoBFm s0RWC7x6NkVAvT9kvTjUoiS4Q5lB5dCyRgG3gYGE58uyPBrfq0jT5oh79BWRkBAOOGbB CsdRTbdP0CbnfKnOSEQ16ZqvGYVbahJzeTqjAQ9pajwmOr44NP76VXkNvP9MXnmvwiY2 iJPRovx5YVAMRAf/m4lboOR7/iQ5vMFPYgYvpMLj5364e+aU+Yi5PlLmcgzvBQE47n4E 7XpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/g+rNC97SS6ZLBI32M2hXurqEqPSG9LiinS0ajJjqwI=; b=R7DaISp1OfRCNL+Yicyl4yeTBPjE7nPLEGppQTuhFuXjoLax360Lj94Pfqx0I8bgc/ WoZ2N6JohaL8NC91V+JEkUcPDi9T+mG8xM/pgNZvVMtpKwTow3fYzf+nWGKwu/xgtChM ENMuwxlhejn7aGPOyzZypClJMW4BEylGsecLwMYRoMHszyJ60y5VbtiT9fgeWuOQygQd Hk/K4cr5B4Cvc6kEWnwGQXFIf55u7WWz0JlXsx8b/TcVDFlWjyVj7uIbt+A6sXFz1WJk 5NfH6m6pwPeYYTOE7XoLW+CeW6BSW3zSD0oeuXDnwfkkySoS5CfEpliy+Rd2hk/Xtc94 uUdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=myvoQ3iq; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a056402278600b00458b9b7bb2fsi11793187ede.396.2022.11.07.08.52.20; Mon, 07 Nov 2022 08:52:44 -0800 (PST) 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=myvoQ3iq; 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 S232344AbiKGQuP (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Mon, 7 Nov 2022 11:50:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232604AbiKGQuG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Nov 2022 11:50:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BEDE20340; Mon, 7 Nov 2022 08:50:05 -0800 (PST) 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 17FC0611BD; Mon, 7 Nov 2022 16:50:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D389C43148; Mon, 7 Nov 2022 16:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667839804; bh=XqrOKcVsJ+boRrvDno7gBUrja/HWLI37DpoaBs9pWC0=; h=From:To:Cc:Subject:Date:From; b=myvoQ3iqA5MefMAxdVw8To6/c08n8axdkoYs+/ZOHzGAxHn9l8Gxp/ypQZkhtsvXo cThcewflV54JJdQGp8/TFJg+X9KLWh1hMbIe3DHuWsie8f8SRuPLsMkDCg68wbw7K4 BtG3Xf5zfIqFFh/zWK1KMi8C1Y8mOhn/P+sMFXZcEpZWGnN6wb+oSUXdq7c6jQCT/p jieRwpdbGeMJ3H446Z+GY/l8zULzVJlFdAcUJYPCEwR3wNPfkMo5xxAtQ2Zs1PeBFK XiaG6hS58IceS7q4qB4P1VQsoPPk4HvQXJFN42X8v9rd4ni/8vDwjkm92M3DzAxLs9 oSNzBINXerClg== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Fix slab-out-of-bounds Write in dbgfs_rm_context_write Date: Mon, 7 Nov 2022 16:49:59 +0000 Message-Id: <20221107165001.5717-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748856958008508723?= X-GMAIL-MSGID: =?utf-8?q?1748856958008508723?= |
Series |
Fix slab-out-of-bounds Write in dbgfs_rm_context_write
|
|
Message
SeongJae Park
Nov. 7, 2022, 4:49 p.m. UTC
Changes from v1 (https://lore.kernel.org/damon/20221031182554.7882-1-sj@kernel.org/) - Rebase on latest mm-unstable --- This patchset is for fixing (patch 1) the syzbot-reported slab-out-of-bounds write in dbgfs_rm_context_write[1], and adding a selftest for the bug (patch 2). [1] https://lore.kernel.org/damon/000000000000ede3ac05ec4abf8e@google.com/ SeongJae Park (2): mm/damon/dbgfs: check if rm_contexts input is for a real context selftests/damon: test non-context inputs to rm_contexts file mm/damon/dbgfs.c | 7 +++++++ tools/testing/selftests/damon/Makefile | 1 + .../damon/debugfs_rm_non_contexts.sh | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100755 tools/testing/selftests/damon/debugfs_rm_non_contexts.sh