Re: [PATCH net] strparser: Do not call mod_delayed_work with a timeout of LONG_MAX

2018-04-22 Thread David Miller
From: Doron Roberts-Kedes Date: Fri, 20 Apr 2018 12:11:11 -0700 > struct sock's sk_rcvtimeo is initialized to > LONG_MAX/MAX_SCHEDULE_TIMEOUT in sock_init_data. Calling > mod_delayed_work with a timeout of LONG_MAX causes spurious execution of > the work function. timer->expires

[PATCH net] strparser: Do not call mod_delayed_work with a timeout of LONG_MAX

2018-04-20 Thread Doron Roberts-Kedes
struct sock's sk_rcvtimeo is initialized to LONG_MAX/MAX_SCHEDULE_TIMEOUT in sock_init_data. Calling mod_delayed_work with a timeout of LONG_MAX causes spurious execution of the work function. timer->expires is set equal to jiffies + LONG_MAX. When timer_base->clk falls behind the current value of