Re: [PATCH v2 net] tun: Fix NULL pointer dereference in XDP redirect

2018-05-29 Thread David Miller
From: Toshiaki Makita Date: Mon, 28 May 2018 19:37:49 +0900 > Calling XDP redirection requires bh disabled. Softirq can call another > XDP function and redirection functions, then the percpu static variable > ri->map can be overwritten to NULL. ... > v2: > - Removed preempt_disable/enable since

Re: [PATCH v2 net] tun: Fix NULL pointer dereference in XDP redirect

2018-05-28 Thread Jason Wang
On 2018年05月28日 18:37, Toshiaki Makita wrote: Calling XDP redirection requires bh disabled. Softirq can call another XDP function and redirection functions, then the percpu static variable ri->map can be overwritten to NULL. This is a generic XDP case called from tun. [ 3535.736058] BUG: unab

[PATCH v2 net] tun: Fix NULL pointer dereference in XDP redirect

2018-05-28 Thread Toshiaki Makita
Calling XDP redirection requires bh disabled. Softirq can call another XDP function and redirection functions, then the percpu static variable ri->map can be overwritten to NULL. This is a generic XDP case called from tun. [ 3535.736058] BUG: unable to handle kernel NULL pointer dereference at 0