Skip to content

Commit

Permalink
Fix #1157: the probles in in nested __kernel_fpu_begin_bh() calls:
Browse files Browse the repository at this point in the history
firstly in DEFINE_TLS_TEST()->kernel_fpu_begin() and secondly in
ttls_ecp_group_free()->ttls_bzero_safe()->kernel_fpu_begin().

The fix moves all the TLS unit tests to test_tls.c from tls/ and
make each test responsible for calling kernel_fpu_{begin,end}().
The crypto routines can be split into 2 groups: called from process
context of Tempesta FW initialization and called in run-time, softirq
context. Only the second group must be called with saved FPU context.
In fact, current crypto routines (covered by the test) don't use SIMD
much and this is going to change in #1064.
  • Loading branch information
krizhanovsky committed Jan 26, 2019
1 parent 8767e82 commit 5755f72
Show file tree
Hide file tree
Showing 3 changed files with 415 additions and 340 deletions.
Loading

0 comments on commit 5755f72

Please sign in to comment.