Skip to content

Migrate to linux 6.12.12 #2339

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

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open

Conversation

const-t
Copy link
Contributor

@const-t const-t commented Feb 7, 2025

No description provided.

@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch from 768f9fd to 3a9e4c5 Compare February 10, 2025 11:10
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch 14 times, most recently from 11e6f6c to cba4791 Compare February 20, 2025 15:09
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch 3 times, most recently from b6eb1aa to 4c7e3be Compare March 4, 2025 14:59
@const-t const-t marked this pull request as ready for review March 4, 2025 15:26
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch 4 times, most recently from d727836 to 9d6e821 Compare March 7, 2025 18:14
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch from 9d6e821 to 374625a Compare March 12, 2025 12:40
@const-t const-t requested review from krizhanovsky and EvgeniiMekhanik and removed request for krizhanovsky March 12, 2025 12:43
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch 2 times, most recently from 8fa33f2 to 1c74704 Compare March 13, 2025 10:35
const-t added 7 commits May 12, 2025 17:48
-Wempty-body
The code like so doesn't compile -Wempty-body, becuase
if `T_DBG3` macro is empty, it leades to empty `if`
statement.
```
if (...) {
        T_DBG3(...);
```

-Wold-style-declaration
Simply use `((void)0)` instead of empty macro.

Place inline keyword between storage class and type.
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch from acada40 to 2c8d651 Compare May 12, 2025 14:48
const-t added 20 commits May 15, 2025 14:57
 -tfw_ctlfn_state_io - Changed prototype to match new
  prototype of proc_handler.
 -tfw_sysctl_tbl removed empty struct.
 -Flexible arrays declared using `DECLARE_FLEX_ARRAY`.
Added explicit in-place version of `tfw_cstrtolower()`
with suitable prototype. This is required to be able
to do conversion in-place when it safe (@src == @DesT),
because `__tfw_strtolower_avx2()` expects non-ovelapping
memory. To ensure this on compile time we use __restrict
qualifier.
Removed unnecessary `__restrict`, that hasn't effect
on the function. Also `tbl` and `it` might points to
the same structure and this is legal and used in
`tfw_hpack_set_rbuf_size()`
Sleepable function must not be called in softIRQ. Use
arch specific random number generator by default.
Few patches ago we changed our `ttls_time` macro to use
`ktime_get_seconds()` instead of real seconds, it
fits our needs, because our session storage is alive
until reboot and suspension is not expected. However
`x509_get_current_time()` wants to get real time, thus
use `ktime_get_real_seconds()` in this case.
Add compilation time flag that replaces random
functions by non-random byte sequance `0xAA`. It can be
set separately from `DBG_TLS`, however `DBG_TLS=3` also
sets `DBG_TLS_NO_RAND=1`
During migration to Linux kernel 6.12.12 Tempesta
module has been integrated into LSM stack as non
exclusive module, that allows to use Tempesta with
other modules. That implies now Tempesta can't
monopolize `sk_security` and must use `tempesta_sock()`
to get access to socket's blob pointed by `sk_security`.
Fix missed declarations:
lib: __memcpy_fast, __memcmp_fast, __bzero_fast.
tdb: table.c.
These functions don't have decalrations, therefore
make them static to not pollute global scope.
Move test suite declaration from soruce to header file,
that allows to include diclarations around the tests.

Include decalarations of mocked functions in helpers.c,
fix some functions where defenitions diffirent from
declaration.
In new kernel `SKBFL_SHARED_FRAG` moved to `flags`
from `tx_flags`, fix it around Tempesta code.
Remove unused(always zero) `flags` from:
- `tfw_http_msg_setup()`
- `tfw_msg_iter_setup()`
- `ss_skb_alloc_data()`
We have to set signed char explicitly, because kernel
compiles with `-funsigned-char`.
In `tfw_classify_conn_estab()` Tempesta must call
`frang_conn_new()` only for Tempesta's socket.
@const-t const-t force-pushed the kt-1808-migrate-to-linux-6.12.12 branch from 2c8d651 to 16e981b Compare May 15, 2025 11:58
@const-t const-t marked this pull request as ready for review May 15, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants