login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
12
Re: [PATCH] Avoid buffer overflows in get_user_pages()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jiri Kosina <jikos@...>
To: Andrew Morton <akpm@...>
Cc: Jonathan Corbet <corbet@...>, <linux-kernel@...>, <torvalds@...>
Subject:
Re: [PATCH] Avoid buffer overflows in get_user_pages()
Date: Tuesday, February 12, 2008 - 6:35 am
On Mon, 11 Feb 2008, Andrew Morton wrote:
quoted text
> > + if (len <= 0) > > + return 0; > > /* > > * Require read or write permissions. > > * If 'force' is set, we only require the "MAY" flags. > Can we just convert > do { > ... > } while (len); > into > while (len) { > ... > }
How would that help? Rather while (len > 0) { ... } would do the trick. -- Jiri Kosina --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Avoid buffer overflows in get_user_pages()
, Jonathan Corbet
, (Mon Feb 11, 7:17 pm)
Re: [PATCH] Avoid buffer overflows in get_user_pages()
, Oliver Pinter
, (Thu Feb 14, 12:45 pm)
Re: [PATCH] Avoid buffer overflows in get_user_pages()
, Jonathan Corbet
, (Thu Feb 14, 5:09 pm)
Re: [PATCH] Avoid buffer overflows in get_user_pages()
, Andrew Morton
, (Tue Feb 12, 3:46 am)
Re: [PATCH] Avoid buffer overflows in get_user_pages()
, Jiri Kosina
, (Tue Feb 12, 6:35 am)
Re: [PATCH] Avoid buffer overflows in get_user_pages()
, Nick Piggin
, (Mon Feb 11, 7:45 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 26/60] microblaze_v4: time support
Jon Smirl
Re: 463 kernel developers missing!
Andrew Morton
Re: x86: 4kstacks default
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Jiri Olsa
[PATCHv5 0/2] net: fix race in the receive/select
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
562 guests
online.
Syndicate