Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp981494rwd; Tue, 16 May 2023 10:05:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rHws3bONf3Yn3omoD7m4CWP6OWJ6LbHN1tJMPuisPV9vE2ow062+SFZaOoCE88GIpOgBx X-Received: by 2002:a05:6a00:21c9:b0:645:1081:98ec with SMTP id t9-20020a056a0021c900b00645108198ecmr43654618pfj.13.1684256723903; Tue, 16 May 2023 10:05:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684256723; cv=pass; d=google.com; s=arc-20160816; b=T/5vZMy3RZlklr1l/pvCeHxk4bVJIPaF5d5q+i3w6JyVBbR0c6S2b9pQh9Uk4/AV/4 mkqkjSBLI4KR+pJy1NxW0KXZWwrDWwZacuDnRzDBUT77YrcTdnQckOsUoa2zqpwKd9lP GP6djDfjmF3MH+8RPkze2/ai3WkB2dNnyAstlKb3joU+95rojgzyJQ7ugSkpnKNU3ztV lwEvEsNEPwa0STFkmLJEqRRMqKG9oq3G+DMAxZbBZUVAXfA9OBzqkbf6ivr7R02b0YLx w5/fnnh1qHEi0/+C/d8XpVbud2c6HmncYsffc2MeNF4gQo4gBQ7TGIRaU0VgzyWd8d2q ag/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-transfer-encoding:content-disposition:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=pY/jgKi5WLsxoqyxlSfjeQrlj+5BQa+TecVjayMpLe8=; b=DBIGKvqg+CIXugZCSiNuwrwFMvxfMug+fQl3osyFjc6Vfo38ab01MHsZwxquGh3Gu/ R6MQMulNzrz6o5OHAzZNO3k8WHmfFIUPw5NvdVqTGtJ9ElGg3xL5DmGEUufQYwZH49Rs 2bYmk+EopjYYsMpUf0mAlKBkgzb++8GbJ/K6Q77R+OB0q3Ui0TzVVqLLJljyP5zRWDbs OPbu3tSFk02PlKepb2BZ+63BTiDT35941C+R2KHFPdYKA26Rhhp2BoiBlCkt3FFqfO2z I1llHNLWuOp+DAuEH12uvTWT+F15voy6Joa/8dksJLAjo1kg+68ff0QIMng1+MUXx6Jh ONHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=1QYSlwrQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=aMep65Ci; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa7962b000000b0064309ecbad9si19489827pfg.30.2023.05.16.10.05.10; Tue, 16 May 2023 10:05:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=1QYSlwrQ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=aMep65Ci; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbjEPQ6V (ORCPT + 99 others); Tue, 16 May 2023 12:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229964AbjEPQ6T (ORCPT ); Tue, 16 May 2023 12:58:19 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8EEB7EE1; Tue, 16 May 2023 09:58:18 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GG4cfA009625; Tue, 16 May 2023 16:58:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : content-transfer-encoding : in-reply-to : mime-version; s=corp-2023-03-30; bh=pY/jgKi5WLsxoqyxlSfjeQrlj+5BQa+TecVjayMpLe8=; b=1QYSlwrQl9T98C/q3r+2i89Eqo/t5WTDWgIWYcuYwuAYHBwRohStDesyTSsZJm0m0Akz HjjIzq8js1aT7U9P+wMUQAp9pKs3FHiVkysn3El0goZ19L3VhBhXyz9cJPHpv+8CHbUV W3zJu2TiWrSmF3xvYksUc2UkVJhFcdqSTmmQXXSs54G27pq0yZrX2uuEHvmLMeuwSRAl 49kLqgu8GXAfNokul/Qs7jal3OqW6QspfQ8CgFL/JVCEhrXPQJ8xeZwB2flMiruxnZWm avKq1V2dp4YfbUirQWGT5+BE7fi8Nb+HBea0eGtVAWBzfod55fyhwV9bM0CiMi+gQfsV HQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qj1523n0k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 May 2023 16:58:01 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34GGu42N023724; Tue, 16 May 2023 16:58:00 GMT Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2048.outbound.protection.outlook.com [104.47.56.48]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qj10akua8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 May 2023 16:58:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oABVJ2sy81Cb9H+6bzZ7odLtvrPjX6/l8gIxRL9MPkNx7AZoMGeUIPYIXqvCu/wtG94XlyiHL1pXdl+lPYH8uBQ0D67a9K149pDEg0gECpgDkrMIv5ImBhlqKhSRQ8hLbXbYOhfUAP7FZ9u2Rgy6iO4hCizbqm46kc70U3a/s7HRmNYyfMQ58JVeI2vmX6T3MWB9k6S0dLbx72omrlURye2GOO0jSVrxaog8rWjDFGxinz1r6XBbKk3e5Kl0U/KjcvVKuSvQS+jLjqqZUQoZkV8/yfYZp3oQ6ISCSIfTpZbtuIZLJkU3O2qgIEzNbfauNNg7u/Q9KB3r9KkDXDefvg== 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=pY/jgKi5WLsxoqyxlSfjeQrlj+5BQa+TecVjayMpLe8=; b=dnb8tvjU5ZflYPl9qKDraeK2dzSo25nrB8Fj1XyTB3tEygYhONKQ9FF06wYJJLr7W9veqsTZSZ033/rgwLG01KwGx8TzivJa21eS3ewx5fMInDKUefoK/+6DPCZoW7XckETXV6wSurRU/EZG3yi5FaJmNKzBFyb+Eiv6yDT6OdBo4znw8AKvrV2XMkuG0pWKHnJnrWX0JdXpkdRdftQ6WfXHR2ZPd2xs/ODU5eFNVJ2pCsyEuOhEtiAyayDxiSRmVb9BwujCtmr076DNJW4Ld6HbmpinLzxHhENnK4mQ6Ah+lvywFIv1jgNNhYky3w1Cz4g8QgN5P0kE/KbuZVCxJg== 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=pY/jgKi5WLsxoqyxlSfjeQrlj+5BQa+TecVjayMpLe8=; b=aMep65CihR9Oo9CLJHgQ3dVj02FOw9d/TT37FRLqCZ0P4wV7gKKkM7PQ/97fMCUWd8wExM7cEoWxbbtNVditOYVj28NUl7nINGeMLZxgy1HmYklohbv6JGw3n4mvNoHpgw47sN/aR5+gbPbQed23FZq7aocEdZaz11QBvFUMxA0= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by PH8PR10MB6313.namprd10.prod.outlook.com (2603:10b6:510:1cc::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.24; Tue, 16 May 2023 16:57:57 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%6]) with mapi id 15.20.6387.030; Tue, 16 May 2023 16:57:57 +0000 Date: Tue, 16 May 2023 12:57:54 -0400 From: "Liam R. Howlett" To: Peter Xu Cc: Jeff Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-hardening@vger.kernel.org, Jorge Lucangeli Obes , lstoakes@gmail.com, zhangpeng.00@bytedance.com Subject: Re: mprotect outbound check. Message-ID: <20230516165754.pocx4kaagn3yyw3r@revolver> Mail-Followup-To: "Liam R. Howlett" , Peter Xu , Jeff Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-hardening@vger.kernel.org, Jorge Lucangeli Obes , lstoakes@gmail.com, zhangpeng.00@bytedance.com References: Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0278.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:109::19) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|PH8PR10MB6313:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ce41290-f552-4a71-3109-08db562eb329 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1JYCfvzORn9lz41JRFgq0lB0t6qnkWWuy26dzAOJNqc+Cs+gairQwj7xspqThiLv81ieCaPvTTeN+VLDBR1ojAnMZU+vOVvI+qNBN6okAfJtLh0kIssvtl5+g1hEjASknM2faQanwTmNgIiiHMkGSw+eCi195ZeFYQ/a+EfCjqUsnRbrDCFFGE+LnYL1So5HcXPEwXnHdnHSpzl1ilnD2Ew4Ar11CbVpoAusKjO0/atMvc0luJ5Mwe+HlCAPdCVbkRXs0xtbJE1Owco4g/pNND9+tAQVEfI7d5WP00CX6zbL3gjddIuoPYtrqQV7BOwQroI8hOoEYlcuOm7wTZD0DcPxrcnlLDrB48D4UwQJ54HxL+YIWcEXpVu4WBzsTa5tplEHFVraYRCBxrkpJeTgxOYThlR7OGVTq3YdMUEHCjhqUYapsi5yV5uFSnqcQxq0YQgMJrhC0nmm7NO50fEk3NfPSrLj1tsXYlhv0DAjEuYyu4hkrGwbpWgYBFTzANUnRy9w1h2Hbo2x05J01fPJH70HSpUZQM+ljhlHAlrLM4IPjSyJiap5gP22UdO731gU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(7916004)(396003)(346002)(136003)(376002)(39860400002)(366004)(451199021)(38100700002)(33716001)(86362001)(7116003)(5660300002)(8936002)(8676002)(1076003)(6512007)(6506007)(53546011)(26005)(2906002)(9686003)(66556008)(66476007)(54906003)(41300700001)(6666004)(186003)(4326008)(316002)(6916009)(66946007)(478600001)(6486002)(3480700007)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S094UTR1SnE0OXM3NFZBaUpVYlJXZlF2dUV5NjRsbjBTUkdHdmg1VEUwcG1I?= =?utf-8?B?RFRRVFlUU2dnTFlHanY5WjFXOEZSNWJZRHJoWFpaWmlZd0pGdTE5eDE3MWla?= =?utf-8?B?SEJQTmljQzNFbmlUaEhyZ0ppWURESXZyWjhWOHZFZnJYQmUzbnh3aHBjcm1n?= =?utf-8?B?ZWJaL3VQZ3QxRW9Ba3V4WHM3OHlZaklVQXZJQ01vRzFwSjRpRm1CUGJ3ZURS?= =?utf-8?B?RHFqUXg1L2ZHNlV0Z3Q2RFRjS2dSN09RbmFBZ05wTXB0TG1KV0VLdnp0U1lW?= =?utf-8?B?S2VLaEZXRHlOYXRKY0xqZy9qajJWb0lVNko4RlhEMGg0N1VhbkxUQUlBbDNn?= =?utf-8?B?YTA3SDhXYU5IdE5uTjJFNXh4M095VGJIUzZ0UTB6VVhZSi9aTEZzREJlUEt6?= =?utf-8?B?by8zOUZLL3JQdm01NFhEU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dG9YVWh0QU1MRHNBQmtDU3hYK00wbjdmcXEveDlTNXZE?= =?utf-8?B?b2FoeTJlYUdub25oRmZva1RaWDBYeXd6YlhDTDFuQ3RTdGdYaEdyaHBaZDR3?= =?utf-8?B?RlQzbk9HMFFRVHd0Y090VjNVZUlwUXlUcHpaQ3kzRkFWeEt5YWNKaUR1Y2Y3?= =?utf-8?B?SXdmcUhsTHZEbEdiMUwrT3FPUlg3U2NEMnppYU9zbUlDU0NNNytkOFFKaXMx?= =?utf-8?B?V1Q2ZG9TSUpETTJBUGg2U3ZIYmprWDZWam9kMFMwemRjUkhVL0FTYXlMUGcr?= =?utf-8?B?S0JXR0gvV2pGbTA1L1N0Z2orQStna3JrdTZsTDZxTkxJamsraWF1U01Cd25T?= =?utf-8?B?R3R2L3V2NWIzZ3Y3MTQ4QStCdGFCSTZaa0JlTVp0ZS9zS3hvTlpUcituaE1n?= =?utf-8?B?NzduYkVXZHhaREhwOFVKS0Z5VXJ4SDZmWDZTZk9SeVpDd1Ridz09?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ce41290-f552-4a71-3109-08db562eb329 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 16:57:57.8454 (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: JWWr4FdLqYyxCK80V/zd/DNxjtTsx2Ffq/irLl0R7PIvKf4fxFIS6YFdGe0B6TXxptDefrXF7iclFjLy50Yrjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6313 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-16_09,2023-05-16_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=700 spamscore=0 phishscore=0 bulkscore=0 adultscore=0 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305160144 X-Proofpoint-GUID: mfhllBBJ8tDhINlsNoSEHdp-wI1xBNoo X-Proofpoint-ORIG-GUID: mfhllBBJ8tDhINlsNoSEHdp-wI1xBNoo X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Xu [230516 12:35]: > On Mon, May 15, 2023 at 06:41:35PM -0700, Jeff Xu wrote: > > + Peter, Lian, Lorenzo > >=20 > > Is this related to this hotfix ? > > mm/mprotect: fix do_mprotect_pkey() return on error >=20 > Doesn't look like to me, that seems to only avoid replacing an error with > another error, rather than stop returning error for any case. >=20 > AFAIU this shouldn't be intentional, but Liam could correct. Maybe a > bisection would show at least when it got changed? I did not intentionally modify the return of mprotect for this case. As Peter said, that change shouldn't cause the change in behaviour you are seeing. A bisection would help narrow it down, as it could be changes to mm/mmap vma_merge() and friends. Thanks, Liam >=20 > >=20 > >=20 > > Thanks! > >=20 > > -Jeff > >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > > On Mon, May 15, 2023 at 11:00=E2=80=AFAM Jeff Xu = wrote: > > > > > > Noticed there is a slight change for mprotect between 6.1 and 6.4 RC1 > > > > > > For example: > > > Consider the case below: > > > 1 mmap(0x5000000, PAGE_SIZE, ...) > > > 2 mprotect(0x5000000, PAGE_SIZE*4, ...) > > > > > > in 6.1 and before, 2 will fail, and in 6.4 RC1, it will pass. > > > > > > I know that munmap will accept out-of-bound cases like this (because > > > memory is freed anyway). > > > > > > Is this change intentional ? > > > > > > Thanks! > > > Best regards, > > > -Jeff > >=20 >=20 > --=20 > Peter Xu >=20 >=20