Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp830510iog; Wed, 29 Jun 2022 11:04:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqen4SCaceJCiVVuBBzAvyN844CvmqfDIJjUnP6SbP8SVlUc5Um+YXub4lMQvrtrSEGlkJ X-Received: by 2002:a17:90a:5515:b0:1ed:50e2:853e with SMTP id b21-20020a17090a551500b001ed50e2853emr6902630pji.41.1656525859901; Wed, 29 Jun 2022 11:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656525859; cv=none; d=google.com; s=arc-20160816; b=p98725UqkW2siUm7ukyuI1wrkDhcGBXSOL49IM0J+qGRMPwj1gNVqV60cIixiamKZU u1uqnELwI3ybHKgdG4hGPZKIKPQ6k/5S0fWzlzuAnBYhANsyIqTR8tw3okDxqfqrJLdl spcn5rNUzpMvbRnyemjs8dW6HoibMkvRcMHifEnGH2gs8SZQS7o+4Cg/StduCjbV4zB8 gS34QbJdqPLxfH7VONNbcGJITgU2sm98XqZA4GJLPOdq2gLbqxYLQ0jqLt9DFUglOiU9 B4vlAo7mEnGj8U3azabbVrPIceg/nQGEMENc2o4E3WlCrh3wrJMu4fbgRImMuncG1Ktm hE1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nzpFb7EApUekHzpz3mO22Jl6tEsl6h0iB+dQdHcUEUw=; b=DM6io2+RT0pKTSd6jisrgCHGnnPrPz1VpFF4U6rp0EvQBdVq0oZpOoFX1mMH30q6ep k9k0fGobA5wXC3wbTrC+bb1NJ2zw6wqVB5V1LmQ1JaWxrf5ynGlh6ZDM+MZJEvf0ej3D dTHS99aGwUysryDzxSdTzx2khfaknQxZaOFR8fBr/463Z4nzw+xIj+t0mE5G4HGfbyH8 rvrqoKjBPMY0rNW3NMoVW8L+2uKfBwvf8Qr8L+iTQ52vzC1xs5SH4v/PNXsClkKB9tEh EyPRont83NJ6Qq2/M9xa5fQ606ZZqc8V5/JPbUCr4vYEH9OPK+OYEQzsT11ThWg42Xtm V4DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="VPJ/wvyO"; 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=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a170902e74c00b0016a0eb1e176si23347232plf.279.2022.06.29.11.04.04; Wed, 29 Jun 2022 11:04:19 -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=@zx2c4.com header.s=20210105 header.b="VPJ/wvyO"; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231346AbiF2Raz (ORCPT + 99 others); Wed, 29 Jun 2022 13:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiF2Rav (ORCPT ); Wed, 29 Jun 2022 13:30:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2EDA33889; Wed, 29 Jun 2022 10:30:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 82541B82603; Wed, 29 Jun 2022 17:30:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71CC4C34114; Wed, 29 Jun 2022 17:30:45 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="VPJ/wvyO" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1656523843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nzpFb7EApUekHzpz3mO22Jl6tEsl6h0iB+dQdHcUEUw=; b=VPJ/wvyOk175tYD7uLJCskYvUM++WdD2Q8q1cq1VMFHK01Jh1ZstEAYoemSUPZw6KujEnR TO8VJvBEnfyrWsVFn2G2gU4AHtJxk9XaYZZT06QTQ/GFQCrJRa63QU9Mb8PP9Ndq2m7sKf re0GdWfl1nLiTbfyj0jhUSzzeL2qBZc= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 146d0254 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 29 Jun 2022 17:30:43 +0000 (UTC) Date: Wed, 29 Jun 2022 19:30:35 +0200 From: "Jason A. Donenfeld" To: Greg Kroah-Hartman Cc: Christoph Hellwig , Arve =?utf-8?B?SGrDuG5uZXbDpWc=?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , Theodore Ts'o , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Alex Xu (Hello71)" , Paolo Abeni , Rob Herring , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Shuah Khan , LKML , WireGuard mailing list , Netdev , rcu@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] remove CONFIG_ANDROID Message-ID: References: <20220629161527.GA24978@lst.de> <20220629163007.GA25279@lst.de> <20220629164543.GA25672@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jun 29, 2022 at 07:19:36PM +0200, Greg Kroah-Hartman wrote: > I would be totally and completly amazed if there are any Android kernels > in real devices in the world that are not at the very least, based on > LTS releases. But maybe there is, this patch series isn't going to land > until 5.20, and by then, I think the "define behavior, not hardware" fix > for random and wg will be properly resolved :) Properly resolved by whom? It sounds like you're up for intentionally allowing a userspace regression, and also volunteering other people's time into fixing that regression? The way I understand the kernel development process is that the person proposing a change is responsible for not intentionally causing regressions, and if one is pointed out, a v+1 of that patch is provided that doesn't cause the regression. > > > > In the meantime, this might actually fix issues in desktop distros that > > > were enabling this option, thinking it only affected the building of a > > > driver > > > > That sounds like a false dichotomy. It's not about "fix Android" vs "fix > > distros". What I'm suggesting is fixing Android AND fixing distros, by > > looking at the problem holistically. Trading a bad problem on Android > > (wg connections are broken) for a manageable problem on distros (something > > something theoretical warm boot attack something) doesn't sound like a > > nice trade off. Let's instead get this all fixed at the same time. > > Agreed, so what should we use instead in the wg code? What userspace > functionality are you trying to trigger off of here in the current > CONFIG_ANDROID check? It's systems that go to sleep all the time, nonstop, like Android handsets do. I'm fine with a compile time constant for this, or some runtime sysctl, or whatever else. It doesn't really matter to me. The only concern is that the Android people are okay with it and enable it (and that the distros don't enable it, I guess). So whatever they want is fine. Or maybe such a runtime indicator already exists. I'm not sure. But I think a v+1 of this patchset needs to work that out in one direction or another. To put it simply, - I highly suspect that this patch will cause a regression. - I don't have a ready-made solution offhand to fix said regression. - The submitter of the patch, now aware of regression potential, should look into not causing that regression. That seems pretty clear cut: you're welcome to improve it, but please don't *intentionally* break my code. Jason