-
Notifications
You must be signed in to change notification settings - Fork 104
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
Migrate to linux 6.12.12 #2339
Draft
const-t
wants to merge
22
commits into
master
Choose a base branch
from
kt-1808-migrate-to-linux-6.12.12
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Migrate to linux 6.12.12 #2339
+3,729
−254
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
768f9fd
to
3a9e4c5
Compare
0870cb8
to
039668c
Compare
sk_alloc()->cgroup_sk_alloc() now inits default cgroup.
e7509fa
to
3bc39cb
Compare
Problems: 1. In the new kernel, assembly functions uniformly return from `__x86_return_thunk`. However, our assembly code uses the original `ret` instruction, so objtool in the kernel will notice this is a naked return during compilation. 2. `SYM_FUNC_START` in the new kernel will add endbr64 to the head of the assembly function, and all indirect jumps to ENDBR instructions, that is, the code snippet within the same function, will fail, but we use jump tables in the assembly function to perform indirect jumps. It will raise CET exception: https://en.wikipedia.org/wiki/X86_instruction_listings#Added_with_Intel_CET). Solutions: 1. Substitute the `ret` with `RET`, a macro in the new kernel to ensure the correct return. 2. Use endbr64 in the begining of each switch label
If `CONFIG_FORTIFY_SOURCE` is set and memset or memcpy is applied to flexible array, inside one of these functions will be called `__builtin_object_size()` that can't determine size of the flexible array that leads to compile time error.
75d2108
to
11e6f6c
Compare
-Wempty-body -Wold-style-declaration 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(...); ```
-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`.
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.
11e6f6c
to
cba4791
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.