Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1815841rwi; Thu, 3 Nov 2022 09:21:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63EzxxCPWlWrkniHF1qptptBTqP/9QyVnj5F26ghwAsyUBdowRH0DMDZn2+0+wSRrtYqpl X-Received: by 2002:a17:907:6d06:b0:7ad:b45c:dcab with SMTP id sa6-20020a1709076d0600b007adb45cdcabmr28264525ejc.72.1667492459941; Thu, 03 Nov 2022 09:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667492459; cv=none; d=google.com; s=arc-20160816; b=0WPs1FSfHjDnx0g+V2dM3Ga777grNPspoXzv33qqyJKuUChhfKsYyAM9OTO5Ij9cV3 pXkLH+SHTDOffqnlmeMloa1jpY9DcbVdqLvFYjRIOivIyQA6IsWmKeCVc0yedkD3mnx2 /B7/lnvWs6/Lknqv1b0OLRqpCR/TnUcPklGdkZynrqmTWRB0QOEtGIpf93g/vl2kx+yE iwHiVD3d8lpE2C64WrstBCZvC/Gz/aEfRfptNkAvU41jl2F0T+4BEsWueXlH74MBVTGc qLLcjKdEwZfxbS4J4PW5+Kb2MFaAJbF2aKU834ARQocqrZxqQ2rnUO5o4/oVy6Lg8LZ4 6Bmg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FO9W2MWMH8h7J4JxBnr4mqmxcXlAlwYlQywU8CT4NFM=; b=X78P7gua10ZJaf5fGNYSk9jNL7AHSDvNIu9lVWTX7TKhHp9oS1W4J2j+GPP97dWowo SvulHmqtQpegXGV2+9rbb+btGvAhR73kLNzi6ACbxaFjQNG+y5zYlDB5ZGM84pm618uQ 3Sr9hMHp8D8DrvLbS/QwEjczal5obyOVUOBvCWfeuOHWjD7fCpP/oslhdO2BTEDgupFk uIozHUEhIhMjkmKoS1O2AVE0jOuZIqWX3riJo9N+nxXlU5TXsJlP1fTDomZsqO19SX+g Hv+8ybu+asO+A72O+I5qFGi5aZ+wjfizqE5n6SP3FsOOfN3sxSSGGcYLVtV/euZBFkHq QaQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DXcfYRg4; 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 l18-20020a056402029200b004520e27e5b9si1364060edv.626.2022.11.03.09.20.34; Thu, 03 Nov 2022 09:20:59 -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=DXcfYRg4; 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 S231868AbiKCQOO (ORCPT + 98 others); Thu, 3 Nov 2022 12:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbiKCQOK (ORCPT ); Thu, 3 Nov 2022 12:14:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A02DF1A06F; Thu, 3 Nov 2022 09:14:06 -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 04A0661EE7; Thu, 3 Nov 2022 16:14:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D08FBC433D6; Thu, 3 Nov 2022 16:14:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667492045; bh=DLXNl9+4z7DavzpTnZ1L5p06FytfjA+p8ymjbqGgiS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DXcfYRg4u0MvTij8P2JTHEeWP0/91Tl0qN/7YDQqapLGO0WNc04x6Jkw7yWvqfaKb 3drBgTSEo/41veHAOOT8o42eT20vFgQ7nTtnMclIqNYScaQcgwhUHYRD+ixpnh2ias ehJCwbepwh221nd+ZWppOUnA6uqEVsz3yw/qvKjTrVhgGf+kj92u9yh8pqh9Q23l8T LRazn2RIbIgH+fIpf+EMvN6lmCV80niZTe9G+VD7RNmZts8PzEcBHTDP2IsNW6lMMA lI6tG2Rvu4dh+r+T27x5WvCFEi9kKOd4+DbSojCZ9jwubhXwX5DxUYm/tXTK0qv1xv gGh6ay7EWDvIA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Fix slab-out-of-bounds Write in dbgfs_rm_context_write Date: Thu, 3 Nov 2022 16:14:03 +0000 Message-Id: <20221103161403.115053-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221031182554.7882-1-sj@kernel.org> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, May I ask you to merge this fix in your tree if you have no concern for this? I think it deserves stable@. Thanks, SJ On Mon, 31 Oct 2022 18:25:52 +0000 SeongJae Park wrote: > 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 > > -- > 2.25.1