[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <adabq5klvw1.fsf@cisco.com>
Date: Tue, 11 Mar 2008 15:48:46 -0700
From: Roland Dreier <rdreier@...co.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: akpm@...l.org, wli@...omorphy.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Terminate hugetlbfs mount argument list
> The match_table_t for the mount arguments in hugetlbfs wasn't
> terminated as match_tokens expect. I didn't see a crash just code
> audit, but it's still safer to terminate it in case the variables after
> that in .data are not NULL.
I think you're misunderstanding the match_token() interface. The
comment before match_token() says:
* @table: match_table_t describing the set of allowed option tokens and the
* arguments that may be associated with them. Must be terminated with a
* &struct match_token whose pattern is set to the NULL pointer.
and that's exactly what already exists here:
{Opt_gid, "gid=%u"},
{Opt_err, NULL},
So your patch is effectively an obfuscated NOP.
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists