From: Guenter Roeck <linux@roeck-us.net>
To: Rae Moar <rmoar@google.com>
Cc: shuah@kernel.org, davidgow@google.com, dlatypov@google.com,
brendan.higgins@linux.dev, linux-kselftest@vger.kernel.org,
kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org,
keescook@chromium.org, linux-hardening@vger.kernel.org,
jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org
Subject: Re: [PATCH v3 0/9] kunit: Add test attributes API
Date: Fri, 28 Jul 2023 03:38:10 -0700 [thread overview]
Message-ID: <59dc28b1-298c-4e7b-b35f-0b94071f4cb5@roeck-us.net> (raw)
In-Reply-To: <20230725212522.1622716-1-rmoar@google.com>
On Tue, Jul 25, 2023 at 09:25:11PM +0000, Rae Moar wrote:
> Hello everyone,
>
> This patch series adds a test attributes framework to KUnit.
>
With this series in linux-next, almost 50% of my boot tests crash,
and many others show warnings tracebacks.
Example crash from x86_64 boot attempt attached.
Guenter
---
[ 6.165419] ok 6 lib_sort
[ 6.166044] KTAP version 1
[ 6.166139] # Subtest: kunit_executor_test
[ 6.166247] # module: kunit
[ 6.166261] 1..8
[ 6.168252] ok 1 parse_filter_test
[ 6.169579] BUG: unable to handle page fault for address: ffffd757e80004c8
[ 6.169872] #PF: supervisor read access in kernel mode
[ 6.169990] #PF: error_code(0x0000) - not-present page
[ 6.170142] PGD ffd4067 P4D ffd4067 PUD 0
[ 6.170346] Oops: 0000 [#1] PREEMPT SMP PTI
[ 6.170521] CPU: 0 PID: 182 Comm: kunit_try_catch Tainted: G N 6.5.0-rc3-next-20230728 #1
[ 6.170735] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.2-0-gea1b7a073390-prebuilt.qemu.org 04/01/2014
[ 6.171024] RIP: 0010:kfree+0x61/0x140
[ 6.171313] Code: 80 48 01 e8 0f 82 ec 00 00 00 48 c7 c2 00 00 00 80 48 2b 15 29 bf aa 01 48 01 d0 48 c1 e8 0c 48 c1 e0 06 48 03 05 07 bf aa 01 <48> 8b 50 08 48 89 c7 f6 c2 01 0f 85 b3 00 00 00 66 90 48 8b 07 f6
[ 6.171715] RSP: 0000:ffffb48f80267dc8 EFLAGS: 00000286
[ 6.171847] RAX: ffffd757e80004c0 RBX: ffffa34583aef5d0 RCX: 0000000000000000
[ 6.171998] RDX: 00005cba00000000 RSI: ffffffff95cb1ad5 RDI: ffffb48f80013cd0
[ 6.172146] RBP: ffffb48f80013cd0 R08: 0000000000000001 R09: 0000000000000001
[ 6.172293] R10: 0000000000000001 R11: 0000000000000001 R12: ffffb48f80267e74
[ 6.172445] R13: 0000000000000000 R14: ffffa34583bf4000 R15: 0000000000000002
[ 6.172620] FS: 0000000000000000(0000) GS:ffffa3458f800000(0000) knlGS:0000000000000000
[ 6.172793] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6.172917] CR2: ffffd757e80004c8 CR3: 0000000009048000 CR4: 00000000007506f0
[ 6.173089] PKRU: 55555554
[ 6.173177] Call Trace:
[ 6.173313] <TASK>
[ 6.173494] ? __die+0x1f/0x70
[ 6.173600] ? page_fault_oops+0x14a/0x460
[ 6.173693] ? search_exception_tables+0x37/0x50
[ 6.173793] ? fixup_exception+0x21/0x310
[ 6.173887] ? exc_page_fault+0xee/0x1c0
[ 6.173977] ? asm_exc_page_fault+0x26/0x30
[ 6.174076] ? kunit_filter_suites+0x3a5/0x460
[ 6.174192] ? kfree+0x61/0x140
[ 6.174271] ? kfree+0x106/0x140
[ 6.174353] kunit_filter_suites+0x3a5/0x460
[ 6.174473] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[ 6.174604] filter_suites_test+0xea/0x2c0
[ 6.174702] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[ 6.174828] kunit_generic_run_threadfn_adapter+0x15/0x20
[ 6.174941] kthread+0xef/0x120
[ 6.175012] ? __pfx_kthread+0x10/0x10
[ 6.175098] ret_from_fork+0x2f/0x50
[ 6.175177] ? __pfx_kthread+0x10/0x10
[ 6.175260] ret_from_fork_asm+0x1b/0x30
[ 6.175387] </TASK>
[ 6.175466] Modules linked in:
[ 6.175640] CR2: ffffd757e80004c8
[ 6.175887] ---[ end trace 0000000000000000 ]---
[ 6.176029] RIP: 0010:kfree+0x61/0x140
[ 6.176119] Code: 80 48 01 e8 0f 82 ec 00 00 00 48 c7 c2 00 00 00 80 48 2b 15 29 bf aa 01 48 01 d0 48 c1 e8 0c 48 c1 e0 06 48 03 05 07 bf aa 01 <48> 8b 50 08 48 89 c7 f6 c2 01 0f 85 b3 00 00 00 66 90 48 8b 07 f6
[ 6.176478] RSP: 0000:ffffb48f80267dc8 EFLAGS: 00000286
[ 6.176589] RAX: ffffd757e80004c0 RBX: ffffa34583aef5d0 RCX: 0000000000000000
[ 6.176729] RDX: 00005cba00000000 RSI: ffffffff95cb1ad5 RDI: ffffb48f80013cd0
[ 6.176869] RBP: ffffb48f80013cd0 R08: 0000000000000001 R09: 0000000000000001
[ 6.177008] R10: 0000000000000001 R11: 0000000000000001 R12: ffffb48f80267e74
[ 6.177150] R13: 0000000000000000 R14: ffffa34583bf4000 R15: 0000000000000002
[ 6.177290] FS: 0000000000000000(0000) GS:ffffa3458f800000(0000) knlGS:0000000000000000
[ 6.177448] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6.177564] CR2: ffffd757e80004c8 CR3: 0000000009048000 CR4: 00000000007506f0
[ 6.177704] PKRU: 55555554
[ 6.177807] note: kunit_try_catch[182] exited with irqs disabled
next prev parent reply other threads:[~2023-07-28 10:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 21:25 [PATCH v3 0/9] kunit: Add test attributes API Rae Moar
2023-07-25 21:25 ` [PATCH v3 1/9] kunit: Add test attributes API structure Rae Moar
2023-07-25 21:25 ` [PATCH v3 2/9] kunit: Add speed attribute Rae Moar
2023-07-25 21:25 ` [PATCH v3 3/9] kunit: Add module attribute Rae Moar
2023-07-25 21:25 ` [PATCH v3 4/9] kunit: Add ability to filter attributes Rae Moar
2023-08-29 22:46 ` Guenter Roeck
2023-08-30 0:24 ` David Gow
2023-08-30 1:48 ` Guenter Roeck
2023-07-25 21:25 ` [PATCH v3 5/9] kunit: tool: Add command line interface to filter and report attributes Rae Moar
2023-07-25 21:25 ` [PATCH v3 6/9] kunit: memcpy: Mark tests as slow using test attributes Rae Moar
2023-07-25 21:25 ` [PATCH v3 7/9] kunit: time: Mark test " Rae Moar
2023-07-25 21:25 ` [PATCH v3 8/9] kunit: add tests for filtering attributes Rae Moar
2023-07-25 21:25 ` [PATCH v3 9/9] kunit: Add documentation of KUnit test attributes Rae Moar
2023-07-26 14:56 ` [PATCH v3 0/9] kunit: Add test attributes API Arthur Grillo Queiroz Cabral
2023-07-26 14:57 ` Arthur Grillo Queiroz Cabral
2023-07-28 10:38 ` Guenter Roeck [this message]
2023-07-29 7:53 ` David Gow
2023-07-29 13:55 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59dc28b1-298c-4e7b-b35f-0b94071f4cb5@roeck-us.net \
--to=linux@roeck-us.net \
--cc=brendan.higgins@linux.dev \
--cc=davidgow@google.com \
--cc=dlatypov@google.com \
--cc=jstultz@google.com \
--cc=keescook@chromium.org \
--cc=kunit-dev@googlegroups.com \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=rmoar@google.com \
--cc=sboyd@kernel.org \
--cc=shuah@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox