From owner-freebsd-ports-bugs@freebsd.org Mon Aug 28 22:36:31 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17518E153A4 for ; Mon, 28 Aug 2017 22:36:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 041D267476 for ; Mon, 28 Aug 2017 22:36:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7SMaUxJ084188 for ; Mon, 28 Aug 2017 22:36:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221884] security/ipsec-tools: racoon generate_policy fails to delete policy Date: Mon, 28 Aug 2017 22:36:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aragon@phat.za.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vanhu@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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 MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2017 22:36:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221884 Bug ID: 221884 Summary: security/ipsec-tools: racoon generate_policy fails to delete policy Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: vanhu@FreeBSD.org Reporter: aragon@phat.za.net Flags: maintainer-feedback?(vanhu@FreeBSD.org) Assignee: vanhu@FreeBSD.org When racoon has generate_policy enabled in a remote section, it successfully creates an SPD when an IPSec peer connects. However at disconnect it fails= to delete the SPD: 2017-08-28 23:51:56: INFO: deleting a generated policy. 2017-08-28 23:51:56: DEBUG: get a src address from ID payload 192.168.7.166[59528] prefixlen=3D32 ul_proto=3D17 2017-08-28 23:51:56: DEBUG: get dst address from ID payload 1.2.3.4[1701] prefixlen=3D32 ul_proto=3D17 2017-08-28 23:51:56: DEBUG: sub:0x7fffffffdd10: 192.168.7.166/32[59528] 197.189.200.16/32[1701] proto=3Dudp dir=3Din 2017-08-28 23:51:56: DEBUG: db :0x801a7c310: 4.3.2.1/32[59528] 1.2.3.4/32[1= 701] proto=3Dudp dir=3Din 2017-08-28 23:51:56: DEBUG: sub:0x7fffffffdd10: 192.168.7.166/32[59528] 197.189.200.16/32[1701] proto=3Dudp dir=3Din 2017-08-28 23:51:56: DEBUG: db :0x801a7c490: 1.2.3.4/32[1701] 4.3.2.1/32[59= 528] proto=3Dudp dir=3Dout 2017-08-28 23:51:56: DEBUG: call pfkey_send_spddelete 2017-08-28 23:51:56: DEBUG: pfkey spddelete(inbound) sent. 2017-08-28 23:51:56: DEBUG: call pfkey_send_spddelete 2017-08-28 23:51:56: DEBUG: pfkey spddelete(outbound) sent. 2017-08-28 23:51:56: DEBUG: IV freed 2017-08-28 23:51:56: INFO: purged IPsec-SA proto_id=3DESP spi=3D203708363. 2017-08-28 23:51:56: DEBUG: purged 1 SAs. 2017-08-28 23:51:56: DEBUG: purged SAs. 2017-08-28 23:51:56: DEBUG: pk_recv: retry[0] recv() 2017-08-28 23:51:56: DEBUG: got pfkey DELETE message 2017-08-28 23:51:56: DEBUG: DELETE message is not interesting because the message was originated by me. 2017-08-28 23:51:56: DEBUG: pk_recv: retry[0] recv() 2017-08-28 23:51:56: DEBUG: got pfkey X_SPDDELETE message 2017-08-28 23:51:56: ERROR: pfkey X_SPDDELETE failed: Invalid argument 2017-08-28 23:51:56: DEBUG: pk_recv: retry[0] recv() 2017-08-28 23:51:56: DEBUG: got pfkey X_SPDDELETE message 2017-08-28 23:51:56: ERROR: pfkey X_SPDDELETE failed: Invalid argument My IPSEC_DEBUG kernel logs: key_spddelete: no SP found. Between racoon and the kernel, I'm not sure who's getting the PF_KEY SPDDEL= ETE call wrong. --=20 You are receiving this mail because: You are the assignee for the bug.=