Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3258770lfo; Mon, 23 May 2022 00:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxewQmgyToy1hOEueq1jtkjGDGBUffqz5WsJMmoEJ7r51O4iB5NMOtFj6TrFV27a2fdhrqE X-Received: by 2002:a05:6a00:179f:b0:518:704c:4e20 with SMTP id s31-20020a056a00179f00b00518704c4e20mr15236510pfg.79.1653289863498; Mon, 23 May 2022 00:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653289863; cv=none; d=google.com; s=arc-20160816; b=t8mO84YBdH2A4IlnF/bVta6xfQts86ZpT+gAVXmuQjAgrWmprqJ70L7YIAOByJocuk UgoUs2s5q3GMb0/BdbSLAmv0DKXnlTuttBSJ5GRS1MEHtYkhlTVVskQ666WFA80NEe/P IF6ntKLwteauwk+U5K/DxO5J7cUfVQQuxKx4/EcBJeHuRUSfLHgNrWb/dqVGjh6qcbXL 5FISqrUnqTtV9WWFy/Gw3+ARRJ1py6GS55FDo3IF1aXsNujca3cEfzhAdxjWfobE7hiA WTr0alzXuyE/vnnQB+ujVhC6wlwZIfjtkYhr6ovVMFmuM96sresWk89AlWpi4Zy8BV1F hQ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BuCtCZCdrJS/y+CQKpD70xnFhNxF3fjbwJKHoZ95Fdc=; b=vKPryNkLE/oPrTDM2XlFrn4sV2ygZcRT/cCylO1hU40J7jzs0qh5KbfGr2ZLOCgoP0 5eGeg7WPv020ZIAbXcVN+gEcc75if1hBmF6ftvFo3Ftwi8e2bPuDy9IioTVw9egHwjpa kVy479FP0TPfKtirsgIJAJWisOFBt2S1W09i3vp2KhNFBsponPJtNVg8Av4WD9LejhRM v2Y1tS6c5+EF5g33iHMfU7gfHSnHYFgxZ/p2xFxX5u1pUC47744pzTOh7CvykHR9Obpp 4/s7Zcvzn5d5jG+LvfQ694DaCDJ/hJtR65MadQV8sp9bjW9BRzsIGr3FhyuGMXytTSzs lIVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tDxbB5ru; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bg3-20020a056a02010300b003c19e2b38f8si10573647pgb.421.2022.05.23.00.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:11:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tDxbB5ru; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A16AC36E2F; Sun, 22 May 2022 23:30:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347409AbiETQl3 (ORCPT + 99 others); Fri, 20 May 2022 12:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351792AbiETQlQ (ORCPT ); Fri, 20 May 2022 12:41:16 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9222E3879C for ; Fri, 20 May 2022 09:41:14 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id h9so982pgl.4 for ; Fri, 20 May 2022 09:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=BuCtCZCdrJS/y+CQKpD70xnFhNxF3fjbwJKHoZ95Fdc=; b=tDxbB5ru3oVKGVtQsTDutHZHvxcRTacKjSv99gXw9CPhvIBlSTOeJiqcuLe1OhZAzm O5WcGIY1H8CCdUVPzwA8JVMpEkPKYAZKY2cyNlqH+WunBb/v1hgrCxDnuBC7VujAVVG2 AiO0tdxIQ5yN9uc3jas4CBnj86ucfWD1uYYsvfbTic203nmEpKMtaSendz/7lPUdBuvg YcpxTfZMGB4aj6wUn7+qzJ97F7LJYIIBZOHoqNI0n/KqAsRFki0ezfLFLqTf55Td/YO7 r+02TBv5nkt6yAUmDrYv9JBLrx5VFvb90yjOayTVZmwEbM2MmJ/06KHFYPm+MaGHbEBH 021A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=BuCtCZCdrJS/y+CQKpD70xnFhNxF3fjbwJKHoZ95Fdc=; b=yzmU9K91SySF5Eu5RP9mlViV6V/rKYNYpN7EMqO46QsPkVd0ML+cWWfcRtNOXvUzZd 97agVgHWEfDJGdhdTtG876RIYi5DEjlRyvrk4KD3zWFi7E27AWXBsftdHpnBGjYDCOd/ bUvRTmXWMkBR14gawWt9j8x2F0WlGO6j2qhDG8SiWnmfEbxM3uGy4J9854t2oQMBVBz/ +svwM7+0+z9IpckhyKsmP+f6VQNWGB7yQ9GYzkdt7BZyELFqjAl0pmWz3Fox7a11Vz4C s4L+7/+hV6uYkFOlSatwL1h+yHSicek6yYEDDrqwwndjYvAQPWrCi2NQu0yV5VtAdcbL BmUA== X-Gm-Message-State: AOAM531khbJgE8GvMhlcghd7jbfYJ8rvSEg9zDzUpXN8Uc3VXCvOrHvR KRRIZdJAmpZqsX0mXAHH1SXO9A== X-Received: by 2002:a63:115c:0:b0:3c6:cce3:8c12 with SMTP id 28-20020a63115c000000b003c6cce38c12mr9127106pgr.131.1653064874067; Fri, 20 May 2022 09:41:14 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id u13-20020a63790d000000b003f6ba49bc57sm1725959pgc.71.2022.05.20.09.41.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 09:41:13 -0700 (PDT) Message-ID: <247ac77e-15e0-8612-2507-7bbac80af824@kernel.dk> Date: Fri, 20 May 2022 10:41:12 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 0/3] random: convert to using iters, for Al Viro Content-Language: en-US To: "Jason A. Donenfeld" Cc: Al Viro , Theodore Ts'o , Christoph Hellwig , LKML References: <20220520094459.116240-1-Jason@zx2c4.com> <7e78d6a7-1cc3-2408-fe91-0329f5020e77@kernel.dk> <69bd18e6-d216-dfb3-201b-f6a285deb0e7@kernel.dk> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/20/22 10:39 AM, Jason A. Donenfeld wrote: > Hi Jens, > > On Fri, May 20, 2022 at 10:24:36AM -0600, Jens Axboe wrote: >> On 5/20/22 10:15 AM, Al Viro wrote: >>> IIRC, Linus' position at the time had been along the lines of >>> "splice is not so good ABI anyway, so let's do it and fix up >>> the places that do get real-world complaints once such appear". >>> So /dev/urandom is one such place... >> >> That's what Christoph said too. Honestly that's a very odd way to >> attempt to justify breakage like this, even if it is tempting to >> facilitate the set_fs() removal. But then be honest about it and say >> it like it is, rather than some hand wavy explanation that frankly >> doesn't make any sense. >> >> The referenced change doesn't change the splice ABI at all, hence the >> justification seems very random to me. It kept what we already have, >> except we randomly break some use cases. > > It looks like Al is right in the sense that Linus must certainly be > aware of the breakage. He fixed tty in 9bb48c82aced ("tty: implement > write_iter"). I don't think anyone is disputing that, but I also know that Linus wants these fixed up as they are discovered. And I agree with him on that, even if I disagree on the process to get there as it introduced frivolous breakage... > Anyway, it seems like the iter functions are the way forward, so this v4 > is queued up now (with a few minor cosmetic changes) and pushed to: > https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/log/ > I'll send an early 5.19 pull for everything either tonight or Sunday. > And then next week I'll start on backports. (Though, 5.12 is a weird > kernel version; I assume this is some Meta kernel that has its own > backport team?) Thanks! > Meanwhile, hopefully Al can pick up the splice.c sendfile(2) chardev > patch for 5.19, so at least there'll be some silver lining to the > performance hit. Let's hope so. -- Jens Axboe