| To: | Olaf Kirch <okir@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Check for SOL_SOCKET in compat_sys_getsockopt |
| From: | David Woodhouse <dwmw2@xxxxxxxxxxxxx> |
| Date: | Fri, 07 Jan 2005 10:35:29 +0000 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20050103143306.GG25446@xxxxxxx> |
| References: | <20050103143306.GG25446@xxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Mon, 2005-01-03 at 15:33 +0100, Olaf Kirch wrote: > compat_sys_getsockopt checks for SO_RCVTIMEO/SO_SNDTIMEO without > making sure that the level is actually SOL_SOCKET. This can break > getsockopt() requests for other protocols. It's a band-aid, not a fix. Trying to do the conversion in compat_sys_getsockopt() for _all_ possible sockopts is broken. I think we need to let each protocol offer compat [gs]etsockopt() methods of its own, or at least have the existing [gs]etsockopt() methods check whether the current process is 32-bit or 64-bit and do the right thing. Have you started looking at netfilter with 32-bit userspace yet? :) -- dwmw2 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [RFC PATCH] Fix double dereference, YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | Re: [PATCH] 1/5: eepro: cache EEPROM values, Aristeu Sergio Rozanski Filho |
| Previous by Thread: | [PATCH] Check for SOL_SOCKET in compat_sys_getsockopt, Olaf Kirch |
| Next by Thread: | [PATCH] [IPVS] run master/backup sync daemon at a time, Wensong Zhang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |