Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1126893rwi; Mon, 31 Oct 2022 11:42:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57JqUTU3j5z6Tyia98rnXJ5o0gtMKTifOVsfsRoGWF2hl8SQICkDZfKIcfGGrFywLrJqr3 X-Received: by 2002:a17:902:9308:b0:187:971:a8bf with SMTP id bc8-20020a170902930800b001870971a8bfmr13430844plb.161.1667241721888; Mon, 31 Oct 2022 11:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667241721; cv=none; d=google.com; s=arc-20160816; b=uTsEpHjGpoTGlwPcWDIeSoqMIJM1hcrRZ4udSqrJ0/G857tkljK35oMAQNgMbZD8Oq 32BL3zbYJMfrgRMK7Ba718hCXYEydIRCRn8ALvOJdoOcd0VpkbGqNS0OUNieqpjXZp00 cAbiGzqN5TcP1GqjFXBm4naM1iQ9ny6r67UQKHr0t3+h7wkG2MG9YlgbTufuPnL1qe8n 4wuI4HceP6ho4eWkNy4C3KNmne87q+uliQOGNxr8lHJ5NFNZTO+ct5cS06jWswwyou3M ce4s7c7IkglFMWD57NxFUfSuXdxI5y12c7xGWZpGTLZBUnlBYvow27A3J3epPUetcTwy fKpw== 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=rZ1DyvOBvFe2EGHf4TIc6vt72AjNza76Z3C9UswBVz4=; b=SRY3cGDd3oN7medSRGLMAIP//fFbrE17+VzbG+rWX6LR/l9pkZWEWcmAYksBRqud1L yK674yNbxog32JJFJeZZzgqJcXrq6DZRclLqQsHsB+cH/W/j90LY7CDRmAs3O7dR/g7Z PaQlwy32sc/uBhQ5u50yDIHoSeqcCQL7rkfQ6DK2FKm9XfoL1+TcBTmKQuJH5k0HeXIH DHetX44Wo0j75uaKO0gQtrUb69v0ivZuuRN8PGccISBKdUz4Oge6wGzUxg0N4bya8Xp2 Qj+D077adNhhqpRe6itOCc4cBuaq87lQDroV8THIeJlS9wABCYSfql5TjbMYwzUgpE2d i/Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PfgjHGgC; 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 a70-20020a639049000000b0046e9da9ac40si8997629pge.556.2022.10.31.11.41.47; Mon, 31 Oct 2022 11:42:01 -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=PfgjHGgC; 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 S229940AbiJaSaf (ORCPT + 99 others); Mon, 31 Oct 2022 14:30:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbiJaSae (ORCPT ); Mon, 31 Oct 2022 14:30:34 -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 B6BE5263D for ; Mon, 31 Oct 2022 11:30:33 -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 52B6D61323 for ; Mon, 31 Oct 2022 18:30:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FDFFC433D6; Mon, 31 Oct 2022 18:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667241032; bh=SJ1Z220OaKsIBgx1R0J98wMJy/gtWfntG2gf3M3ljf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PfgjHGgCeq0tU3bP4CnPXKs0ndwNt3rpKv7/xhNwOjd8m+hihm7LI2pjFlmbflO/Q M9xeZ6+qyRAHq8F7SYnd3MhIlylR6dGnco4kIKSukxa6c7r8OSdVgpMhmLqeNo3/pK Z6Fr0mbG1CE4aFblkA31JVZ5ry6qqKGmLPX4j7IXmdnqrhMtkQ5teLKNjzigSN8gYo 2pflaB8u3Y1KQDbWhBffaZwoBjKUBr5/vIaIx5sR5YSJ1G3WaQ7UQ3Y1noqIS+LEwK XSbp12ldLLmwo677+VLdXGJQx4d7+xWJgNKQ/0pus0JL+dEKqWJiu2qW2WzZ6bDjK7 cwR9PboSQVq6g== From: SeongJae Park To: syzbot Cc: akpm@linux-foundation.org, damon@lists.linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, sj@kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] KASAN: slab-out-of-bounds Write in dbgfs_rm_context_write Date: Mon, 31 Oct 2022 18:30:30 +0000 Message-Id: <20221031183030.7961-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <000000000000ede3ac05ec4abf8e@google.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SORTED_RECIPS,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 Hello, On Sun, 30 Oct 2022 18:44:35 -0700 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 98555239e4c3 Merge tag 'arc-6.1-fixes' of git://git.kernel.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=12508922880000 > kernel config: https://syzkaller.appspot.com/x/.config?x=a66c6c673fb555e8 > dashboard link: https://syzkaller.appspot.com/bug?extid=6087eafb76a94c4ac9eb > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=167e3f4a880000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1262cb86880000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/b9ab8f713204/disk-98555239.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/5efa1b178038/vmlinux-98555239.xz > kernel image: https://storage.googleapis.com/syzbot-assets/83329b87f1a8/bzImage-98555239.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+6087eafb76a94c4ac9eb@syzkaller.appspotmail.com > > general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN > KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] > CPU: 1 PID: 3603 Comm: syz-executor414 Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 > RIP: 0010:dbgfs_rm_context mm/damon/dbgfs.c:928 [inline] > RIP: 0010:dbgfs_rm_context_write+0x2e3/0x4d0 mm/damon/dbgfs.c:971 Thank you for this report. I just posted a patchset[1] for the fix and selftest repro of this bug. [1] https://lore.kernel.org/damon/20221031182554.7882-1-sj@kernel.org/ Thanks, SJ [...]