Skip to content

net: netfilter: add kfunc helper to update ct timeout #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

kernel-patches-bot
Copy link

Pull request for series with
subject: net: netfilter: add kfunc helper to update ct timeout
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987

@kernel-patches-bot
Copy link
Author

Master branch: 20b87e7
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot
Copy link
Author

Master branch: 7b3a063
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 0b26e52 to ff4fa9e Compare May 9, 2022 15:20
@kernel-patches-bot
Copy link
Author

Master branch: bfa92e0
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from ff4fa9e to 285d8a5 Compare May 10, 2022 00:28
@kernel-patches-bot
Copy link
Author

Master branch: 56c3e74
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 285d8a5 to 6507b76 Compare May 10, 2022 00:49
@kernel-patches-bot
Copy link
Author

Master branch: 43bf087
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 6507b76 to f33c33b Compare May 10, 2022 00:56
@kernel-patches-bot
Copy link
Author

Master branch: 174efa7
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from f33c33b to b6264b2 Compare May 10, 2022 17:29
@kernel-patches-bot
Copy link
Author

Master branch: a82ebb0
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from b6264b2 to e75751f Compare May 10, 2022 17:43
@kernel-patches-bot
Copy link
Author

Master branch: bd2331b
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from e75751f to fe6bae4 Compare May 10, 2022 17:50
@kernel-patches-bot
Copy link
Author

Master branch: c4423a1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from fe6bae4 to 1f4e61c Compare May 10, 2022 17:57
@kernel-patches-bot
Copy link
Author

Master branch: 9376d38
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 1f4e61c to 342e25c Compare May 10, 2022 18:27
@kernel-patches-bot
Copy link
Author

Master branch: cb41154
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 342e25c to 785bdc6 Compare May 10, 2022 21:53
@kernel-patches-bot
Copy link
Author

Master branch: 1a409a1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot
Copy link
Author

Master branch: 93dafa9
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 63ed2bc to 3a8a71a Compare May 11, 2022 05:03
@kernel-patches-bot
Copy link
Author

Master branch: 5eefe17
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=637987
version: 1

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 2d8aed6 to 535652f Compare May 13, 2022 13:16
@kernel-patches-bot
Copy link
Author

Master branch: b2531d4
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=641090
version: 2

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 535652f to ba3b18d Compare May 13, 2022 13:20
@kernel-patches-bot
Copy link
Author

Master branch: 0d2d264
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=641090
version: 2

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from ba3b18d to 9f9de10 Compare May 13, 2022 20:10
@kernel-patches-bot
Copy link
Author

Master branch: 0d2d264
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=641090
version: 2

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 9f9de10 to 0e517d1 Compare May 13, 2022 21:56
@kernel-patches-bot
Copy link
Author

Master branch: 16d1e00
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=641090
version: 2

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 0e517d1 to 123e2da Compare May 13, 2022 23:08
@kernel-patches-bot
Copy link
Author

Master branch: 418fbe8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=641090
version: 2

@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 123e2da to 79466e8 Compare May 13, 2022 23:11
Kernel Patches Daemon and others added 2 commits May 13, 2022 17:01
Introduce bpf_ct_refresh_timeout kfunc helper in order to update time
nf_conn lifetime. Move timeout update logic in nf_ct_refresh_timeout
utility routine.

Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
@kernel-patches-bot
Copy link
Author

Master branch: 418fbe8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=641090
version: 2

Install a new ct entry in order to perform a successful lookup and
test bpf_ct_refresh_timeout kfunc helper.

Signed-off-by: Lorenzo Bianconi <[email protected]>
@kernel-patches-bot kernel-patches-bot force-pushed the series/637987=>bpf-next branch from 79466e8 to 773a505 Compare May 14, 2022 00:01
@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=637987 irrelevant now. Closing PR.

@kernel-patches-bot kernel-patches-bot deleted the series/637987=>bpf-next branch May 14, 2022 00:23
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Jul 24, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Jul 26, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Jul 26, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Jul 30, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Jul 30, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Jul 31, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
kernel-patches-daemon-bpf-rc bot pushed a commit that referenced this pull request Aug 9, 2025
Use BPF_TRAMP_F_INDIRECT flag to detect struct ops and emit proper
prologue and epilogue for this case.

With this patch, all of the struct_ops related testcases (except
struct_ops_multi_pages) passed on LoongArch.

The testcase struct_ops_multi_pages failed is because the actual
image_pages_cnt is 40 which is bigger than MAX_TRAMP_IMAGE_PAGES.

Before:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  WATCHDOG: test case struct_ops_module/struct_ops_load executes for 10 seconds...

After:

  $ sudo ./test_progs -t struct_ops -d struct_ops_multi_pages
  ...
  #15      bad_struct_ops:OK
  ...
  #399     struct_ops_autocreate:OK
  ...
  #400     struct_ops_kptr_return:OK
  ...
  #401     struct_ops_maybe_null:OK
  ...
  #402     struct_ops_module:OK
  ...
  #404     struct_ops_no_cfi:OK
  ...
  #405     struct_ops_private_stack:SKIP
  ...
  #406     struct_ops_refcounted:OK
  Summary: 8/25 PASSED, 3 SKIPPED, 0 FAILED

Signed-off-by: Tiezhu Yang <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants