From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Mon, 26 Apr 2021 14:50:21 +0200 Subject: [LTP] [PATCH] Modify the test logic of mincore. In-Reply-To: References: <20210330104613.1059-1-zhanglianjie@uniontech.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > The test was passed before the cve patch was applied, and the test > failed after the patch was applied, and the test results were the same > on both the x86 and mips architectures. > > This cve patch changes mincore() to count "mapped" pages instead of > "cached" pages. I've looked at at the mincore code and found what is your problem. The initiall patch that fixed the CVE was wrong and later reverted and replaced with a different fix: commit 134fca9063ad4851de767d1768180e5dede9a881 Author: Jiri Kosina Date: Tue May 14 15:41:38 2019 -0700 mm/mincore.c: make mincore() more conservative So it's your kernel that is broken and the test is fine. -- Cyril Hrubis chrubis@suse.cz