Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2960413lqt; Tue, 23 Apr 2024 06:57:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBUJ+KWZPrqfhjmQxcjy/6e+ZbQ9VZo5n8+1cn5moj+dqJQ6stjMG+zpS0JM347No721X7h5U5sUHpGOtDWDMpZSjsxEhSNp8+NFEwow== X-Google-Smtp-Source: AGHT+IFgNjVI/udtRQNwlR2oOvTimN85cdUaG8ZwyWgXXQ2zfov1sDT7JZHWlmY4jSx93PYNmZNV X-Received: by 2002:a17:902:7489:b0:1e7:ad7a:6a81 with SMTP id h9-20020a170902748900b001e7ad7a6a81mr12371086pll.49.1713880672197; Tue, 23 Apr 2024 06:57:52 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e8-20020a17090301c800b001e10a526a6csi9694910plh.300.2024.04.23.06.57.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 06:57:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=JPmxDbJN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=K89Ra+Vl; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-155280-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D473B252D8 for ; Tue, 23 Apr 2024 13:27:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C71E135A7C; Tue, 23 Apr 2024 13:27:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="JPmxDbJN"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="K89Ra+Vl" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (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 157A545BFD; Tue, 23 Apr 2024 13:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713878849; cv=fail; b=QnLrGvDf3xxr9R+rxFT1aqkdm/teRFZC3EBOJbLZ97HXLwV/7/zhfQsus7Y+FuxkW6TBV8DR/mSIPbpLyVWvrqLHFT2nvpjdf8VSrB3jpJUs13ZqMEnvFcp+DTcuG+GU6eue3YTMBPmI29hbXfRTx9fQtPwnmkbTmbZFeUOSJjA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713878849; c=relaxed/simple; bh=rWsZ0fceq/tn/qmmuPq+6VvQzfxhg0MoOyKKdaijmoo=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=R8Y4k8i2UjpYcCg8Bzawz7ezX2EPfhP4454TrHwDXjqfLKN0GiI7ytSK5eqihjAtQNIdwJfS9BxPrU71O5adnv2zB9nFN2dC1LiIOSQVm85GrI/bkhMW1zcC8blKHAVYiET+mXjREQUQA3MvQ4AtJzFiyphKNDsnS92ND4xLFcs= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=JPmxDbJN; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=K89Ra+Vl; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43N7Y4A3031878; Tue, 23 Apr 2024 13:27:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=U+dFQWNn3nRl/EDnKxKeI7RMW9xUWL5O+BDYykvJD00=; b=JPmxDbJN6H6iWz+ktjydf1a27VLLWR6qWuIFNeOVzy1ftaPJFgMC3MW99ntozM1IWsLq XKNsGWdmo6PqbiSjKJxo34FbwWLt6MM2C2lh7dTewvFRc8r0AozRUgWcqngqAyARIHpm ZNJ1NXpAdbwll4GWPn/4QN3CReojMRCCWXvWtsPXnVNnTnFaT8xN8nc1Ll3wdLrbkPRt yAU7qFqmfXGUvasWj819lTrRZlCquIAAZYhh+znGLAx0GAPA00STOolVqqMYdDwC6amZ uM0b9oOtg29WjHKaa4ca8oAWpTBiK6A3bDomjKpXOnVrYMEaGWIIBVLdsYJz0/rM3Eu8 zw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xm5rdw6d9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Apr 2024 13:27:06 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43NCDHQs025469; Tue, 23 Apr 2024 13:27:06 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3xm45dffd0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Apr 2024 13:27:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E5iTE2rtAI3KougUDgftVjxCEJHin4fjFzctegeSVoxeQmoicrnwSjzorIKN0IfiWk1rzHr4L6/rsK9hg/k5jdLI3A0U1v8zqPuRv2Yzew/JozWvOSQPfcJW9+efXgIPzdhjc6rEMhaNGIqhXwdTKuqUcPBi/c9WHeC2U1k1vJyxXaW7eEWqTtsANhDINeuzBXajtQnqPY1Cjp1liMMpo3xkDlNXQy1RRV4f79sqADB5KleG51jbMIKxMnnjJq0qmZHLf2AjuwH2RXiKlsK1Lu3iRTrX7UtZoNWY5bAetf9xb3ahEI8lYXuI/qqgXvM2m6hr2WRWT1p4XWo0L04LzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U+dFQWNn3nRl/EDnKxKeI7RMW9xUWL5O+BDYykvJD00=; b=S17SJPmeNkBoKIH0Wkpo71X3zziQqztmBElQq1rV+guOT0m8WM+PGLWR12NrfY3ffJRBkV2zad1fhkfPm1ugSR7fdCxHSEd/3YYAenQ6e79fHRpwg/vyaD/VmLEbB3K+gxl3PACJBO62cQFjwF0Z+GzUkJvdX6Wg5JE+5x/6gz/3ugzePO9s06rMX9VnEu4OsW/sZl1LeUe+95DbuUKhrvKwgpG5eUmvvpOBXHMBbjP3M4RRRyRdAabDZDxp2VyrPNpk9p6XhNCmJFFAvOuq13bs7o61xyz/UHrESDqAVtS6SpZPrwT1Uc2RnrapBncmowz0rps79yGQk8JqPWCizg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U+dFQWNn3nRl/EDnKxKeI7RMW9xUWL5O+BDYykvJD00=; b=K89Ra+Vl2BBhRH8scXUAMx5AE+Xo9SokTX9uXa7rz27qYPeMdil3Lejg6mJ7xp3AtCYyUoQhkOjZ6QY3KqMYl5ZG1Oqc9Z1rDZc5Wf2xtLfcBfdWgJgpON22pcslR4TCQK9s7NiNelHBa/0XbAS/MYgR/L/Zq64OnjSZqJExquo= Received: from PH8PR10MB6290.namprd10.prod.outlook.com (2603:10b6:510:1c1::7) by BN0PR10MB4869.namprd10.prod.outlook.com (2603:10b6:408:121::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 13:27:03 +0000 Received: from PH8PR10MB6290.namprd10.prod.outlook.com ([fe80::309b:26bb:11d5:cc76]) by PH8PR10MB6290.namprd10.prod.outlook.com ([fe80::309b:26bb:11d5:cc76%7]) with mapi id 15.20.7472.044; Tue, 23 Apr 2024 13:27:03 +0000 Message-ID: Date: Tue, 23 Apr 2024 18:56:52 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] fbdev: fix incorrect address computation in deferred IO To: Thomas Zimmermann , Nam Cao , Jaya Kumar , Daniel Vetter , Helge Deller , Javier Martinez Canillas , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: tiwai@suse.de, bigeasy@linutronix.de, patrik.r.jakobsson@gmail.com, Vegard Nossum , George Kennedy , Darren Kenny , chuansheng.liu@intel.com, stable@vger.kernel.org References: <20240423115053.4490-1-namcao@linutronix.de> <1722c1b6-59a5-429d-905c-bc1951a68a68@suse.de> Content-Language: en-US From: Harshit Mogalapalli In-Reply-To: <1722c1b6-59a5-429d-905c-bc1951a68a68@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: JH0PR01CA0124.apcprd01.prod.exchangelabs.com (2603:1096:990:54::13) To PH8PR10MB6290.namprd10.prod.outlook.com (2603:10b6:510:1c1::7) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR10MB6290:EE_|BN0PR10MB4869:EE_ X-MS-Office365-Filtering-Correlation-Id: b0fb3b9e-714c-40f5-1a5f-08dc63990ff4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?ZEdiZ2VpUmxHcXQ0ZXVzUVQ1TFJzUVFlekpBcUhlMkVlY2QzbEFQM3VmYU4w?= =?utf-8?B?bSszRmFibHA3U2VjZVlEVW1nQnBXVUE2SlduNzY1U0JYMWVVWWRIYnltN2F0?= =?ut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SjNMWkVCRUVESkwy?= =?utf-8?B?RXR6VGdGeWJJT2lmZmo2NWZHRXdkdFNhcEdycUtQWGN2VTlSczJvdkJLQXk1?= =?utf-8?B?ZjQxUVNGdkhKZ202TE5LTXM5UzdRNmNGRk9GbWkyL2NLK0V6WXg4MVFDZGZt?= =?utf-8?B?ODMrY0FXWDN1UzRMYkJhR2pFeVU1SHd6OWRHeWx2VUxiQ3VrWEpFWXc2NTdL?= =?utf-8?B?amhOVUVSaFdDOFNhbFpHSUJDZmNFOWdFV0kvcXlYQ3dCU1cxd2IxRVNwcGVT?= =?utf-8?B?SHBoQ21jSmp5ek1DVXZvU1F0U1VSWjFDM1VnWXhCdFhFTWxURzh1LzlySFBa?= =?utf-8?B?WllhRjhQMVVMVkN6WmVRbVoreWdWeitpUGVBT2VGSWYvM1hvekhRTFo1QWln?= =?utf-8?B?ZkYxZUNqR2xTQS9aNTZGVTc0SkNPbzhKWDVyUGtGMWRWa3orOVROMmIxdm1m?= =?utf-8?B?L3M2UlpyN1RDN205dzV4NnBEcFNLWWtHS2ZjMVdZNWlHdzRVamhqQ0I2dVNs?= =?utf-8?B?K2ZlZFYrVHY4d0tpNm8rV29NYXl1UGowYzNIYi9CUW0rRjNiRHU3NEpMd2xF?= =?utf-8?B?WEc5UUVDZEJEZ3h5aG1CNnp4TEFleEVsSXJscWNkN1NNM0ExSDMvdnBRUGpj?= =?utf-8?B?eXpVa3lpLytDbnlkdVVIclp0SmtrajVsQTcxdW1VdnBXSE80dWhKeG9VN00x?= =?utf-8?B?ZUVFeUw3OWw2ZHlSWmlPdTNiR3Y0RlFGSU9PT3BlRzNWZE9DeXBxdll3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH8PR10MB6290.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-Message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UUtxzOAKGv5c508qpcK/VX6Z8dNDheuxospnFCP75RH5t3JQ1f5dLjPxJxmtcMrYDcrDoRN+p4PPy8NnSOx17oVXKJkoekOC1w0V97ed8rmxrTBeS/LNMWHSpDSGahyjMOLp1P1nFbm5G2UrsHF8CBUfYjpkz6CMlcfUgdA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0fb3b9e-714c-40f5-1a5f-08dc63990ff4 X-MS-Exchange-CrossTenant-AuthSource: PH8PR10MB6290.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 13:27:03.2220 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Z8cN3miNXP2dRpsbjEppHkhTPEo6xlyjO+wFPIqK6Uur2J9ZIW4qeLjlfzAVRBcux3I8bQsqlK0zz+1bnOfbjinU2UGGlP4ykGxxWfjTLshqBnNF8jyK7ZZOUtuE9uBM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4869 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-23_11,2024-04-23_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404230034 X-Proofpoint-ORIG-GUID: IxEP8HjvjfCcDORTbagzNIHyYdueev_- X-Proofpoint-GUID: IxEP8HjvjfCcDORTbagzNIHyYdueev_- Hi, On 23/04/24 18:37, Thomas Zimmermann wrote: > Hi > > Am 23.04.24 um 13:50 schrieb Nam Cao: >> With deferred IO enabled, a page fault happens when data is written to >> the >> framebuffer device. Then driver determines which page is being updated by >> calculating the offset of the written virtual address within the virtual >> memory area, and uses this offset to get the updated page within the >> internal buffer. This page is later copied to hardware (thus the name >> "deferred IO"). >> >> This offset calculation is only correct if the virtual memory area is >> mapped to the beginning of the internal buffer. Otherwise this is wrong. >> For example, if users do: >>      mmap(ptr, 4096, PROT_WRITE, MAP_FIXED | MAP_SHARED, fd, 0xff000); >> >> Then the virtual memory area will mapped at offset 0xff000 within the >> internal buffer. This offset 0xff000 is not accounted for, and wrong page >> is updated. >> >> Correct the calculation by using vmf->pgoff instead. With this change, >> the >> variable "offset" will no longer hold the exact offset value, but it is >> rounded down to multiples of PAGE_SIZE. But this is still correct, >> because >> this variable is only used to calculate the page offset. >> >> Reported-by: Harshit Mogalapalli >> Closes: >> https://lore.kernel.org/linux-fbdev/271372d6-e665-4e7f-b088-dee5f4ab341a@oracle.com >> Fixes: 56c134f7f1b5 ("fbdev: Track deferred-I/O pages in pageref struct") >> Cc: >> Signed-off-by: Nam Cao > > Reviewed-by: Thomas Zimmermann > Thanks everyone! I have tested the patched kernel with the syzkaller reproducer and couldn't see a problem. Regards, Harshit > Thank you so much. I'll take care of merging the patch later this week. > > Best regards > Thomas > >> --- >> v2: >>    - simplify the patch by using vfg->pgoff >>    - remove tested-by tag, as the patch is now different >> >>   drivers/video/fbdev/core/fb_defio.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/video/fbdev/core/fb_defio.c >> b/drivers/video/fbdev/core/fb_defio.c >> index 1ae1d35a5942..b9607d5a370d 100644 >> --- a/drivers/video/fbdev/core/fb_defio.c >> +++ b/drivers/video/fbdev/core/fb_defio.c >> @@ -196,7 +196,7 @@ static vm_fault_t fb_deferred_io_track_page(struct >> fb_info *info, unsigned long >>    */ >>   static vm_fault_t fb_deferred_io_page_mkwrite(struct fb_info *info, >> struct vm_fault *vmf) >>   { >> -    unsigned long offset = vmf->address - vmf->vma->vm_start; >> +    unsigned long offset = vmf->pgoff << PAGE_SHIFT; >>       struct page *page = vmf->page; >>       file_update_time(vmf->vma->vm_file); >