[Openswan dev] memory leaks with non-establihing tunnels from leak detective

Paul Wouters paul at xelerance.com
Tue Aug 24 17:07:45 EDT 2010



---------- Forwarded message ----------
Date: Tue, 24 Aug 2010 13:17:25 -0600
From: Jason Sigurdur <jason.sigurdur at aspenview.org>
Cc: "users at lists.openswan.org" <users at lists.openswan.org>
To: Paul Wouters <paul at xelerance.com>
Subject: RE: [Openswan Users] pluto causes system out of memory when interop
     with fortigate.

Here is a portion of the 'leak' logging.


secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: message buffer in comm_handle(), item size: 212
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 3 * struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 3 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 6 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: reply packet for main_outI1, item size: 492
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 4 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: reply packet for main_outI1, item size: 492
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 6 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: reply packet for main_outI1, item size: 492
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 55 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 13 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 32 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 44 * struct pending, item size: 64
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: Gr, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: initiator nonce, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: long term secret, item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: saved gi value, item size: 256
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: sa in main_outI1, item size: 428
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct state in new_state(), item size: 1896
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: struct event in event_schedule(), item size: 32
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: raw packet, item size: 76
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated key for phase 1, item size: 16
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: 2 * calculated skeyid_a secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid_d secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated skeyid secret, item size: 20
secure:Aug 24 10:57:14 GW13 pluto[20974]: packet from 192.168.11.1:500: leak: calculated shared secret, item size: 256

-----Original Message-----
From: Paul Wouters [mailto:paul at xelerance.com]
Sent: Monday, August 23, 2010 9:59 PM
To: Jason Sigurdur
Cc: users at openswan.org
Subject: RE: [Openswan Users] pluto causes system out of memory when interop with fortigate. [Spam score:8%]



More information about the Dev mailing list