Project

General

Profile

Actions

Bug #5870

closed
JI SB

ips/af-packet: crash when copy-iface is the same as the interface

Bug #5870: ips/af-packet: crash when copy-iface is the same as the interface

Added by Jason Ish about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

The following is an easy to make configuration error when setting up AF_PACKET IPS:

af-packet:
  - interface: enp10s0
    cluster-id: 99
    cluster-type: cluster_flow
    defrag: yes
    copy-mode: ips
    copy-iface: enp9s0

  - interface: enp9s0
    cluster-id: 98
    cluster-type: cluster_flow
    defrag: yes
    copy-mode: ips
    copy-iface: enp9s0

which leads to a crash:

Error: suricata: stacktrace:sig 11:AFPWritePacket+0x00000200;AFPReleaseDataFromRing+0x000000cb;AFPReleasePacket+0x00000018;TmqhOutputPacketpool+0x00000f68;TmThreadsSlotProcessPkt+0x000000e6;AFPReadFromRing+0x000003e3;ReceiveAFPLoop+0x000010a0;TmThreadsSlotPktAcqLoop+0x00000dbe;start_thread+0x000002cd;__clone3+0x00000030 [SignalHandlerUnexpected:suricata.c:302]
Segmentation fault

This should be simple enough to catch and present a more user friendly error message.


Subtasks 1 (0 open1 closed)

Bug #6228: ips/af-packet: crash when copy-iface is the same as the interface (6.0.x backport)ClosedShivani BhardwajActions

VJ Updated by Victor Julien over 2 years ago Actions #1

  • Status changed from New to Assigned
  • Assignee changed from Jason Ish to Shivani Bhardwaj
  • Target version changed from TBD to 7.0.1
  • Label Needs backport to 6.0 added

OT Updated by OISF Ticketbot over 2 years ago Actions #2

  • Subtask #6228 added

OT Updated by OISF Ticketbot over 2 years ago Actions #3

  • Label deleted (Needs backport to 6.0)

SB Updated by Shivani Bhardwaj over 2 years ago Actions #4

  • Status changed from Assigned to In Progress

SB Updated by Shivani Bhardwaj over 2 years ago Actions #5

  • Status changed from In Progress to In Review

SB Updated by Shivani Bhardwaj over 2 years ago Actions #6

  • Status changed from In Review to Resolved

SB Updated by Shivani Bhardwaj over 2 years ago Actions #7

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom