Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36924609rwd; Tue, 11 Jul 2023 07:22:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHs/d8A6UNI1LIBDAbdtkrUtTR1mpXaN8awA7SishIf0a9JC2I6ljpi2WhF6o7RZpCPLRPf X-Received: by 2002:a05:6402:78c:b0:51e:f9f:460a with SMTP id d12-20020a056402078c00b0051e0f9f460amr14351103edy.4.1689085338259; Tue, 11 Jul 2023 07:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689085338; cv=none; d=google.com; s=arc-20160816; b=IFbYfAZe+R61uQW9lC42WevfzuJAJqerfIQya0hqrDdGd/KofH3ZHy/zGgIHerr1mT B8xYduv8DVGwdqk1luqt0u+gadTmoVXELdf3lOAaQB2cweNHCTKOnezDehas5r0QQMLA fYuw3UkAaKNQOZej3JsM7mOZ9NLcLBps+IpcCLjxkaci+i6aidDnU/VvOyiImvFwpyo6 R8PngolF71wxgH2JPppFT49v19Yk1e0U/KJDueL4567K68VlqHxN5Lkh09WAih8KukLq 7BMODk+v8cmd/z1gDBcS5goggX51D2QV+2nO98avj8KRsWs0fDFp2bBspViCpYHhfzQN pI7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L1fbuyyHBhIuF5nyqzFugyaIZTJIbSDFsHroF6nZIpo=; fh=Uj2UHtw5GDLHeK2FjF+BhrkYG9vk3indUO6ASwnaN3I=; b=iAEPEzgQYVibaMM3xrzlQA1Z26OJqB4nl7YPMOfvlYHdBg6WdgyIUtECkgh1b9Ufgx FZSSZvXQo6QyFb4G9RFUn5xWZSptUI1gy71xa1KGq867pGeLZ7ne3yjFpK5FwKP76lHz kX982CySU5AyvyjaqxzgJlw72Jm+xd78Vs+YdM+IZQOJK3GQ0NN3VHehq88osW5YaCM9 0jaB2nz2K0f99K/dwjCS4xIJVRzEDQUqiN1PHlDzzo8ILhLAP6xzxutVIu0A2f83aR9z pZJD4PxR3nSuVtKGoLzgHJyAvocvq6fYyWhCzwxrHhvGyAZeuVyzZt2q4K6+WGilnThS ECcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=juJrc22D; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020aa7c3c4000000b0051e168e63dasi2350894edr.450.2023.07.11.07.21.53; Tue, 11 Jul 2023 07:22:18 -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=@linaro.org header.s=google header.b=juJrc22D; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233465AbjGKONP (ORCPT + 99 others); Tue, 11 Jul 2023 10:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233478AbjGKONB (ORCPT ); Tue, 11 Jul 2023 10:13:01 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B837F10C7 for ; Tue, 11 Jul 2023 07:12:58 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4fa48b5dc2eso9103087e87.1 for ; Tue, 11 Jul 2023 07:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689084777; x=1691676777; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=L1fbuyyHBhIuF5nyqzFugyaIZTJIbSDFsHroF6nZIpo=; b=juJrc22D1McA7Im8Wop101SrFYgYCxmoJMdwXAA2HuChKSpq+tQn/+57iCG4d1hrXk es2Mb21nVJGQ61u5g3xBFc72OGq3mU7DGiAG1mZnklLQFIWeCJCsD9HGmyV6NsaJ++Oi g8W+zN11ZrCvaxwJONFUYBbLpfyQi7nAIILlLcVDdO0OUYY2MVgvXDkvxGBahYF33ZWz AldpviSQurwxLi2a6eYkiGS2IOUHz6fqCfP4XeJlf/aD4P/roJkZnbRBJDvI3e6YLoQS P1QcpARO4VB1ij+NEcCEcOxoLBJQszZHLoCpQAWTfny40MWZj0vezCqar2T6vZwQqSlf WkzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689084777; x=1691676777; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L1fbuyyHBhIuF5nyqzFugyaIZTJIbSDFsHroF6nZIpo=; b=NR5tQ9ZD6ejOjXYCqq8ZXJ8kD02WtrDcEw/4mSQoPRnD6qeo8XKcaL6IojGqv+kRlJ 7VRgUvXLPmamZ1ScSzxVtlfEKPPqHKVMgWLqiLXrhNEj8g0MLBZu/Nxwl8LqTpM0RpA/ 6unTyvJtcbWq8RdJJiN1yxS9HDX+5R3rqyCHtQirWqtK2fxKElmqKqzZgkv82Vt4bJgz 1kb6TEhIXScd+1lW8H/RHIO84t9FKSJ5bItEbPjIT0u+qz1NI5/lCUWgGa/4Lifm+FOL Td8MsehK+9ceRC/EcaJZUgioZVyjc5fwfWqiIBvIBDfqLpBPWPOrn+msisniqLUD7LzN EJhQ== X-Gm-Message-State: ABy/qLZg48qwva2b8/xhwAv6ZTN+zlr251305nBNLkO+fzkncL20Sj7I yqQSjeYJOKrrfCWWzTvDj1ot/Q== X-Received: by 2002:a05:6512:10cf:b0:4f8:6882:ae9d with SMTP id k15-20020a05651210cf00b004f86882ae9dmr13955377lfg.69.1689084776917; Tue, 11 Jul 2023 07:12:56 -0700 (PDT) Received: from [192.168.69.115] ([176.187.194.156]) by smtp.gmail.com with ESMTPSA id c24-20020aa7d618000000b0051df1797222sm1322125edr.11.2023.07.11.07.12.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 07:12:56 -0700 (PDT) Message-ID: Date: Tue, 11 Jul 2023 16:12:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 2/2] KVM: s390: pv: fix index value of replaced ASCE Content-Language: en-US To: Claudio Imbrenda , kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, frankja@linux.ibm.com, mhartmay@linux.ibm.com, nsg@linux.ibm.com, borntraeger@de.ibm.com, nrb@linux.ibm.com References: <20230705111937.33472-1-imbrenda@linux.ibm.com> <20230705111937.33472-3-imbrenda@linux.ibm.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20230705111937.33472-3-imbrenda@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 On 5/7/23 13:19, Claudio Imbrenda wrote: > The index field of the struct page corresponding to a guest ASCE should > be 0. When replacing the ASCE in s390_replace_asce(), the index of the > new ASCE should also be set to 0. > > Having the wrong index might lead to the wrong addresses being passed > around when notifying pte invalidations, and eventually to validity > intercepts (VM crash) if the prefix gets unmapped and the notifier gets > called with the wrong address. Can that also happen in crst_table_alloc()? > Signed-off-by: Claudio Imbrenda > --- > arch/s390/mm/gmap.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Philippe Mathieu-Daudé