<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Error Message "Memory allocation problem" using hashlimit match"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1235">1235</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error Message "Memory allocation problem" using hashlimit match
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.6.x
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Gentoo
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nrittner@layer23.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When using "--match hashlimit" with "--hashlimit-name" that contains a slash,
iptables terminates with the error message: "iptables: Memory allocation
problem."
since "--hashlimit-name" is used to compose a state-filename within
/proc/net/ipt_hashlimit without any further subdirectories, a useful hint
should be printed out, rather than dying with that error.
relevant lines of strace are:

getsockopt(4, SOL_IP, IPT_SO_GET_INFO,
"filter\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., [84]) = 0
getsockopt(4, SOL_IP, IPT_SO_GET_ENTRIES,
"filter\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., [34176]) = 0
setsockopt(4, SOL_IP, IPT_SO_SET_REPLACE,
"filter\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 34720) = -1
ENOMEM (Cannot allocate memory)
close(4)                                = 0
write(2, "iptables: Memory allocation prob"..., 37iptables: Memory allocation
problem.
) = 37

kernel version: 4.9.76 x86_64
reproducible:   always

maybe the reason is to be find in kernel-code rather than in the
iptables-command ? - don't know

cheers,

nico</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>