Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp76665lqb; Tue, 4 Jun 2024 05:46:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJt0tuqaDzs77On3CWGGpOg4kpy6W4YCDNc88QusflbVnCO+xofUGnQPSkI00nSFaCfx7irTn9/vb6phcU4k+XZFH8OT6MDlu7Dj4bOw== X-Google-Smtp-Source: AGHT+IHNJ2Hgo4KD4sh7+hA59uQSBZMiXWER10z9WpNyRVmyohOl7sOLWJ6cZUN4vafacJQQOHJf X-Received: by 2002:a05:622a:1909:b0:43d:f8ce:5c3 with SMTP id d75a77b69052e-43ff54b3c79mr119948841cf.42.1717505160259; Tue, 04 Jun 2024 05:46:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717505160; cv=pass; d=google.com; s=arc-20160816; b=h0s1RZBKc0cSsQk+BjtDLyDPjpNrM1vNaqEHPvzOoo2cO6KKtlJUePIxBAF6zIIqnH 21IXuAQ+2WduISit91RmItAUncVEvPVdqmKM7ew04LJN/5OGHWvQanrOS+SCSxYT9Rvn YgIeKWI5zRsioE7B4ofq6Kh7fh8wN2oSzyfWOWoaA/zDLvoOtSK6JDBxq98ePYcZITXy tdNmv0VHibp2fjEhRj+pYUrkuJ6NDOBSb5q7cyfNFUgDo3b6te8gqpyt9fv5C0o+bERC 6TxCZnvWy4pqzJ8j05gFnPebMlpbCFqi5aFiPvFBacYbraLtxDJo+zxAggtW5XgdB3Jh 5Dxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=JwcpCzzF+dbSgt+Bq2XVmRWMR+9rtucj3s1YNITwjCM=; fh=Xv871dz9o0QDAmDUExfxbWXMe4oNSpsEg42rbhfP8RI=; b=RHD8Z6fXaPM7Ja3Wkbnysj+Ig5nR6Z+U3Jx2a3gORgPFEPcthPcIW0pNg2oTKChQWg BLOeJrnl8Z6m76rTinlFX/DjKTXwMa124KKe4y/lR+IoZW0ViFgXtn8gmfMg6f+StDoB qGTCf7Y664HjKKvu3YSXJg9Agonvvp055O//P8KDSk9l5wrMtXeQJAxVFmvzruQacT+m sP4mNr8c9JjZED5Mje4jQFuH7wLweBcD8j1TVh77Z4+cxVeAFzW5adVuOAqC4rD3Gcfz 3FFsIojcCvnK0hRMFqj7gJO/K0ohx6hYU0Hh8Yr3G3kapf0AwR1GS8x+qSDAh3Z+iQWo 1VZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-200623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200623-linux.lists.archive=gmail.com@vger.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 d75a77b69052e-43ff259d1c4si103948581cf.559.2024.06.04.05.45.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200623-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; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-200623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200623-linux.lists.archive=gmail.com@vger.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 DC9151C21A2C for ; Tue, 4 Jun 2024 12:45:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB72E14658F; Tue, 4 Jun 2024 12:45:53 +0000 (UTC) Received: from smtp134-24.sina.com.cn (smtp134-24.sina.com.cn [180.149.134.24]) (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 D201D1459F7 for ; Tue, 4 Jun 2024 12:45:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=180.149.134.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505153; cv=none; b=SvoJvKhuT5DEOugBLpnNSVV33SIwjUbENO1ogw0qC2TeVvU4wsDvWQkK0K/2Yk941ZX7crdz+iYBl9/o9i7EM6qBUpnvZRLU4FBc4/14YTjITS/4FsDwY5436RMe4p81c9Sm+B2i9Sj71xjy3VHO4Dykd1n6ggmNQtoekVb/QZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505153; c=relaxed/simple; bh=0iEF8wETT6G6fBhdJDXKqrY/qYuqjEBpgN/0oFGZ0gw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uI/pHipB9qBKN4DFWjno2XhP2d90814Cucqi7nn2bfcArOMlzq2B6mNZc7VJXBbHLB18KOYeqW9gA++Xl5k8Ln/2BCCOMqeMSLwy1Msh0laVRlVc6/0ZdOY73HZiChdS77024KMa9Pkbcfe95PDnAAsxRwR3rkHFYHENWjtC0KQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=180.149.134.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.118.69.129]) by sina.com (10.185.250.21) with ESMTP id 665F0C6C00002A67; Tue, 4 Jun 2024 20:45:34 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 5692173408666 X-SMAIL-UIID: 9B1112607D4845C4913DF2D3AB39891F-20240604-204534-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [kernel?] BUG: unable to handle kernel NULL pointer dereference in __hrtimer_run_queues Date: Tue, 4 Jun 2024 20:45:22 +0800 Message-Id: <20240604124522.1781-1-hdanton@sina.com> In-Reply-To: <000000000000deb5250619f9b5f4@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Mon, 03 Jun 2024 03:22:29 -0700 > syzbot found the following issue on: > > HEAD commit: 4a4be1ad3a6e Revert "vfs: Delete the associated dentry whe.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12c1b514980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- a/arch/arm64/mm/contpte.c +++ b/arch/arm64/mm/contpte.c @@ -376,7 +376,7 @@ void contpte_clear_young_dirty_ptes(struct vm_area_struct *vma, * clearing access/dirty for the whole block. */ unsigned long start = addr; - unsigned long end = start + nr; + unsigned long end = start + nr * PAGE_SIZE; if (pte_cont(__ptep_get(ptep + nr - 1))) end = ALIGN(end, CONT_PTE_SIZE); @@ -386,7 +386,7 @@ void contpte_clear_young_dirty_ptes(struct vm_area_struct *vma, ptep = contpte_align_down(ptep); } - __clear_young_dirty_ptes(vma, start, ptep, end - start, flags); + __clear_young_dirty_ptes(vma, start, ptep, (end - start) / PAGE_SIZE, flags); } EXPORT_SYMBOL_GPL(contpte_clear_young_dirty_ptes); --