Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA2ECECAAA1 for ; Fri, 9 Sep 2022 09:05:13 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.403946.646219 (Exim 4.92) (envelope-from ) id 1oWZwL-0003CQ-VG; Fri, 09 Sep 2022 09:04:45 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 403946.646219; Fri, 09 Sep 2022 09:04:45 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oWZwL-0003CJ-Rj; Fri, 09 Sep 2022 09:04:45 +0000 Received: by outflank-mailman (input) for mailman id 403946; Fri, 09 Sep 2022 09:04:45 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oWZwL-0003CD-02 for xen-devel@lists.xenproject.org; Fri, 09 Sep 2022 09:04:45 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oWZwK-0005UQ-1c; Fri, 09 Sep 2022 09:04:44 +0000 Received: from 54-240-197-239.amazon.com ([54.240.197.239] helo=[192.168.11.73]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oWZwJ-0007RK-Rc; Fri, 09 Sep 2022 09:04:43 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=dxdz9bYcxibHtpA4dSaMTjGhqAloKbcBGjdm6eAbM4k=; b=s7DvgpLK2mBYKww1vLRikMAUsf WiJROxtJatjIt0LRFqpRS+DVLDY+/bZ6zFTqarsq90/BzVGAFNpeJG9E6WPAGhHSYC8T5eJsd8IhW wsLVIlv6qmwSJMLfrLFVGVJaCL3ydS/N69IZ0TfAfglhCiqTUfBV7bhdekLwcUaveuRs=; Message-ID: <29e45aa2-910e-33ae-cdaa-be2f9e9d2942@xen.org> Date: Fri, 9 Sep 2022 10:04:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] xen/gnttab: fix gnttab_acquire_resource() Content-Language: en-US To: Henry Wang , Juergen Gross , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , George Dunlap , Jan Beulich , Stefano Stabellini , Wei Liu References: <20220909080944.28559-1-jgross@suse.com> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Henry, On 09/09/2022 09:47, Henry Wang wrote: >> -----Original Message----- >> From: Juergen Gross >> Subject: [PATCH] xen/gnttab: fix gnttab_acquire_resource() >> >> Commit 9dc46386d89d ("gnttab: work around "may be used uninitialized" >> warning") was wrong, as vaddr can legitimately be NULL in case >> XENMEM_resource_grant_table_id_status was specified for a grant table >> v1. This would result in crashes in debug builds due to >> ASSERT_UNREACHABLE() triggering. >> >> Basically revert said commit, but keep returning -ENODATA in that case. >> >> Fixes: 9dc46386d89d ("gnttab: work around "may be used uninitialized" >> warning") >> Signed-off-by: Juergen Gross >> --- >> Might be considered for 4.17 and for backporting > > Of course, feel free to add: > > Release-acked-by: Henry Wang Unrelated to this patch, but as this is your first Released-acked-by tag, I wanted to check the policy going forward. From now, will any new patch need your approval before been merged? Cheers, -- Julien Grall