Message ID | 20221031182554.7882-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 l7csp2474371wru; Mon, 31 Oct 2022 11:32:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7+BKrSiqMLSBVdjUj4Q4Z9It1IYGheYFAFlb8ocgXWWbHquK3bs+AK1RqLQObdUoe/pAkH X-Received: by 2002:a17:902:e88e:b0:187:27a7:c8a9 with SMTP id w14-20020a170902e88e00b0018727a7c8a9mr4490199plg.169.1667241150067; Mon, 31 Oct 2022 11:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667241150; cv=none; d=google.com; s=arc-20160816; b=aleOvpjzOCd8Wrpli0iSiKQj/EtzyX3onQp82jAuFbW3figZZ0kWgaAgu3gSUGf+kU xYpyu/FFgn2NxV9F7+g7GqE3R7UaI/vvumiD35iggnT0rPiW6hWUTtQ4dthXU/I+Jjr1 KVVtq5UiKgek6A3ZUnTAxt+jmSQcGO+xpBbcu2LR0hV+u/Zfg5xycp+5R5BUCp4hLoqP 01o9OffE87ZsCdyR5KENyMQ2Pyy3fEoc0BaIeWL0TGAe/kXmh1R4I+VrjzCt5YLtNiZY zq5pkj22/e71XcXkboozFisaUbd6pG28kHM+LIqqfsrIAtnfFwNOxWdjYHWta5ExUK44 gKNw== 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=+WD6t0egEaCHolqiQb8XzLNlJ0ReVVc5A1dbzSzN3pc=; b=SEd3NHG6RZu52vXXjjvkHijYeLhyhZZNwKJt48h2XCGpgDX9cYdxYl+gu5BLmZOpaV cgVZrNCvsBSRUwZZlpC1ivZstoHsAt73Y705dY9rghNssjJi44eZJ34s7QYejdEs9dNL dTYNWwMC0EyqenGOQulN3NgS+xISOb6iHeim3ZBj0bmftkHD02FvSYi8gURwGgEwNtjr oNoEPVzWwwE3IeSD4p04DQqO/PPWRQxh1DTk3PJWXj4014k5elmEf1jwVIVSi/+J4/uD N8AzUB7Q7/8tLABKdwFvNcIFgUL0TxFWpGYBjNtzoC5Qia74o7QLGM6gVjVp2/b8jUOJ zFGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mwkrMkEz; 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 a28-20020a631a5c000000b00442e77a852bsi9655965pgm.457.2022.10.31.11.32.16; Mon, 31 Oct 2022 11:32:30 -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=mwkrMkEz; 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 S229589AbiJaS0M (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 31 Oct 2022 14:26:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiJaS0K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Oct 2022 14:26:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CE6110FC8; Mon, 31 Oct 2022 11:26: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 ams.source.kernel.org (Postfix) with ESMTPS id C0FFBB819DC; Mon, 31 Oct 2022 18:26:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9C70C433C1; Mon, 31 Oct 2022 18:26:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667240763; bh=G91I60Ol4QydHlf0mecqvnzRJ7lAwY37ycd5EgIHiNA=; h=From:To:Cc:Subject:Date:From; b=mwkrMkEzxQ2aBJiRdepyeP5t5fLzY4CAtpKfH6JMCnHZ/VQ+dYxFX0iCcFO5gFDix 02rFZKQTxdKHR/Lv8Jlcv2w+ShC0DPpVcYM2H876SKCw/B5ufMRO9bzaAQsd7iIpzP gUJ5v/jTtpxcpsrk8tH598uGrOb2BpzHxGQZafU/J2/QqS3D8D97kVy+K0Lt9b7Nf2 +A3s1Gu6nonRmiA5N7F+dp5FdSau3BRTLg4JaXOLU3PiDRT7bfDa01vdEK+l8oDm5R C8do+DA6t2WbL0Lq3UMSEOopPedqr40+hIGrdo+LpmjTud6HHXLACzH8+00cNo7dMg h14pnuSkhu3rw== 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 0/2] Fix slab-out-of-bounds Write in dbgfs_rm_context_write Date: Mon, 31 Oct 2022 18:25:52 +0000 Message-Id: <20221031182554.7882-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=-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: <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?1748229056570922656?= X-GMAIL-MSGID: =?utf-8?q?1748229056570922656?= |
Series |
Fix slab-out-of-bounds Write in dbgfs_rm_context_write
|
|
Message
SeongJae Park
Oct. 31, 2022, 6:25 p.m. UTC
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
Comments
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 <sj@kernel.org> 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