Re: [PATCH 1/2 v2] ftrace: don't allow IPMODIFY without proper compiler support

From: Jiri Kosina
Date: Thu Jan 15 2015 - 04:34:59 EST


On Thu, 15 Jan 2015, Masami Hiramatsu wrote:

> Hmm, if this binary doesn't support IPMODIFY, it should return -ENOTSUPP.

Good poing, will send v3.

> And also, IMHO, we'd better reject registering ftrace_ops with IPMODIFY
> in this situation before updating hash table.

That would happen automatically if we return -ENOTSUPP, right? Because the
check in ftrace_hash_move() would cause freeing of the new_hash and the
error value would get propagated out to ftrace_hash_move() callers.

--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/