On Thu, Jun 27, 2013 at 10:22:38PM -0400, Richard Yao wrote: > generic_file_llseek_size() handles whence values in a switch statement, > but it lacks cases for both SEEK_SET and invalid values. This causes it > to treat all invalid whence values as SEEK_SET, which is wrong. > > We fix that by adding a case for SEEK_SET and a default case. NAK. Validation of whence is done before we even get to vfs_llseek(). Leaving it to ->llseek() instances would've been an insanity. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html