Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1140774ybj; Tue, 5 May 2020 13:59:29 -0700 (PDT) X-Google-Smtp-Source: APiQypL2qJPyQ//BiEevPLPFwCQeDbzlcybFciQLnJwB0sf+fwyFZO45Y/2vgNT6Vo8+C9VCgZ79 X-Received: by 2002:a50:f005:: with SMTP id r5mr4074005edl.376.1588712369419; Tue, 05 May 2020 13:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588712369; cv=none; d=google.com; s=arc-20160816; b=PLwzLECE6irieqf/3OBLoUR4v6E9V0B+QT0II9GxNSZFWRb5dfs95JgdLyGCGug9Fo szLeLA3GJIYc/fMF4UdzmpNKZkRvw3HgNYFoV/siDfumtwDw2/+7aXbkyjgbrH+D8kAb VlIiN2mkikp/W+RO7DVmTxHvjkRKjjVjBgQgz1U6xy97EfLerAo16oxB4p2rklDNRZQI isNm8z+CeNHUyziOs8ZpAPCyawz3lY6ergcOCLDlAP1EuTYXqFlT8U9hpBFStodkkVs4 F//8CfhyfwmzpRkLkjszZDqnLcVN0ydJAuC0XibbMs0Y7d9JAUEsf3bqjvKSSPfO9Xbs ehig== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=hhO8gCTmFTIhaOVGmwv6kViZ477KzgKOsqAaq8iQFww=; b=hxvVcDPg3SLmrHYbYQJOijcZnfBAesYf+Vpg5CCV9nAkGAqXZcLgHS+o24qQj/pkcP B8eCceO9BGdS2wKRd+Vmj3m0PpuBWCCu1QkDNCXZEHTeoFrofV+puA47hGtU3F+YOoth hEFHAAIOo52Qnf24HSIBh2QbkzrEHAy1s9lZHmDPblnNeEOAO59VuAP1yYOak3PkmBKd jyImpGRehuPgDnrbixeFngpe1+Jq4hX3NmsuP0YUncq7m99YqGM0B9Jxq1ptSqm9yPiV MBaQyGt+/w2JG0QuagwNRfPQylP8HIDgyuEENqIaRhBA2evtJgDgSe7HK+LF31sOeAUo hyjw== 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 o16si1706930edr.91.2020.05.05.13.59.05; Tue, 05 May 2020 13:59:29 -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 S1728609AbgEEU5e convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 May 2020 16:57:34 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58167 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbgEEU5d (ORCPT ); Tue, 5 May 2020 16:57:33 -0400 Received: from mail-qv1-f49.google.com ([209.85.219.49]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MDhpZ-1jOgV11f6N-00Apkm for ; Tue, 05 May 2020 22:57:32 +0200 Received: by mail-qv1-f49.google.com with SMTP id h6so1773026qvz.8 for ; Tue, 05 May 2020 13:57:32 -0700 (PDT) X-Gm-Message-State: AGi0PuabuCGV0xfIwfAB4IKfMrtwCfapv4AN2wjq5mWVTPc3qEj7h2mp eCB0SmgjmuJ/Poh5SgMGKXNILtsn21HpgBdsr5I= X-Received: by 2002:ad4:4a8b:: with SMTP id h11mr4439312qvx.210.1588712251082; Tue, 05 May 2020 13:57:31 -0700 (PDT) MIME-Version: 1.0 References: <20200505141546.824573-1-arnd@arndb.de> <30d49e6d-570b-f6fd-3a6f-628abcc8b127@suse.com> <48893239-dde9-4e94-040d-859f4348816d@suse.com> In-Reply-To: <48893239-dde9-4e94-040d-859f4348816d@suse.com> From: Arnd Bergmann Date: Tue, 5 May 2020 22:57:15 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] xenbus: avoid stack overflow warning To: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Cc: Boris Ostrovsky , Stefano Stabellini , Yan Yankovskyi , Wei Liu , xen-devel , "linux-kernel@vger.kernel.org" , clang-built-linux Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:4ulp0f5K9CPkflqn5Kg/msj90NrX+jG/SnIimflwT4UXEAWrwpw yas2Cc9AYHLUTlAgZawxedYfFhn94aPHlljlfYHQ98h14iCc65fHdbsK9e4lXIe896We8IP V4kPnTJpmUK3kS9DR9MeLpyZ4HBuCYxNg/OpwuXwJ0M/rH6n71FRFYaTaOHtybd06A8hA/X oRBZH7VI/gARXXtMrNTAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:1bzlBjUMUrM=:TMLIdk8FkoQ56njjAu3Z5X DSIPLnbwlichn9tOx7iCzV3Seyo+RZzJQ26KV+DmBXAavMWLkgnoaTL9GLxcHwNduyuvwH5z4 QDXxGdkgSYOM/6F41oqJZfdWfhcsAPxcy3pqL0s05N9Hit0OIpVKXWGhpUyD+gVro/MsYzdLq lKOaYFtsie1pfeWVR51cQf8hjnQGteh4ZVLUMPf1srd0R2EUTKqR750Q+oaYd44pIQbbfcN+V rQEGf1And3U0oPGtunSj6MmzQg/2NO0sQFZ6wVElRdxliZsuBNo8h78m9+Fj//mV6bTJSmFOY fPsSLY8neLCgq+xr4DnSp/92qDRKrRmEPisRO1zRt/yhEabT8qvMeCHwmsj7vQbyeyomY2bee MVTsOspatAPjkBzO6Bt6RU+0pV1mY+FjaC5Ak84t3KCBidB8Kb3yJRnxFeoRNtntlp/uU7RHN woNkyB3g1q4hs14fqhzsK7CcCAtrvS4LbcFXMhEeELAIj899PQ1XCf2uR4wPlrukRdYdwhYt6 gY36pdYK8fdY5uI07RVVb8EBEFDmaEIUoQYcrXuBnRWsFKG7K6FJ5z1glCfzky+ZbRwuzfJMb rutSNawfpWDPkWMXA/SnTmHqd43lekWMvPNZID+rqkdCZppMX3oDgPnsmHVaH+QShcHaX0hXp n+6/Mi9fIOsDbPzW1s7e20h6+3pdnsrE0EIA7cJrz1o2xvCronWHYL2wzi63xMqCjfC6N9GZ+ 69hw8vUnjVbryZQnkOILszXTkDwrpeCSUTVqKkEXs5D5Y49CTf5YZpP8oMAdVSDf0eS0/LRDI jdgDvjQsGoUH5LwdFer+C7fuNOxmS2Uh0ed4IiUJW5j/SGgGGo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd