Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp672655pxu; Fri, 4 Dec 2020 12:32:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtZ9x/rKPV22rL4HB1Qzu6XGrEB0h9zf57YuFh9lkY8a6u1ki4xOwTYYnwRB9cv+RB5Ok6 X-Received: by 2002:aa7:c94b:: with SMTP id h11mr9263235edt.322.1607113948067; Fri, 04 Dec 2020 12:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607113948; cv=none; d=google.com; s=arc-20160816; b=hFe1674D4i8sQkiDni3UX2NKSJqWgLl7T3ChxrB0mia1QhSEwR1YYN6kmdtPXKgAhL eMbi8Ax211+snHj7aO/APzGHWHTrXMz4z9L5xWJL3+Hx1EWxvIfmVBrH368vMmYn14qn YRJLJLoq4qnWm7XNqV0i+wZ7NQNAkLCNLi1JLBytiC5fUQOSU5Ky0toRNKDASp4uDVR7 fmxDF9XbcuR2m+dt39P7i9oT3d7mgUsdyoIk3QBWj1YI9nJvuAjxRUtMuNmChoROSDac apOa3r73XpU4Ugx9uqB9h/T8d+Il3cocvqZq5qrIKmGeot6cpw6dXUoqIXl2KykYzhGa Ew/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zHUsBSyMeZd1dobHZ32LUWZNrWUwT+9A3sZRTSG0ma8=; b=gE5kxvGCb3AteslddsnfmmwdGII6zF77Gc7o6f5NTTOoxQZgDvDpgdPVZk1M2g78xJ +HNsZA+YWFcOmtm0PxaW1cMthEsJ3Z07yneYkhkEgU3TThPA1UINGpNGAA9P9rOg5sAb hhlV4A70BHKVco5yuVaDNcA9FoTjgVvCp1MErztSXt2JRqmJxzV+Ar5pRAKbX/Z0PJWy Xq4EXs1RhwaMfc5/DqhZdskoEkwZHl053LMkFswc9yns0HoN0tX4Q/fBJlnpjWYH9xvJ 3Cu4Bg5959KE4RsZM554CLyTsK+TkI+8B3KqMKBtPBckF6+Czv4+p4h0vwwCln9uLLn5 8uuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VookJG2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k22si4854708edj.473.2020.12.04.12.32.05; Fri, 04 Dec 2020 12:32:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VookJG2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727702AbgLDUab (ORCPT + 99 others); Fri, 4 Dec 2020 15:30:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbgLDUaa (ORCPT ); Fri, 4 Dec 2020 15:30:30 -0500 Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 777EAC0613D1 for ; Fri, 4 Dec 2020 12:29:50 -0800 (PST) Received: by mail-oo1-xc34.google.com with SMTP id z13so1692255ooa.5 for ; Fri, 04 Dec 2020 12:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zHUsBSyMeZd1dobHZ32LUWZNrWUwT+9A3sZRTSG0ma8=; b=VookJG2jTRV5CfG+Ro9+Xc9jEQZ3tImLXRhUBJjdgERgA2CxBmueyBl37VjSPCYtsD tZrkK6MNq8o2WG2yD8Gj76luEb5Uahh6AuTMZch6trdl6CoynBrxc2yD6RtQ+LraClmp MNYhGr9i0ejw0+BIPiSXjNwS54ErSU0L+P1cEu+1jBQaS7O5SN//tvY3Aa54INuBiDWI 9O7gn8XmJjw982npfBEtU8Vmpd7lgRoKJRL3TVdGamZw4Wd3tWfM/UQzy4jCel2+yLHA ZzTi2bD45v5+N5XwPg+Xuhu9mUpd4uZhPBjtJJFmM+HsjKQ8Z4mrl8B1sa2bFcG6v6xV 2VMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zHUsBSyMeZd1dobHZ32LUWZNrWUwT+9A3sZRTSG0ma8=; b=bG2poFOn8kb7luS4E0uaGyRH1m5NXJl9/61daGFTYdLGyG+u79cuvobCf0sTcgfnQ2 QHsbTUo7cE5IVWfRfbRXELFqLJsIQrmTgE1T2PbPEEWRubeipGFa+EguUyLorhFbJJ9N qDxpPr2s+9KFrFVLH7N8wyy/IgHaIDN836roGPn8XIROQAyufUKvLVgmzXJ699vpgB9k O0b0Q4iAv8LR+WnUZvIICd81oNYrZMa2rBpkMg0+ZYF3R3RGINDBAUPCeqSIhTZ3zDot WSnxOlge5qcBg9fP8JKUZKTVSTAyKMsVcVW687ti01Wv9jvwR2xjhXXvH0Ebm9DoWHT1 AjTw== X-Gm-Message-State: AOAM533zF4/LOGKjUPyLGQ3Gq7o2dGk5XbA0yGAcUiNgI7OkAkTJw/gs TwkA7rzVVwDrn0aR+qyoBLoNjNNXJMlSVz3MNihwLg== X-Received: by 2002:a4a:48c3:: with SMTP id p186mr4831961ooa.54.1607113789548; Fri, 04 Dec 2020 12:29:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Fri, 4 Dec 2020 21:29:38 +0100 Message-ID: Subject: Re: BUG: KASAN lib/test_kasan.c To: Jeffrin Jose T Cc: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , kasan-dev , lkml Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Dec 2020 at 19:56, Jeffrin Jose T wrote: > hello, > > detected KASAN BUG > > [ related information ] > > -------------------x-------------------x------------------------> > [ 43.616259] BUG: KASAN: vmalloc-out-of-bounds in > vmalloc_oob+0x146/0x2c0 > > (gdb) l *vmalloc_oob+0x146/0x2c0 > 0xffffffff81b8b0b0 is in vmalloc_oob (lib/test_kasan.c:764). This is the KASAN test. It's a feature, not a bug. ;-) > 759 kfree_sensitive(ptr); > 760 KUNIT_EXPECT_KASAN_FAIL(test, kfree_sensitive(ptr)); > 761 } > 762 > 763 static void vmalloc_oob(struct kunit *test) > 764 { > 765 void *area; > 766 > 767 if (!IS_ENABLED(CONFIG_KASAN_VMALLOC)) { > 768 kunit_info(test, "CONFIG_KASAN_VMALLOC is not > enabled."); > (gdb) l *vmalloc_oob+0x146 > 0xffffffff81b8b1f6 is in vmalloc_oob (lib/test_kasan.c:779). > 774 * The MMU will catch that and crash us. > 775 */ > 776 area = vmalloc(3000); > 777 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, area); > 778 > 779 KUNIT_EXPECT_KASAN_FAIL(test, ((volatile char > *)area)[3100]); > 780 vfree(area); > 781 } > 782 > 783 static struct kunit_case kasan_kunit_test_cases[] = { > ----------------x-----------------------------x--------------------> > > Reported by: Jeffrin Jose T Which CI system is reporting these? If you look, this is the KASAN test, and the report is very much intended since it's testing KASAN. Please blacklist the KASAN test (and any other tests testing debugging tools). Thanks, -- Marco