<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 - coredump when parsing ip protocol with number > 6"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1072">1072</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>coredump when parsing ip protocol with number > 6
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>nftables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>nft
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>frederik.schwan@linux.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>My goal: filter GRE (IP proto 47) traffic

This rule gives me a coredump when I try to load it:
ip protocol 47 ip saddr x.x.x.x accept

All numbers lower than 7 seem to work:
ip protocol 6 ip saddr x.x.x.x accept <- works



debug output:
update network layer protocol context:
 link layer          : inet
 network layer       : ip <-
 transport layer     : none

update network layer protocol context:
 link layer          : inet
 network layer       : ip <-
 transport layer     : none

/etc/nftables.conf:41:29-30: Evaluate
                ip protocol 47 ip saddr x.x.x.x accept
                            ^^
$47

/etc/nftables.conf:41:29-30: Evaluate
                ip protocol 47 ip saddr x.x.x.x accept
                            ^^
gre

[1]    20347 segmentation fault  sudo nft --debug all -f /etc/nftables.conf</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>