Umm I fixed the small race. You are right that there is a second race.
> uninitialized vmalloc'd (module_map'd) memory), then the module data
> (including the exception table) gets copied.
> The race window is from the first copy_from_user in sys_init_module until
> the second one.
Yep. Obvious answer. Ignore exception tables for modules that are not
MOD_RUNNING.
-
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/