diff options
author | Florian Westphal <fw@strlen.de> | 2025-04-01 15:36:47 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-04-02 23:51:08 +0300 |
commit | 688c15017d5cd5aac882400782e7213d40dc3556 (patch) | |
tree | 1919139f594c24c6dcdd9d240bdb2dd31447fd38 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9d74da1177c800eb3d51c13f9821b7b0683845a5 (diff) | |
download | linux-688c15017d5cd5aac882400782e7213d40dc3556.tar.xz |
netfilter: nf_tables: don't unregister hook when table is dormant
When nf_tables_updchain encounters an error, hook registration needs to
be rolled back.
This should only be done if the hook has been registered, which won't
happen when the table is flagged as dormant (inactive).
Just move the assignment into the registration block.
Reported-by: syzbot+53ed3a6440173ddbf499@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=53ed3a6440173ddbf499
Fixes: b9703ed44ffb ("netfilter: nf_tables: support for adding new devices to an existing netdev chain")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions