All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] lib: tst_test: tst_reinit() abort when already initialized
Date: Thu, 30 Apr 2026 14:53:12 +0200	[thread overview]
Message-ID: <afNQuLNeBcYC_zAG@yuki.lan> (raw)
In-Reply-To: <afMwMO1yTBGDLQJc@linux.dev>

Hi!
> > Calling tst_reinit() when library is already initialized or calling it
> > for a second time is always mistake. With that we silenty drop the old
> > IPC region, that may have contained test results and there are likely
> > other problems possibly caused by initializing the test library twice.
> > 
> > To fix that this patch adds tst_brk() that abort the test if we call
> > tst_reinit() with already initialized test library.
> > 
> > Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> 
> Reviewed-by: Li Wang <li.wang@linux.dev>
> 
> The patch itself looks good, I'm just wondering how you found
> this issue, was it called twice somewhere/in a test?

https://lists.linux.it/pipermail/ltp/2026-April/048084.html

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-04-30 12:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30  9:19 [LTP] [PATCH] lib: tst_test: tst_reinit() abort when already initialized Cyril Hrubis
2026-04-30 10:19 ` Andrea Cervesato via ltp
2026-04-30 10:34 ` Li Wang
2026-04-30 12:53   ` Cyril Hrubis [this message]
2026-05-07  1:00     ` Li Wang
2026-05-07  6:58       ` Cyril Hrubis
2026-05-07  8:41         ` Li Wang
2026-05-07  9:02           ` Li Wang
2026-05-07  9:08             ` Cyril Hrubis
2026-05-07  9:13               ` Li Wang
2026-04-30 11:38 ` [LTP] " linuxtestproject.agent

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=afNQuLNeBcYC_zAG@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.