Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1691297ybj; Wed, 6 May 2020 03:33:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4+aperlQvglAH1O9BlunehMrMFYMbVee//jFkVMzIKMeloB94fSqcpk6sFwHldr41sYNS X-Received: by 2002:a17:906:4310:: with SMTP id j16mr6937623ejm.102.1588761220949; Wed, 06 May 2020 03:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588761220; cv=none; d=google.com; s=arc-20160816; b=kEBDx8jI6x/z20TkEmewiJMJuevCqL+i72wpYK1lA41319kh0lQzeHVmGh8/T66p7V GMDrgV2k9A8BQowrtzaQCgef1Hvh3qCGUhEbPzS/xe9TmK3RL/m4V5wlwTUyUUzVEVsH iqBXoIBDYOt24aXcXogMTW/aryVyxsh2FAYxu/gw0YcuHNqAvxv7/eFhWSG3gDP/hGYd Z6tRd+C2kCXcKUTmN5wIzx+sZrfBTe1p+93fHl5TURNHuf4BdsXDc9nLyOXUDFF7ovwJ VxTRz9qsVKZ6Qlu+K85zdmH+wnXqKAF3L/1vGkhFP0z0e7mipASQpTZvQWKtT9gGK1KH AS/A== 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=UhvvlEuo06e/TPMDKmRcCjRTxYsphBK89xtEDBqO+sA=; b=zS4O3ztQqktlidCGcrEDskbN4aVVGswuIla+vLvb/H9B+un+4SgGfQfEwjD4vbFky5 SaE6aikeLGKEI4+mu3xrVnxsd0X8MZQg3/pHTrWNSaGaNX432K511jPkmvQZ3H48MCYv c1B1/ahC9g8Aug6tQ1lj/Vltpimthsj7xfD90436sILeQl4x0IPB1UjQxaY0eF/pnQCI cCHr2Ck+g0wcPVD+GiKqej7H12NhTvacXWZosmWgN7aPYtNZE/av+AgQM+Jollm144+j XMk3z8vWJg5qaEoqOXrjfHzEkXUnIqm3+KH6egPyGXhPxQ/2Ay+BUcWCQUhubpQBzbXN EZUg== 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 b24si789518edr.338.2020.05.06.03.33.17; Wed, 06 May 2020 03:33:40 -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 S1729128AbgEFK3I convert rfc822-to-8bit (ORCPT + 99 others); Wed, 6 May 2020 06:29:08 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:60075 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728338AbgEFK3I (ORCPT ); Wed, 6 May 2020 06:29:08 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MD9Ox-1jNmq203jl-0095nl for ; Wed, 06 May 2020 12:29:07 +0200 Received: by mail-qk1-f169.google.com with SMTP id 23so1354370qkf.0 for ; Wed, 06 May 2020 03:29:06 -0700 (PDT) X-Gm-Message-State: AGi0PuZ9rqVWW2WDFNBR01tVoBGyKzybHwIZcCnfLwH67ZnSUOGZhZam TgjTtEczLpTsqEagNizFu5gV4hkb23YBInvh3gI= X-Received: by 2002:a37:aa82:: with SMTP id t124mr7608771qke.3.1588760945935; Wed, 06 May 2020 03:29:05 -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> <2c6e4b36-6618-1889-55c4-16eeb1ef6f57@suse.com> In-Reply-To: <2c6e4b36-6618-1889-55c4-16eeb1ef6f57@suse.com> From: Arnd Bergmann Date: Wed, 6 May 2020 12:28:49 +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:6DGL6ePIVowI5ADFNHUf0pHfFmh8vfXmng/tiZDheNg7HItF0uc V9nFJQKI+OY2IlkhsI7Hg+n9znchrD4Rr9BTtD/njpbhgTu27mASA5TBwweXNBc+J6cimPH uMqIENvy722zYcx95zageDUmQhf/LYhYl3J991l2fQx0+PlgzvDqOxztW6qvZQqFObhqzwU 2gImdXAy6zEhlhVvb86MQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:by0lQNdOh9A=:5m76rTrjSeCd3UnHmfkMOI bwZzCevCBF83rtZveOFMlMJoAi+PsKryA6m6jco2p0tRSrlhdeSTit+hlvQFPebx2vTOqO3eN OD6NwInbLRu3WjwloYAGZu65f0FKMwNB2KpAmniVbg+0+MVWmOmZRzHhbs7lMIXRzWUSYCtmb sJH/QMKcCWRlC4xEHcuOhNenW7qdndX2gjZrYKXma8JChmJUst5wz1J2Wa9IKf9BYXOlWvX+I jE4GXKGhbjmKPnNVgvr8x7tDK/3hzLfb5DUDAOVxC+Gp1AHbMB3Gr1cr9nlQtbsAvXDf+EXLk x9Ud7VHYeBMolir0yPH1Jss7sWU3TBWGZbpzy830p7dzCq8q4RANaRywVFsSLXkuevPsWbK+a G6pVbeyXP5qROdik6eRzoz3fnlVD9RSuLOB9teXqjxI8Vz9sFTgQlavfWd95XYyajVKPLe0kl kCukU86c9YY9jIqu0MHGBXV7HjZh0WnCjZAC5jokWs9WS/jt2QMYuVIpn+tmfiqaPntMaLPUt J1D3+6RzhwIn88A0uya04Attp6KFJBOaqJJa/U+4XGU0/LL5z9L32W0/Rdh/vA4BfH2IPUqbp TFKCJPWBxTdtC3LbmAbqdHgtmlWm4nGUNuP88q5aQvffpiU5lHvv2zJuECcgqSEoprkWdLLEl eH8VieVjDKwlTXLopLR8mjDuV9Uqavn17miO+6YsobwUWOxu5V5WcHQYEqRqyPGl0jOz5PyN2 kKK9+3fKufbLEr9WveEaTP6TkvqIMw2i7lumow18lMOxXFr5eZx3uXiKx4c9yYM7LJuAvaT0q 6v/IZbYodTHLnEBarc8KAhPr41LmueiIFppLEn9mm8Iv3qDA2s= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 6, 2020 at 7:12 AM Jürgen Groß wrote: > > 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:"? Yes, definitely. Thanks! Arnd