Skip to content

ipsets with comments randomly display garbled comments #6

@jamercee

Description

@jamercee

We've started using comments with ipsets and discovered what maybe a bug. Randomly, a comment will contained garbled bytes, or random strings. Here are several examples extracted from an ipset list.

177.73.47.10 timeout 62200 comment "^O^N^M^L^K
       ^G^F^E^D^C^B^A"
105.155.228.6 timeout 1490 comment "^G^F^E^D^C^B^A"
177.39.214.123 timeout 33481 comment "session-152354.scope"
143.208.21.97 timeout 7601 comment "<80><9C><8B><81><FF><FF><FF><FF>^P"
84.241.21.254 timeout 5395 comment "cgroup.clone_children"

Note: although the last entry had a legible comment, it is not the comment value we set.

There are more than a thousand entries, most of which preserved their comments correctly. We typically enter a 4-charcter comment (to keep kernel memory consumption to a minimum).

The command used to create the set was:

create 24hour hash:ip family inet hashsize 1024 maxelem 65536 timeout 86400 comment

The system that displayed this behavior is Debian 8.0

# uname -a
Linux router 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux

# ipset version
ipset v6.23, protocol version: 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions