Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1473613ybj; Tue, 5 May 2020 22:14:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJqHHj5wBMK2qgzDCFmaw/SCCyK3HyUDgw1M/cTEA8vGTYQiAowgoeNlKmZfKMIG2gOjjbz X-Received: by 2002:a05:6402:684:: with SMTP id f4mr5632956edy.240.1588742098678; Tue, 05 May 2020 22:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588742098; cv=none; d=google.com; s=arc-20160816; b=cmNwZ8OZfZ4FilteaSLzVFDeCxgQ/nPhlkEtQ9ady1BkBRx5Rqz3UOLcuWpbgOxP8d 7qhXDzeFSOi0k/4ZosJrLNK1PZsYovl+/Jo1NlSp9ORTwI6/jfUmh7fwVDHW5ov5bqP9 Uiysqul7+a9F4lpfJEc+tv5jE95iBYNTzrMM7SvQx4OmZz/FNt6K13PWQQHINckAxgFZ l6zH22REMjYiYbCuzGZS5aH0vxVZBEvvMbjQ9FO4csyGhhWh92AJsWzQlww+vgQumouN TIYBpUiq73wknA9853kFI16RW96QJteXedHAtstmnVg+5MPoMdufOEHex0LEHy5X0m9S ZnCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JoGM2iRCcXsZ7Io0zIqBIyCQ0FZFgv/pAg8BJU8B8Vw=; b=pMGRH6MU8dOTOG8SDSbSlIx5xmU5IZIoHcmMaw1QXPwyXSswNym2Ly2YlCgC0Xk6Jz TmLC9D43w9++DwSYZlwmP9KwDLeJA4CwXi3TRJL3rr+EHAGmUdlGXaAbDdieyj5NBNhj 8YC2ba2yePzLSa0VOinGOWGD8HarfSYetdnXKl54va7FXtbcRYyLV++h9h7HogdlfoAh b8cuYtmFvHNeKh/OPsEHtD2s2JUz6+eEhscE92r7JW15WJsbrLgyce5X12wsGjJsH7al N5AFueB6jtnjsueu6oFTwdnJVeo+1Q6NnGMxZwOC0zQi0b4hWt1ucJjvUpLFxxUt76Lh pktA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si501378ejs.504.2020.05.05.22.14.36; Tue, 05 May 2020 22:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727119AbgEFFM1 (ORCPT + 99 others); Wed, 6 May 2020 01:12:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:59278 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgEFFM1 (ORCPT ); Wed, 6 May 2020 01:12:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E896DACD5; Wed, 6 May 2020 05:12:28 +0000 (UTC) Subject: Re: [PATCH] xenbus: avoid stack overflow warning To: Arnd Bergmann Cc: Boris Ostrovsky , Stefano Stabellini , Yan Yankovskyi , Wei Liu , xen-devel , "linux-kernel@vger.kernel.org" , clang-built-linux References: <20200505141546.824573-1-arnd@arndb.de> <30d49e6d-570b-f6fd-3a6f-628abcc8b127@suse.com> <48893239-dde9-4e94-040d-859f4348816d@suse.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <2c6e4b36-6618-1889-55c4-16eeb1ef6f57@suse.com> Date: Wed, 6 May 2020 07:12:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.05.20 22:57, Arnd Bergmann wrote: > On Tue, May 5, 2020 at 6:02 PM Jürgen Groß wrote: >> On 05.05.20 17:01, Arnd Bergmann wrote: >>> On Tue, May 5, 2020 at 4:34 PM Jürgen Groß wrote: >>>> On 05.05.20 16:15, Arnd Bergmann wrote: >>> >>> I considered that as well, and don't really mind either way. I think it does >>> get a bit ugly whatever we do. If you prefer the union, I can respin the >>> patch that way. >> >> Hmm, thinking more about it I think the real clean solution would be to >> extend struct map_ring_valloc_hvm to cover the pv case, too, to add the >> map and unmap arrays (possibly as a union) to it and to allocate it >> dynamically instead of having it on the stack. >> >> Would you be fine doing this? > > This is a little more complex than I'd want to do without doing any testing > (and no, I don't want to do the testing either) ;-) > > It does sound like a better approach though. I take this as you are fine with me writing the patch and adding you as "Reported-by:"? Juergen