Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1797322ybt; Mon, 15 Jun 2020 09:36:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEBlqMB36z+TatZpb/DTKIby4Q8rhuQnblSFeVl62ldldeJ59CAZUzLU3q1zCRtwcoVmi5 X-Received: by 2002:a17:906:178c:: with SMTP id t12mr25419154eje.464.1592238989500; Mon, 15 Jun 2020 09:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592238989; cv=none; d=google.com; s=arc-20160816; b=C9W3/2299J0okT3UV5/IUZWjRwBY56JX8WjuS15AdWH+9VdDu77hbpoRuweGHH+Wx0 UVOZzS18rTnGZshYoxKyJz49S5C18iXtKcB9SvJK2ZD+LPwncQmzfOMqJmgnmBr1VJTJ ygEr411+8owAIh2GUJXQCLAt7zfwBuvbrF+EvHANNn+GP5Ow8BogU5jdy01uLxaLxULA NhLyKU8fsOss+tS/VTURa02BdVwwCjmcNwvB8dkeQ/WfIrqMYBI2PXSK2lwXgyeRF3+4 WB+6KrcACOpMqaXxojUxdvrBY45c9gSeJgYFzXPkWzdIHCeO58BACDua9cYwLe0D7j9Y sx/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=DyQ9X+CHS1SbCZvi5JD/ErZwYHtp+v8iH4fr/ScY52w=; b=nru6QkGl9BHPeKsd7WyhCxHgrLj3IDlzNRmDY1BrDa8ouhAlbZYYMvjQ917C2f/x4X v09usqDX5IB1wtvp4jM2D5N89ATQ4s0xj0ggCTTtomFuLvoS01hBvCuzc5zr2GSelH0Z CBhKvkHMVeOMoZGs2IbyJGpebvpGQRPDwef9em6CISJs3LD8KjNysd0fXJBgMjX/vJth sbvyNalPQm7eibSzNvB1mgjFMJ85ClBQ/j+USSZibzmK0Ocq5RxwyY497Vps3Dz9YZt+ TI/g0EsxJGSHnpGnQMKNsxkZKLhkNn86GQQTS7rYj5DcrTBz01PHKA7WNwKEc353kW4/ D8hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=C4AOwykj; 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 w23si9277212edl.586.2020.06.15.09.36.05; Mon, 15 Jun 2020 09:36:29 -0700 (PDT) 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=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=C4AOwykj; 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 S1730773AbgFOQdy (ORCPT + 99 others); Mon, 15 Jun 2020 12:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730135AbgFOQdx (ORCPT ); Mon, 15 Jun 2020 12:33:53 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DB42C061A0E for ; Mon, 15 Jun 2020 09:33:53 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id dp10so8019750qvb.10 for ; Mon, 15 Jun 2020 09:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=DyQ9X+CHS1SbCZvi5JD/ErZwYHtp+v8iH4fr/ScY52w=; b=C4AOwykjBsPT6pKnY+hXtp39Kmr6gtq4gDm7K6Z74U+ZNCtJOjUSpj3bIH7cVR0LqA RoUCurTh+rURQM/ZR4ygWRtfhmA3n5kfffLc01eIxcj/0aGRqIsOBkT8sUb77MAJK7Xz OisRXR8OKn0QIEwELDc6BQRhqPFD6TzrM5N0LL1nQ/jourBpdnQEIcN3FwU+UiSL6124 6fXFxhrWHCldh1IadWF3LiIoZqJ53nP4vYa9P7hzytZuWUmWBLeld32fOcD409DHI7pG qWnWAnhnR0sXkwSifTAQBdmrLNL0SiGig78/sn9Qx25FgP6/vFjj9J1CQjvmtzqS+gkX 7Waw== 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:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=DyQ9X+CHS1SbCZvi5JD/ErZwYHtp+v8iH4fr/ScY52w=; b=jSRr/I3Qe79kYyiidCPFyj59kPLVzAT5s2erWmf6nvD6bptsptrUHVfQPlg2n5h2ht C7ccV0NIhkCs9zunH2AzniOQaVWDj3Rd/A5UhCezW81NBkt3H4ifOTtfb1yJJ0viOeDr mnAs4wuWGiSt2tVqWugmUsAio72/SswsFQEIhwl8vQ4XEzWsHJRqeqFN+SaPSegMRtbA xl4hMCSL/xMbCoNSuwKt5igmBPyF+/qkOkBhApCiJx8/01yGs9sb96Pvdhe4stqK/fxT fUEukxtDnZmf2PxiTdDs/hnGgo4o4+mcmyZzf3I0aXmK3ocoKnKK0lHwNXQZm6pJU2Z+ hT1g== X-Gm-Message-State: AOAM530S3a0lwITfawpuhXqK4MhSbeKk7VRc4no7aYCbaB7BVMRsellS M2QJ2YH/sJB7sQQ/NMQpj24b4Q== X-Received: by 2002:a0c:e9cd:: with SMTP id q13mr26164373qvo.23.1592238832266; Mon, 15 Jun 2020 09:33:52 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id h19sm10770272qkl.49.2020.06.15.09.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 09:33:51 -0700 (PDT) Message-ID: Subject: Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions From: Vitor Massaru Iha To: David Gow Cc: KUnit Development , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , Brendan Higgins , linux-kernel-mentees@lists.linuxfoundation.org, Kees Cook , linux@rasmusvillemoes.dk Date: Mon, 15 Jun 2020 13:33:48 -0300 In-Reply-To: References: <20200611215501.213058-1-vitor@massaru.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-06-13 at 14:56 +0800, David Gow wrote: > On Fri, Jun 12, 2020 at 5:55 AM Vitor Massaru Iha > wrote: > > This adds the convertion of the runtime tests of check_*_overflow > > fuctions, > > from `lib/test_overflow.c`to KUnit tests. > > Nit: couple of minor typos here: convertion -> conversion, and > functions -> functions > > > The log similar to the one seen in dmesg running test_overflow can > > be > > seen in `test.log`. > > > > Signed-off-by: Vitor Massaru Iha > > I've tested that this builds and runs on my system, and it all seems > to be working fine! > > Tested-by: David Gow > > > --- > > lib/Kconfig.debug | 17 ++ > > lib/Makefile | 1 + > > lib/kunit_overflow_test.c | 590 > > ++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 608 insertions(+) > > create mode 100644 lib/kunit_overflow_test.c > > Echoing what Brendan and Kees mentioned, it'd be nicer to have this > replace the existing test, both because there's no need for redundant > tests (one will get out-of-date), and so that we can have a nice diff > showing the changes made as part of the conversion. > > Cheers, > -- David Thank you David, I will fix your suggestions.