From nobody Sat Oct 21 00:00:03 2023 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 4SC1mM5W9wz4yNqp for ; Sat, 21 Oct 2023 00:00:03 +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 4SC1mM2BX7z3QtF for ; Sat, 21 Oct 2023 00:00:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697846403; a=rsa-sha256; cv=none; b=YiHdslwGOPGUEGRDPs/sQ7rSWUF/+9vhzSaKbHuceFR5G8KRmJTO4KZCvCVopm1eoXbqZz ul0kN3uN0GhOB3kY02/YAj3IoSzasZtvcG1PHp9eohLzswNOjBE3DL3qpH4q2U5TlrGfyE bz0PkUJ16r9CPHat4KC0LNL76QKhS7whLSTMeH06DuaOq8+K+CLX9d8Xlme7xmJ7idtVlV Xx4bwr+NLZSFkHhz2MTYVfTxCYW30/cJ84X4y0Y0HhXjF/2+YVJXpFgqG/UhWD7BTLX+Rs J+X2XPd60yxLhboNdEL7gt3cOb1YmFARW2JGnIJDc+j1Fw/POlOZvNCwPe7X6A== 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=1697846403; 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=wOozQztfBdosVrpDdirXLdxCI9s0dAkH/6v+D+nqWoc=; b=C8eEcouv4Qg8lIaAzJIjhFx+pKNPQkUTmyXZ4B8CPRMBEVB6jHC04JnySgYLctuGGkfLNj XeHaEtLVQKWIrHLgvVRhnoHn4skRURyxa3PV86CcxaN8CXsE11VpMUB+Im6Z8FOzTBh/By CuMamQxtuI+rGKGf4cD9/cxlu5fs50dWAcKplECkgIvRt4tcoalLZvGFnFEVA5GeqMPJaf US+V4CFG8VUAVoX8t3PmTNISdmfXhV+A70pLJkbjqjcmbZYPtXOSuFjuDmtvWuyb+Y3k9T Hzy6PiFMDa/IkgfC+AtcBFXnxSDo7M8pjbcDo9xMQKxG9fENdYEue/d+e/oxqw== 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 4SC1mM1FYbztKR for ; Sat, 21 Oct 2023 00:00:03 +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 39L0034L058248 for ; Sat, 21 Oct 2023 00:00:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39L003kD058243 for bugs@FreeBSD.org; Sat, 21 Oct 2023 00:00:03 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 274618] if_wg sometimes configured badly and then sent IPv4 packets with src=0.0.0.0 Date: Sat, 21 Oct 2023 00:00:03 +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: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vova@fbsd.ru 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=3D274618 Bug ID: 274618 Summary: if_wg sometimes configured badly and then sent IPv4 packets with src=3D0.0.0.0 Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: vova@fbsd.ru 13.2-RELEASE-p4 # ifconfig wg0 wg0: flags=3D80c1 metric 0 mtu 1420 options=3D80000 inet 172.16.1.254 netmask 0xffffffff groups: wg nd6 options=3D109 # wg show interface: wg0 public key: ... private key: (hidden) listening port: 31766 peer: ... endpoint: 178.213.227.68:51111 allowed ips: 172.16.1.0/24 latest handshake: 17 minutes, 14 seconds ago transfer: 851 B received, 908 B sent # route -n get 172.16.1.192 route to: 172.16.1.192 destination: 172.16.1.0 mask: 255.255.255.0 fib: 0 interface: wg0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1420 1 0 Packets originating on WG interface without bind(2) looks ackward - src_ip=3D0.0.0.0 TCP:=20 21:08:43.884120 IP 0.0.0.0.37253 > 172.16.1.192.22: Flags [S], seq 10466031= 87, win 65535, options [mss 1380,nop,wscale 6,sackOK,TS val 3939364738 ecr 0], length 0 ICMP: 21:03:04.934286 IP 0.0.0.0 > 172.16.1.192: ICMP echo request, id 17204, seq= 8, length 64 if, source address fixed with bind(2) (i.e. ping -S 172.16.1.254 ...) - everything gets fine problem appears just after reboot, to fix it is enough to restart wireguard: service wireguard restart problem does not appear if use wireguard-kmod-0.0.20220615_1 problem appears not every boot so, aproxymately - one of two or one of 4 bo= ots - everything fine preloading any modules from boot/loader does not change situation --=20 You are receiving this mail because: You are the assignee for the bug.=