Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1688340rdd; Thu, 11 Jan 2024 06:38:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDtWUpEabypfFBA9DENl5MTR/lRISe98aXATgOGHTZ9rQlSAPeYWbrj6MirgLWDkg93lbC X-Received: by 2002:aa7:cfc4:0:b0:558:1742:8ee6 with SMTP id r4-20020aa7cfc4000000b0055817428ee6mr477835edy.41.1704983936809; Thu, 11 Jan 2024 06:38:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704983936; cv=none; d=google.com; s=arc-20160816; b=kv1O9WMNStRt9KLTkwlypNkgGFLD9DpKk2VX0HbcLYA51GC1hq5obLOyB52Z0OIOVa 0FvqZEqME5wqCl0BIzU5T/iTna/Fsbj5a2M3y6VzfbRsuFxnyH+Af8tgLgIT109rZh/F Kb0bcRSs6MG9lhjtLyXlWLhnlqYRSfYpJSLb5YW7rpIBF6vVNh04v5YdMIAMk338hway DJfTg738TVZgPzPA82c450FtwfXrjsRty9/Zo59nBJmS6n2X8zGCjx8mUrbP3Yjj/NEJ eqKBKxaGggmYUTSUhEvUpTf9+uABPxkOAeWNuNeJNnYcfKsgN9kDhln7fVcVszwn1a9Q EOCw== ARC-Message-Signature: i=1; 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:message-id:date:subject:cc:to :from; bh=uG3vxp859Kr7rNp0nbfg+Z5Xvz9ct+f5F0Xlmfkdg7M=; fh=TMLyVqPlfAK50oxQKnRZLy5V8GKcWC7IJTIuGNsGS1I=; b=SB3qO4qWq0sv8C2HGDN+hs4nE1LgQnybPbBZQY+QavOwsD9hjbFYvu5gkjJxJGPEnO 2zxj41CJGfe4cwdw3vDl79yUroZ3c7xVc/iyM3uK7HQTCe0CPlRL5N1F0vrlpwTu65qt V2A0aCaixmxmPLFN0Yv6f0//Vo8snfFB6fO/cJgp3QMIgZ+uEwrRkXkMuT8yoqMhF7GF JoeJa524i1SnZKeDhkgAfktBMFdJJFTEFAs64obIrw+lRQqQH5bERiRj+rjs96n3iBnC Le9ZpJhqJmQcKYE5RQhDOZAg4BPliT9Ub7dofBqinJwh3KSQjJCdWw/4vXvkjWcSoaPJ Bdvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23715-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c10-20020a50d64a000000b00558b965686dsi4104edj.204.2024.01.11.06.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 06:38:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-23715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23715-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8D1911F24185 for ; Thu, 11 Jan 2024 14:38:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30CE1495CC; Thu, 11 Jan 2024 14:38:45 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 805AF3B185; Thu, 11 Jan 2024 14:38:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from r.smirnovsmtp.omp.ru (10.189.215.22) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Thu, 11 Jan 2024 17:38:30 +0300 From: Roman Smirnov To: , Greg Kroah-Hartman CC: Roman Smirnov , "Matthew Wilcox (Oracle)" , Andrew Morton , Alexey Khoroshilov , Sergey Shtylyov , Karina Yankevich , , , , Subject: [PATCH 5.10 0/2] mm/truncate: fix issue in ext4_set_page_dirty() Date: Thu, 11 Jan 2024 14:37:45 +0000 Message-ID: <20240111143747.4418-1-r.smirnov@omp.ru> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: msexch02.omp.ru (10.188.4.13) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 01/11/2024 14:25:57 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 182570 [Jan 11 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.3 X-KSE-AntiSpam-Info: Envelope from: r.smirnov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a X-KSE-AntiSpam-Info: {Tracking_one_url, url3} X-KSE-AntiSpam-Info: {Tracking_uf_ne_domains} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;r.smirnovsmtp.omp.ru:7.1.1;omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;syzkaller.appspot.com:5.0.1,7.1.1 X-KSE-AntiSpam-Info: FromAlignment: s X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 01/11/2024 14:31:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 1/11/2024 1:37:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit Syzkaller reports warning in ext4_set_page_dirty() in 5.10 stable releases. The problem can be fixed by the following patches which can be cleanly applied to the 5.10 branch. Found by Linux Verification Center (linuxtesting.org) with Syzkaller. Link: https://syzkaller.appspot.com/bug?extid=02f21431b65c214aa1d6 Matthew Wilcox (Oracle) (2): mm/truncate: Inline invalidate_complete_page() into its one caller mm/truncate: Replace page_mapped() call in invalidate_inode_page() kernel/futex/core.c | 2 +- mm/truncate.c | 34 +++++++--------------------------- 2 files changed, 8 insertions(+), 28 deletions(-) -- 2.34.1