mbox series

[net,0/2] xfrm: two fixes around use_time

Message ID 20230126112130.2341075-1-edumazet@google.com (mailing list archive)
Headers show
Series xfrm: two fixes around use_time | expand

Message

Eric Dumazet Jan. 26, 2023, 11:21 a.m. UTC
First patch fixes a long/time64_t mismatch,
found while addressing a syzbot report.

Second patch adds annotations to reads and
writes of (struct xfrm_lifetime_cur)->use_time field.

Eric Dumazet (2):
  xfrm: consistently use time64_t in xfrm_timer_handler()
  xfrm: annotate data-race around use_time

 net/xfrm/xfrm_policy.c | 11 +++++++----
 net/xfrm/xfrm_state.c  | 18 +++++++++---------
 2 files changed, 16 insertions(+), 13 deletions(-)

Comments

Steffen Klassert Jan. 30, 2023, 10:31 a.m. UTC | #1
On Thu, Jan 26, 2023 at 11:21:28AM +0000, Eric Dumazet wrote:
> First patch fixes a long/time64_t mismatch,
> found while addressing a syzbot report.
> 
> Second patch adds annotations to reads and
> writes of (struct xfrm_lifetime_cur)->use_time field.
> 
> Eric Dumazet (2):
>   xfrm: consistently use time64_t in xfrm_timer_handler()
>   xfrm: annotate data-race around use_time

Both applied, thanks a lot Eric!