Florian Westphal 688c15017d 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>
2025-04-02 22:51:08 +02:00
2025-03-17 14:40:40 -07:00
2025-03-07 11:12:33 -10:00
2025-03-20 09:18:38 -07:00
2025-03-07 11:09:33 -10:00
2025-03-17 14:30:31 -07:00
2024-09-01 20:43:24 -07:00
2025-03-15 15:40:42 -10:00
2025-03-15 15:40:42 -10:00
2025-02-26 11:55:44 -08:00
2025-03-13 07:33:48 +01:00
2025-02-04 11:27:45 -05:00
2025-03-14 10:57:28 -10:00
2022-09-28 09:02:20 +02:00
2025-03-21 18:24:07 +01:00
2022-10-10 12:00:45 -07:00
2025-03-21 18:24:07 +01:00
2025-03-16 12:55:17 -10:00
2024-03-18 03:36:32 -06:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 8 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%
Other 0.1%