You can figure it yourself, fairly easily. If you happen to make
start point at something less than the page pointer, it will assume
that you wanted that value to be interpreted as a file offset to be
added. So providing >3k by ignoring the page provided and pointing
`start' to a large static area all of your own will ONLY work if that
area happens to have an addr > page. That's a disaster waiting to
happen.
Yes, the start hack can now be removed: it was insufficient, and
AFAIK, it was only used in the (removed-in-2.3) ip_fw.c code.
> Storing the rule number in ppos seems strange. I think you should
> have kept the natural ppos semantics and used a map ppos<->rule index.
Which I keep uptodate as rules get inserted and deleted, how exactly?
I don't think you understand the problem. The solution could have
been to insist that all rules be formatted to uniform length (like the
2.0 ip_fw.c code tried to do, only they used %9u not %10u for the
counters and so failed).
> > the kernel is flawed. What language do humans speak? There isn't
> > much motiviation to try to fix something that isn't really fixable.
>
> Well, I disagree, but that's beside the point.
This one I'll address off-line.
Rusty.
-- Hacking time.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/