From nobody Mon Apr 08 00:35:27 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VCVVm4xZbz5FgYy for ; Mon, 8 Apr 2024 00:35:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VCVVm3vVQz4JKP for ; Mon, 8 Apr 2024 00:35:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712536528; a=rsa-sha256; cv=none; b=oip7hiHkyH096vBVfoswjURXSPeFyXiAKGVdIf9QZbSIazPOOYXYdnCz12awnNdgothylZ oVElZVtYB1T7oS21dJV+ztRunOM61K0o1H/8IO3nL39bX5OGf8uh17+yEGQ0Axcovr7Msa +cGHgppGJgf6QAUoxHug5L9zdv+Lduq7tnCB4Oh4e+SH3L4TsAyHXRq6ofTxVFmhdrXoWL VDYnQfi+pyyw3Jsq9pr+I820mYCGN9OtJgPZhFRTb0oXnSJt7MZTLxMih7mySD3khD3uAh W2Dxda+sadhdjVBnSoLIzOvKm/Qm1PxLDjqY279irzAt9Ncq40tFp5NY/vbOAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712536528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=705o0G5VKfiwG3RzQodbGdlUhy0tvBVZKTbJx2SGCaE=; b=kOQqD0M0NKd36ivijOb4RXVvvqM6eMdvbEG2WG3FQvddaAGBk9Byp1Kg8MKSgzreWm0UTX VWjnZDPUda+WvejLGWD7jpThlcwTomaQF1OzL2mrnn4LqEpFOKEyV3qO/ekf6/ZRVCMcDf iBxVeg/Zi/QXCyTt+LNJqGJfSwOdyw+zlxlebjLnFx5XZS7+vV6aW89ZXWzaZTlBxuref0 XjPghWotmpoYNBTOUcH4gPnRfDrvC5Xzv7FFewRT5Y+tDtm+MTsFiJWOZRDErCzzCDCS2I wIiU5Q4di/K1QUAsN8yyTqsQDyF8MceZ7Ovu4PUqLSux8r8frL7SJdr8Amt4/A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VCVVm3RT4zqJH for ; Mon, 8 Apr 2024 00:35:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4380ZSDf021340 for ; Mon, 8 Apr 2024 00:35:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4380ZSkp021335 for bugs@FreeBSD.org; Mon, 8 Apr 2024 00:35:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278245] sendfile to bhyve VM on same host fails with MEXTPG Date: Mon, 08 Apr 2024 00:35:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: djk-freebsdbugs@needful.ca X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278245 Bug ID: 278245 Summary: sendfile to bhyve VM on same host fails with MEXTPG Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: djk-freebsdbugs@needful.ca In debugging an issue with an nginx reverse proxy, I found an issue with sendfile, MEXTPG, and one of more of bridge, tap, and bhyve. I am on FreeB= SD 14-CURRENT-p6. To replicate this issue, I used the following Python test harness: import socket=20=20=20=20 HOST =3D 'target.host' PORT =3D 50007=20=20=20=20 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s, open("blah.txt= ", "rb") as f: s.connect((HOST, PORT)) s.sendfile(f) In this case, target.host is a Debian bhyve VM running on the same host. On the target, something like 'nc -l -p 50007' can be run to receive the data. On the networking side, I've got: # ifconfig em0 em0: flags=3D1008943 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3Da520b9 ether 6c:4b:90:1f:e9:a8 inet 192.168.11.15 netmask 0xffffff00 broadcast 192.168.11.255 inet6 fe80::6e4b:90ff:fe1f:e9a8%em0 prefixlen 64 scopeid 0x1 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D23 # ifconfig vm-public vm-public: flags=3D1008843 metric 0 mtu 1500 options=3D0 ether 3a:47:10:77:5b:4d id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap3 flags=3D143 ifmaxaddr 0 port 7 priority 128 path cost 2000000 member: tap2 flags=3D143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 member: tap1 flags=3D143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: tap0 flags=3D143 ifmaxaddr 0 port 4 priority 128 path cost 2000000 member: em0 flags=3D143 ifmaxaddr 0 port 1 priority 128 path cost 20000 groups: bridge vm-switch viid-4c918@ nd6 options=3D9 When MEXTPG is enabled on the em0 interface, the test fails when sending a = file larger than 224 bytes. When MEXTPG is enabled the test is successful. The test is successful when sending to a VM on a different host, so the bhyve V= M is a requirement to replicate the issue. https://www.reddit.com/r/freebsd/comments/1bxebaz/more_vm_networking_weirdn= ess/ has a lot more detail and some narrowing down of the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=