From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF4F543C051 for ; Fri, 15 May 2026 09:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778836864; cv=none; b=r1Xgo7ffjTFlGtDbE/rc8MOydAwyu46HjBJJBtXlKiBI3SiT+pkX9pJe5SWtHglMinvuY7fCOx/NkNDfM1ku4pBaygqzoOiYGy8n2cM8olYoo1TfG5SBxZfZBr28TW3ju0wcxB9uAE4KtUOrQBCfKURd7J3Ob3gms6PU++JA+WE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778836864; c=relaxed/simple; bh=kvhGlFT183z46f4prQv9UsB0406P5Y8xm81IA80kJuM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Yt3TgJiVk746Zqe+nWBsofP+q+xJ5HsUO4pQwzL9C5+IEXsuSl9WWBALkCsbqIzvFY1dWic1YRTAk5bI2WBzYae3ASpTmEx+z60djnR9WyKxer5jxYEsUhoIHaP1DcQEIh6J1VhbB2xidCdQFECd6bmx3xscOQsjNukhCktFMSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=jDshuLWC; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=QF5vXZf+; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jDshuLWC"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="QF5vXZf+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778836861; 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=coiGVgNORCz4Zh3xYVYNCYPRQwJYgr83BYwKKI9/FxM=; b=jDshuLWCYgeovocETe7K1d5CNSXX4zFfi6vhGDaUWNytuD40AC0vRCtg5+3rCA8gg/iN/Y AH9uth7JQEEWA1b9vFaSOBTXMiW4wcxsD0DNmKDgM8a2UFEvoAIJ+1128fwehUa0ECVMXy eaBE5zV6eyyfOLBchfIeZnREkOZQZRg= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-298-ZuixvAIuO_apsAlkTyCT0Q-1; Fri, 15 May 2026 05:21:00 -0400 X-MC-Unique: ZuixvAIuO_apsAlkTyCT0Q-1 X-Mimecast-MFC-AGG-ID: ZuixvAIuO_apsAlkTyCT0Q_1778836859 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-45aeac88af4so3195932f8f.3 for ; Fri, 15 May 2026 02:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778836859; x=1779441659; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=coiGVgNORCz4Zh3xYVYNCYPRQwJYgr83BYwKKI9/FxM=; b=QF5vXZf+qj2rP1C8g15kd1q9ts1TniBoPkpIWgHDfe2tGZpUePCoqt7J0vumweTA6y 4Ocjpi1Cj8DeC8ceqScBo3eNSGCSx/STJk+1I+hgJwlQpQp9mDCXUz+TCpbc44lNOodM B4Qg/Wm62qq0enr7oUiXq2h2vj/Mdqt6pQB9hnntiebNTIxKJBZDftJ0o8ZEX2Exi5/p FrSqpCQ+3SbsD6Ar1rH0uzuhmMZtbxfuHRUom0RIIV1OB/nm67tLwWcnhAb4Pm8xKXzC tXjBmoYkn968WbjdicGNgcfblb9Vs81pgGEMEq5NqrX/pib126OQfAUkTUQHtwc2n+C7 bY8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778836859; x=1779441659; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=coiGVgNORCz4Zh3xYVYNCYPRQwJYgr83BYwKKI9/FxM=; b=FLb0dJ9vh1/yBOASIsBl50OmMoBAHpx8gQT7KzYQ4bTtTUKTsog+gGdAg4Ay1YQrw/ cZ0CgbgC9WURMvVnPX1iQsmguBciCllDJOcQtsWyK+cBuW3fpDLr8WgNrVgsP24MiDpK n3YfcLpyFG+By4+kEdwutluLEeDL1lhRitoeNw/YBt0ov1yT7ihb1WZ036/o+ES7tEic L8rAjE9I9sywjCB3L8xLeQ+hVsf/HMZX0moNLgXJn6EJpeXBrb3nFaVeyUJPz3mwKIBb Fm86MXvIpHZA9THwLu6CvD9ap4OFAe1fCz/vWVVjYMgghdeQ3O/AQdhQA8bdTRF5HNfU q/JA== X-Forwarded-Encrypted: i=1; AFNElJ/2kpSQOK3CCZmptM8f4Ea8wAzwoBQkubCS52FscquS8R22YecnXx56NBYfQ6hw9UGBx/LX6FRfQuKNtik=@vger.kernel.org X-Gm-Message-State: AOJu0YwZvAojXvOOO/iPnB8tCMCp9A7BEBvDXGUPwdGqFMCTBJS7lZ5+ AuKsHjFfKj5NRukIuUnChP2StnGjeDk9ckCOrAvgNonOLFUAow5unFXgRf2z5G7VdfxBH0GF1pi PkMT3XB57hPR0BdHTF4Owk0h8lwAxAIrQmptnXbfC7z6WO9JOJPtA9huiANzaIGF9Iw== X-Gm-Gg: Acq92OH8NjyvIjYUpyAV2/swYbDCzg41WCINt8GPo1vS6RvCMkz8nul1sMFk4BkQ5Ib gmgN5KZGtRgkySUmW8kOm5bYH2V/DGt+9hcPmLXW2Am/i3eJ9Z6WmJgdf0zorZ9DQjhFXPf27PV sQAIops35ni+yW0WLO0Dw/ThfnKCedW+cisiQK+UQtVrIPr+N1XlVzc+lkP3CTV/DuWqnJqs15J mf7Ai6KMk4DyRa6dtq8Uxzbc0IIe+qestF15bQajPrDmyLKyGZbdWOD/JXD9Uu1UUTTHevNr4Do EnMxoDLRwNfvhYxj6+3O6QS0GlLsXgDmissHwgMGx3UXWZ1ZEXrgpbi5vRnxWsogk6ELWJzeDIB 4dQtjeP3S0AwGcaer7u3YTRAcnqcH9MDJWlTcQzWi1VdKVKrqXlc= X-Received: by 2002:a05:6000:22c5:b0:43c:f5a0:4e56 with SMTP id ffacd0b85a97d-45e5c5f9d94mr3855124f8f.42.1778836858730; Fri, 15 May 2026 02:20:58 -0700 (PDT) X-Received: by 2002:a05:6000:22c5:b0:43c:f5a0:4e56 with SMTP id ffacd0b85a97d-45e5c5f9d94mr3854928f8f.42.1778836856499; Fri, 15 May 2026 02:20:56 -0700 (PDT) Received: from redhat.com (IGLD-80-230-48-7.inter.net.il. [80.230.48.7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9ec39ff1sm13634930f8f.10.2026.05.15.02.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 02:20:56 -0700 (PDT) Date: Fri, 15 May 2026 05:20:53 -0400 From: "Michael S. Tsirkin" To: Stefano Garzarella Cc: netdev@vger.kernel.org, Xuan Zhuo , Eugenio =?iso-8859-1?Q?P=E9rez?= , linux-kernel@vger.kernel.org, Simon Horman , Paolo Abeni , Jakub Kicinski , Jason Wang , kvm@vger.kernel.org, Stefan Hajnoczi , virtualization@lists.linux.dev, Eric Dumazet , "David S. Miller" Subject: Re: [PATCH net v3 1/2] vsock/virtio: reset connection on receiving queue overflow Message-ID: <20260515051829-mutt-send-email-mst@kernel.org> References: <20260513105417.56761-1-sgarzare@redhat.com> <20260513105417.56761-2-sgarzare@redhat.com> <20260514111513-mutt-send-email-mst@kernel.org> <20260514134347-mutt-send-email-mst@kernel.org> <20260515043940-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 15, 2026 at 11:06:42AM +0200, Stefano Garzarella wrote: > On Fri, May 15, 2026 at 04:57:41AM -0400, Michael S. Tsirkin wrote: > > On Fri, May 15, 2026 at 10:29:55AM +0200, Stefano Garzarella wrote: > > > On Thu, May 14, 2026 at 01:44:53PM -0400, Michael S. Tsirkin wrote: > > > > On Thu, May 14, 2026 at 06:45:00PM +0200, Stefano Garzarella wrote: > > > > > On Thu, 14 May 2026 at 17:16, Michael S. Tsirkin wrote: > > [...] > > > > > > > > > > > > > > > > > > > And so the bag of hacks grows. I feel this is energy not well spent. > > > > > > Please, let us fix this properly *first*. And then worry about how to > > > > > > backport. Maybe it will not be so terrible to backport after all. > > > > > > > > > > > > > > > > TBH I don't think this is an hack, but an issue we should fix in any case. > > > > > Regarding the second patch, I see your point, but it's a big change > > > > > that worries me. I'd like some more time to fix it properly without > > > > > rushing. Staying calm without realizing that userspace is broken like > > > > > we are now without this series :-( > > > > > > > > > > That said, evaluating further, I think we have a similar issue also > > > > > with STREAM on the host side where the skb usually doesn't free space, > > > > > so we need a merge strategy also there. > > > > > > > > > > So, I'd like to have time to fix both definitely. If you have time and > > > > > want to go ahead, please do. > > > > > > > > > > Thanks, > > > > > Stefano > > > > > > > > Well my patch was a start, we just need a strategy how to avoid copying > > > > everything, right? > > > > > > Yep, and then there's the question of how to handle EOM without a payload, > > > but I think that's a special case. In theory, we don't support sending it, > > > but I'm not sure if POSIX allows it or not. > > > > It seems to, but given we didn't allow it in the past, we probably > > should not start now without a good solution. > > Agree. > > > Really we should add a feature bit for EOM to steal a byte from > > buf_alloc. Or several bytes) > > Yes, I agree. At this point, though, could we define a new protocol that > also takes overhead into account, or would it be too complicated to > synchronize both? Well isn't it just X bytes per EOM? The rest can be fixed with merging? > > > > > That said, is it okay if I send a v4 of this series? > > > > > > (I'm not sure if I'll be able to work on the merging next week) > > > > > > Stefano > > > > > > I do worry we are piling up hacks and we'll end up with races > > for all our troubles. That said, up to you. > > > > I see it differently; Patch 1 should have been there from the start. > Patch 2, unless we completely remove the overhead, we should keep it, or use > it to trigger merging (e.g., when the overhead reaches a threshold that > depends on `buf_alloc`). I'm not sure we need to merge retroactively though. Maybe just start merging new stuff when over a threshold. Should be simpler. > I prefer to send a v4. > > Thanks, > Stefano