[Devel] [PATCH 3/4] kasan: always taint kernel on report.

Vladimir Davydov vdavydov at parallels.com
Mon Sep 7 06:59:25 PDT 2015


On Fri, Sep 04, 2015 at 05:06:15PM +0300, Andrey Ryabinin wrote:
...
> diff --git a/mm/kasan/report.c b/mm/kasan/report.c
> index ad69bac..17af572 100644
> --- a/mm/kasan/report.c
> +++ b/mm/kasan/report.c
> @@ -212,6 +212,7 @@ static void kasan_report_error(struct kasan_access_info *info)
>  	}
>  	pr_err("================================="
>  		"=================================\n");
> +	add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);

Do we really want to disable lockdep here?

>  	spin_unlock_irqrestore(&report_lock, flags);
>  }
>  



More information about the Devel mailing list