#96 Compound filter core dump

np-cerberus
closed-fixed
None
9
2003-04-30
2003-04-25
No

I tried to set up a rule with a compound filter
(to/from hosts), and when the agent received the set
request, it coredumped.

Stack trace:

#0 get_logic_type (pdata=0x0, pinfo=0x81b2530) at
ipspCompoundFilterTable.c:40
#1 0x0807eb36 in ipspCompoundFilterTable_handler
(handler=0x81b2578, reginfo=0x81b2548,
reqinfo=0x81a6c90, requests=0x82ecb60) at
ipspCompoundFilterTable.c:323

The problem is that get_logic_type dereferences the
null pdata pointer.

Discussion

  • Robert Story

    Robert Story - 2003-04-25

    Logged In: YES
    user_id=76148

    PP DEBUG

    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 0
    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 0
    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 0
    2003-04-25 03:00:20 policy_end: starting mode: 0
    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 1
    2003-04-25 03:00:20 policyRule: switch desc to: XXX: to and
    from a bunch of hosts
    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 1
    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 1
    2003-04-25 03:00:20 policy_end: starting mode: 1
    2003-04-25 03:00:20 ipspCompoundFilterTable: doing mode 2
    2003-04-25 03:00:20 policyRule: creating new chain:
    #CF_east-west
    /root/doit: line -105: 9968 Segmentation fault

    SNMPD.LOG

    2003-04-25 03:00:20 agent_set: doing set mode = 0 (SET_RESERVE1)
    2003-04-25 03:00:20 agentx/master: agentx master handler
    starting, mode = 0x00
    2003-04-25 03:00:20 agentx/master: request for variable
    (IPSEC-POLICY-MIB::ipspCompFiltDescription."east-west")
    2003-04-25 03:00:20 agentx/master: request for variable
    (IPSEC-POLICY-MIB::ipspCompFiltLogicType."east-west")
    2003-04-25 03:00:20 agentx/master: request for variable
    (IPSEC-POLICY-MIB::ipspCompFiltRowStatus."east-west")
    2003-04-25 03:00:20 agentx: sending pdu
    (req=0x493c,trans=0x493b,sess=0xb0)
    2003-04-25 03:00:20 agentx_build: packet built okay
    2003-04-25 03:00:20 agent_set: did set mode = 0, status = 0
    2003-04-25 03:00:20 results: request results (status = 0):
    2003-04-25 03:00:20 results:
    IPSEC-POLICY-MIB::ipspCompFiltDescription."east-west" =
    STRING: XXX: to and from a bunch of hosts
    2003-04-25 03:00:20 results:
    IPSEC-POLICY-MIB::ipspCompFiltLogicType."east-west" =
    INTEGER: or(1)
    2003-04-25 03:00:20 results:
    IPSEC-POLICY-MIB::ipspCompFiltRowStatus."east-west" =
    INTEGER: createAndGo(4)
    2003-04-25 03:00:20 agentx/master: got response errstat=0,
    (req=0x493c,trans=0x493b,sess=0xb0)
    2003-04-25 03:00:20 agentx/master: handle_agentx_response()
    finishing...
    2003-04-25 03:00:20 agent_set: doing set mode = 1 (SET_RESERVE2)
    2003-04-25 03:00:20 agentx/master: agentx master handler
    starting, mode = 0x01
    2003-04-25 03:00:20 agent_set: did set mode = 1, status = 0
    2003-04-25 03:00:20 agent_set: doing set mode = 2 (SET_ACTION)
    2003-04-25 03:00:20 agentx/master: agentx master handler
    starting, mode = 0x02
    2003-04-25 03:00:20 agentx/master: request for variable
    (IPSEC-POLICY-MIB::ipspCompFiltDescription."east-west")
    2003-04-25 03:00:20 agentx/master: request for variable
    (IPSEC-POLICY-MIB::ipspCompFiltLogicType."east-west")
    2003-04-25 03:00:20 agentx/master: request for variable
    (IPSEC-POLICY-MIB::ipspCompFiltRowStatus."east-west")
    2003-04-25 03:00:20 agentx: sending pdu
    (req=0x493d,trans=0x493b,sess=0xb0)
    2003-04-25 03:00:20 agentx_build: packet built okay
    2003-04-25 03:00:20 agent_set: did set mode = 2, status = 0
    2003-04-25 03:00:21 agentx/master: transport disconnect on
    session 0x8164d90
    2003-04-25 03:00:21 agentx/master: close 0x8164d90, -1
    2003-04-25 03:00:21 agent_set: doing set mode = 5 (SET_UNDO)
    2003-04-25 03:00:21 netsnmp_call_handlers() called illegally
    2003-04-25 03:00:21 agent_set: did set mode = 5, status = 5

     
  • Wes Hardaker

    Wes Hardaker - 2003-04-30
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks