Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp612905pxu; Fri, 4 Dec 2020 11:00:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOw1I2M8IMw5aBBu0dR2tQaEGx3dgkSnyjW7bHFHSqBaFuQ+3J6V7Znsu91en1KxYboLeU X-Received: by 2002:aa7:ca41:: with SMTP id j1mr9158810edt.295.1607108406995; Fri, 04 Dec 2020 11:00:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607108406; cv=none; d=google.com; s=arc-20160816; b=PJ188C5tzOsh2x/ddZxp5jbe7b+QhiiW5XK2/Ur3sXKffTinHBHeyvmfuzSIhnUcFz ZZ0tMcYQOpXzG/EoPRZe1Oiflw6LWxKs9LA5G2dQZzZA+XrH9KTRMQdhl/+mcmhfTj54 ulkSBXEfa5l0YsUAR+4zDgiUfK6XKwGzVZO5DPl0w5hBNCOMlVwWw5Y/8v2V56xhogOf tegIaVV5STWxONfdwwoUFgHQKtOlbgICDHZc05EXuk5XO/RReDLU8sI3hbpsuTPHf+Sf dWUnM8gZbWonTiMQyvRQRyX/uydWCew0IEwrixwftw+6hDxJqLSZDjPEPAACBKPdBEh2 +TJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:cc:to:from:subject:message-id:dkim-signature; bh=BabgtABiUfhimEJA8On2IJzMRIuNBST9b1rkNpp1/zM=; b=WlCjcVREgP2k7NO0TvlBqnZVMtePMUpkMkLUjPLbr6v7b39LQpsK11m0WEj8ZHJTRY kUExn6ay0XzyUgVOFcoGXNJxwutJk+rUuUABJ+fSYmMFLjuoCdlqHP408oXDVK3Zg2Qv j5KYtLby/cHU8cP3YzYO56dl085Tbl0+LMuEbYK/7eb8expFebXyVU/0teCcuTD5yJfa nQAdyBop9dzYjoBg0XFk7ljbSlzHepXys0cDcr+XMxTs59WtNiqN+f5rG86wySZDW4Pl h666mTbFHJQXLCYYjmUPrnW/IeOg9BW9E4rjj3rOT1Xfnc1iPLW5nwEFNtn++d3vW0A9 vqNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rajagiritech-edu-in.20150623.gappssmtp.com header.s=20150623 header.b=jlWQjTCA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si1124052ejn.391.2020.12.04.10.59.43; Fri, 04 Dec 2020 11:00:06 -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=@rajagiritech-edu-in.20150623.gappssmtp.com header.s=20150623 header.b=jlWQjTCA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730541AbgLDS4z (ORCPT + 99 others); Fri, 4 Dec 2020 13:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbgLDS4z (ORCPT ); Fri, 4 Dec 2020 13:56:55 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9270C061A4F for ; Fri, 4 Dec 2020 10:56:14 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id f14so3645150pju.4 for ; Fri, 04 Dec 2020 10:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rajagiritech-edu-in.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:user-agent:mime-version :content-transfer-encoding; bh=BabgtABiUfhimEJA8On2IJzMRIuNBST9b1rkNpp1/zM=; b=jlWQjTCABjt0T6VkmgDMzUer9qJfAm/W+dFL22LucG+QMS0Ysu+kc3L26p56TYv+ym sPLzRBTY9kE+7EExdFWbp+7VpfqOdXMEVzfl5XESfp7KyvR0I8jOwgjm4HhoXsitBrJ2 XfH6fe++OTDy83zJ5O8YrMRs7T8xOQoLNN1oX5s07TM2iguwPPTvHBsq6PWxTgESFhkX g/Fw3IIlhYn9seSWFTZeJbFm4spVel7h5JG40fsN23Isw/F0TsTt24PH+VxXqMPkNli/ tsXbZcIzld5tixUASBovbUmXvGZAcSNrLcfClWFTnM5gkArKaMNiQrhHC8vi/Lx96gTg lPMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:user-agent :mime-version:content-transfer-encoding; bh=BabgtABiUfhimEJA8On2IJzMRIuNBST9b1rkNpp1/zM=; b=KJ5blR+T/bBsas3qER/2R3qG11wqMbu0UWRYypOdteqhMcJDgHzOdIaflAo2WPRuVT fyy6GyF5biM3Qd1lU9YEhfbY8NzwMHZUPIge2GWnDRaaz8xM351VijJcmBQk0SvQU6ul F9BAz8ZjUWHM4mMFhtdg/U+sXXU6IX4m9d7ulCFfDIqQe5a5cFfFsuB+qfWxU0+Ffryn +WW3RK6MnFTaB/23dZax8RZwxH6QsrYQbieYzRzvZ1ylhHKJ0Kc8FEd/M6mwPTw4IJ4c M8hi/A/7B9cFGpzLYJi/Mxg89u+PqoreLCrcSUWmVJbkNnJCW4/hE3zik9OmVurLOpkl e2cA== X-Gm-Message-State: AOAM532YyrblxU7Th+Wz7cvNM5r6iyRKsr5B64XSGWIaYfRs+92Xs8gU P7sNf/iu7iS3WkRRiFT5E+6/LFyaQu21yQ== X-Received: by 2002:a17:902:ee52:b029:da:4dee:1a54 with SMTP id 18-20020a170902ee52b02900da4dee1a54mr5030102plo.29.1607108174434; Fri, 04 Dec 2020 10:56:14 -0800 (PST) Received: from [192.168.1.9] ([122.164.27.91]) by smtp.gmail.com with ESMTPSA id d4sm2833964pjz.28.2020.12.04.10.56.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 10:56:13 -0800 (PST) Message-ID: Subject: BUG: KASAN lib/test_kasan.c From: Jeffrin Jose T To: aryabinin@virtuozzo.com, Alexander Potapenko , Dmitry Vyukov Cc: kasan-dev@googlegroups.com, lkml Date: Sat, 05 Dec 2020 00:26:10 +0530 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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 -- software engineer rajagiri school of engineering and technology - autonomous