Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp764000lqp; Sat, 13 Apr 2024 20:31:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0WtCyl3xJolscdcc/6aVZOERgD9f9cdyCaZ4SGoSzcNQCaQD2IGQkhP0m6GlJCp5IyMMtMmqGFV7wuwrBpIXS9S7NiuKWmd7Ew12EoQ== X-Google-Smtp-Source: AGHT+IFjztAGPezHftiInIf5CCEbprQJWx/6KtslInj/YMvn57xFk1izcJnvFjXTX4H1ebYUA9OD X-Received: by 2002:a05:6830:1450:b0:6ea:1fa9:82bd with SMTP id w16-20020a056830145000b006ea1fa982bdmr6972807otp.10.1713065502546; Sat, 13 Apr 2024 20:31:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713065502; cv=pass; d=google.com; s=arc-20160816; b=HTCHAPEgVyQhs2zjxEskCLc6Y0RTzgKLMVuZ357gsNZo4NftaZSCEM8gyVsR4WNKEx p5HFMfcLER0tUJC1wTmkwyyeli7gPbVkmnBQvloiIsJAlXdrp4p4xlDosx4QaQ8Thw3I a/W7PwpjVXOQQMStHCSxSXtJn3pcaH2TFYHZ220S1+Fa0zPxg2ZpwElwiMjhtc8WsOB1 G4H57LXdn2+Daz8kipwbc+B8K9/croRiT50lqGIUez2eDbEygbbbB+OAvn9rj3rlmp9D pGROC/Yfl62rd6xwsmIZ7jW/2pqgOAfnGnAdBM9E1HMBG/4xj5AmsLLOuStRRdN+JS1U 2Yjg== 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=OreZRxvtHQfkHnt3gPDsXYhsLXCUyiYMtoDCMPxHwmM=; fh=AxLrQACx/0clDIBJfZSfJcpxH4vvLDx/7bfa4LPBS8k=; b=BKC45n8RxrXYB1ogYITVsV6CuA2T3bJJjgy28MhpKRTLYr+SxSSJaNFFNVuDLpo0Xs yE3FJ6Q5lXV9hthIAyiuKe83zdyiZU+Y6ud6VUhPWoNw7jzXqgIFw6yTOlGTIi9nJmA4 VXFckB+SdIAnmQkdljtcXJAATDyNgIurA1fOca+X/F6t7VOqil6fHp8XcG9yCl0ZkD5t mpXdH2ATynC+cTkelniIEU0taGf8bWrOzSnvXPaPI8UhPk0FlqisMtE6/qtDXomRhamp Eet37oEUk2e7/8gi7HrS51QexbtowkJm5t9liVXh6q4N4CNJ1FZD4PxvQbYChNP1LDb8 2duQ==; 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-143954-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143954-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 32-20020a630f60000000b005dc4897a9b6si5877939pgp.413.2024.04.13.20.31.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 20:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143954-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-143954-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143954-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D399A281C52 for ; Sun, 14 Apr 2024 03:31:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 446A917565; Sun, 14 Apr 2024 03:31:36 +0000 (UTC) Received: from mail78-58.sinamail.sina.com.cn (mail78-58.sinamail.sina.com.cn [219.142.78.58]) (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 30CFE125C9 for ; Sun, 14 Apr 2024 03:31:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713065495; cv=none; b=JiUKmE+YzRE3REvguFMDg0L7PyPLr4VnvDTE1fYnd+Glc/CvpEO2ZSgBp9K5BC5iyFqswxkv4WdBuYnbRf+82nOreKsab6FGghlk2HGLXIXTDZub87SXllk43CK2jZ9TOavNWnIGElJJ6pBUNiRzpel3ddQgKUssRhyZazrmLlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713065495; c=relaxed/simple; bh=hn79FhQY4wDdWmWDQxyNM70G3z1k4C3Lmk3QwFsPzdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Uzyo6wjzkwBRsS37mbI8FBfLuxVkZwy/Op0gJCj0gfhvXx+b0X7SRBn4QjUdQmpBQlIdw1UwbK6xoh6abpTdsa+qcwZG6EaeHXWLVCAfiV2LIzcp/gNNPYZoyP8m2tROV3dy+f04KA5iI/odJXjLnIMi6eYD0H1KfTOt7Yo4Reo= 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=219.142.78.58 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.67.190]) by sina.com (172.16.235.25) with ESMTP id 661B4E0D00002D47; Sun, 14 Apr 2024 11:31:27 +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: 1166634210236 X-SMAIL-UIID: 4A42A3D1C0F94DF3BDB27A900084C834-20240414-113127-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [mm?] KASAN: slab-use-after-free Read in __vma_reservation_common Date: Sun, 14 Apr 2024 11:31:19 +0800 Message-Id: <20240414033119.2079-1-hdanton@sina.com> In-Reply-To: <000000000000ae5d410615fea3bf@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 Sat, 13 Apr 2024 11:34:32 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 9ed46da14b9b Add linux-next specific files for 20240412 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=12bd4457180000 > kernel config: https://syzkaller.appspot.com/x/.config?x=7ea0abc478c49859 > dashboard link: https://syzkaller.appspot.com/bug?extid=ad1b592fc4483655438b > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1370ea67180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 9ed46da14b9b --- x/arch/x86/mm/fault.c +++ y/arch/x86/mm/fault.c @@ -1353,8 +1353,7 @@ void do_user_addr_fault(struct pt_regs * } #endif - if (!(flags & FAULT_FLAG_USER)) - goto lock_mmap; + goto lock_mmap; vma = lock_vma_under_rcu(mm, address); if (!vma) --