netrom: Decrease sock refcount when sock timers expire
Commit 63346650 ("netrom: switch to sock timer API") switched to use sock timer API. It replaces mod_timer() by sk_reset_timer(), and del_timer() by sk_stop_timer(). Function sk_reset_timer() will increase the refcount of sock if it is called on an inactive timer, hence, in case the timer expires, we need to decrease the refcount ourselves in the handler, otherwise, the sock refcount will be unbalanced and the sock will never be freed. Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com> Reported-by: <syzbot+10f1194569953b72f1ae@syzkaller.appspotmail.com> Fixes: 63346650 ("netrom: switch to sock timer API") Signed-off-by: David S. Miller <davem@davemloft.net>
parent
2f3fdd8d
-
mentioned in commit 48866fd5
-
mentioned in commit 9619cc7d
-
mentioned in commit 85326235
-
mentioned in commit a01634bf
-
mentioned in commit 6811744b
-
mentioned in commit 25df44e9
-
mentioned in commit 409db27e
-
mentioned in commit d2d3ab1b
-
mentioned in commit 51e394c6
-
mentioned in commit e666990a
-
mentioned in commit a31caf57
-
mentioned in commit fe9b9e62
Please register or sign in to comment