advanced checks for Linus tree

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>