RE: [PATCH 03/26] bpfilter: reject kernel addresses

2020-07-23 Thread David Laight
From: 'Christoph Hellwig' > Sent: 23 July 2020 15:45 > > On Thu, Jul 23, 2020 at 02:42:11PM +, David Laight wrote: > > From: Christoph Hellwig > > > Sent: 23 July 2020 07:09 > > > > > > The bpfilter user mode helper processes the optval address using > > > process_vm_readv. Don't send it kern

Re: [PATCH 03/26] bpfilter: reject kernel addresses

2020-07-23 Thread 'Christoph Hellwig'
On Thu, Jul 23, 2020 at 02:42:11PM +, David Laight wrote: > From: Christoph Hellwig > > Sent: 23 July 2020 07:09 > > > > The bpfilter user mode helper processes the optval address using > > process_vm_readv. Don't send it kernel addresses fed under > > set_fs(KERNEL_DS) as that won't work. >

RE: [PATCH 03/26] bpfilter: reject kernel addresses

2020-07-23 Thread David Laight
From: Christoph Hellwig > Sent: 23 July 2020 07:09 > > The bpfilter user mode helper processes the optval address using > process_vm_readv. Don't send it kernel addresses fed under > set_fs(KERNEL_DS) as that won't work. What sort of operations is the bpf filter doing on the sockopt buffers? An