From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E0C3C433F5 for ; Sat, 5 Feb 2022 04:21:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379233AbiBEEVC (ORCPT ); Fri, 4 Feb 2022 23:21:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiBEEVB (ORCPT ); Fri, 4 Feb 2022 23:21:01 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E93C061346 for ; Fri, 4 Feb 2022 20:20:56 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id v186so24501416ybg.1 for ; Fri, 04 Feb 2022 20:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gJ5WLOQg5yM+1EYrHn8pvSQHKyd9X/uA4aijttZ5IzQ=; b=N06+7qNu2QvypUDK3UDF7sazgGxe/WyMiT4FJ+Wmg0WYPiu3Y9zB0hsjlyIBIZl20H 6X9258Yev0Ya9AfAczOpd55QsqcOJPoo0RuXOei6Ek5Gf86x7ide9J6S2FpqOyg5fp9x NejI2s9Tr8t3+YNnzqh4CxhZkG1wSEyDwd+hpBt0yqfFQUlo0Aq9uC/nY7LKC3eSfNzC 9VTUt/YVQhZXx9lM9nY3j3w7U9kU3GWRUmNkXRvbOYLeYv++PhieBgc9HraIAS6P5wXc auqk/HKZPlsZ22OjTlh/AYdsTwOspNww+KRqST2EBNMyvFixGcY+i/LupFNRoR2zTxfS hPZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gJ5WLOQg5yM+1EYrHn8pvSQHKyd9X/uA4aijttZ5IzQ=; b=x68bnB+ElSFgnVuW7Jp1B0Mb0RymbrFbeYVu06l2Teh2XiBWXkEY5yL5euMck6oVrR KuT7rCcib8LTwQjTvBlDu0vmDoqYFNTFwHFnzoeF8lm5VbRqdHbK9fXOrH5ethIDWVAV RAlWVYdgHf4hHQy28O0HNNOeGLRa878xIEWUajwuX7m5EwWcvzql56uPk6yKAKe3q0bt zjVkLqJOElFV1DfBUmP6w1izO1UcD8D9Z79+7gWbxCi0CutgHhlHGSc9lzRckCbM5ohg KbqRXOwvIpb5UfdMrEmK986nG2Njhe1Ap1TcqjHik4Q4qNZOz5kj+gcWUhKIVp7xoY03 Ln5w== X-Gm-Message-State: AOAM532Gy9hzo1lk0LVC44lFVdPdxb9QIbg/p6i54JJ7bieQjZ54EmhO oYpUgZ1TXS4MNQ60XrkxhT+K5kKzbM1n8N38WHhOUg== X-Google-Smtp-Source: ABdhPJxdkPxgDJF/qT8Bup85jpbLg45WiSt5M0EnDLaycI0pmrLmSsdMCYeSIsrVcVAhNDF7m5VKHKsOX0hjX+AqwuQ= X-Received: by 2002:a81:1b4e:: with SMTP id b75mr2096637ywb.295.1644034854776; Fri, 04 Feb 2022 20:20:54 -0800 (PST) MIME-Version: 1.0 References: <20220203225547.665114-1-eric.dumazet@gmail.com> <20220204200648.496c7963@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220204200648.496c7963@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Eric Dumazet Date: Fri, 4 Feb 2022 20:20:43 -0800 Message-ID: Subject: Re: [PATCH net] tcp: take care of mixed splice()/sendmsg(MSG_ZEROCOPY) case To: Jakub Kicinski Cc: Eric Dumazet , "David S . Miller" , netdev , syzbot , Talal Ahmad , Arjun Roy , Willem de Bruijn , Soheil Hassas Yeganeh Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Feb 4, 2022 at 8:06 PM Jakub Kicinski wrote: > > On Thu, 3 Feb 2022 14:55:47 -0800 Eric Dumazet wrote: > > + if (!sk_wmem_schedule(sk, extra)) > > + return ENOMEM; > > Let me make this negative when applying, looks like an inconsequential > typo with current callers. Agreed, at first I was returning 0/1, and changed the 1 to ENOMEM at the last moment. Thanks !