Re: [PATCH net 1/2] tun: hold napi_mutex for all napi operations

2019-01-07 Thread Stanislav Fomichev
On 01/07, Eric Dumazet wrote: > > > On 01/07/2019 01:02 PM, Stanislav Fomichev wrote: > > On 01/07, Eric Dumazet wrote: > >> On Mon, Jan 7, 2019 at 12:02 PM Stanislav Fomichev wrote: > >>> > >>> BUG: unable to handle kernel NULL pointer dereference at 00d1 > >>> Call Trace: > >>> ?

Re: [PATCH net 1/2] tun: hold napi_mutex for all napi operations

2019-01-07 Thread Eric Dumazet
On 01/07/2019 01:02 PM, Stanislav Fomichev wrote: > On 01/07, Eric Dumazet wrote: >> On Mon, Jan 7, 2019 at 12:02 PM Stanislav Fomichev wrote: >>> >>> BUG: unable to handle kernel NULL pointer dereference at 00d1 >>> Call Trace: >>> ? napi_gro_frags+0xa7/0x2c0 >>> tun_get_user+0xb

Re: [PATCH net 1/2] tun: hold napi_mutex for all napi operations

2019-01-07 Thread Stanislav Fomichev
On 01/07, Eric Dumazet wrote: > On Mon, Jan 7, 2019 at 12:02 PM Stanislav Fomichev wrote: > > > > BUG: unable to handle kernel NULL pointer dereference at 00d1 > > Call Trace: > > ? napi_gro_frags+0xa7/0x2c0 > > tun_get_user+0xb50/0xf20 > > tun_chr_write_iter+0x53/0x70 > > new_sync

Re: [PATCH net 1/2] tun: hold napi_mutex for all napi operations

2019-01-07 Thread Eric Dumazet
On Mon, Jan 7, 2019 at 12:02 PM Stanislav Fomichev wrote: > > BUG: unable to handle kernel NULL pointer dereference at 00d1 > Call Trace: > ? napi_gro_frags+0xa7/0x2c0 > tun_get_user+0xb50/0xf20 > tun_chr_write_iter+0x53/0x70 > new_sync_write+0xff/0x160 > vfs_write+0x191/0x1e0 >

[PATCH net 1/2] tun: hold napi_mutex for all napi operations

2019-01-07 Thread Stanislav Fomichev
BUG: unable to handle kernel NULL pointer dereference at 00d1 Call Trace: ? napi_gro_frags+0xa7/0x2c0 tun_get_user+0xb50/0xf20 tun_chr_write_iter+0x53/0x70 new_sync_write+0xff/0x160 vfs_write+0x191/0x1e0 __x64_sys_write+0x5e/0xd0 do_syscall_64+0x47/0xf0 entry_SYSCALL_64_after_hw