Re: [Patch net] net: check both type and procotol for tcp sockets

2015-12-17 Thread David Miller
From: Cong Wang Date: Wed, 16 Dec 2015 23:39:04 -0800 > Dmitry reported the following out-of-bound access: > > Call Trace: > [] __asan_report_load4_noabort+0x3e/0x40 > mm/kasan/report.c:294 > [] sock_setsockopt+0x1284/0x13d0 net/core/sock.c:880 > [< inline >] SYSC_setsockopt net/socke

Re: [Patch net] net: check both type and procotol for tcp sockets

2015-12-17 Thread Willem de Bruijn
On Thu, Dec 17, 2015 at 2:39 AM, Cong Wang wrote: > Dmitry reported the following out-of-bound access: > > Call Trace: > [] __asan_report_load4_noabort+0x3e/0x40 > mm/kasan/report.c:294 > [] sock_setsockopt+0x1284/0x13d0 net/core/sock.c:880 > [< inline >] SYSC_setsockopt net/socket.c:17

[Patch net] net: check both type and procotol for tcp sockets

2015-12-16 Thread Cong Wang
Dmitry reported the following out-of-bound access: Call Trace: [] __asan_report_load4_noabort+0x3e/0x40 mm/kasan/report.c:294 [] sock_setsockopt+0x1284/0x13d0 net/core/sock.c:880 [< inline >] SYSC_setsockopt net/socket.c:1746 [] SyS_setsockopt+0x1fe/0x240 net/socket.c:1729 [] entry_SY