From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77BEE13D51E for ; Mon, 1 Jun 2026 02:12:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780279923; cv=none; b=PiMDzlkbzqBk1kkzjpOasHz1ANThThqFkhw/G0Nw//GP89IFOu6Y/T1nsS8+BvrUK56h7xa9EPR73fLdnA+yD/+ITNzIYUXeneyaqOCryzqKgSHPD45D1RiNyLJCn/LdEcv6QrKUEUIDFczA8T+U8tAJkd61mKkyYJyuXOP0QJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780279923; c=relaxed/simple; bh=nnowgGbE46uUV/cr18YAPiUOXHG5foExtYJUvvI8O74=; h=MIME-Version:Date:Content-Type:From:Message-ID:Subject:To:Cc: In-Reply-To:References; b=pSLpM2RQ6fFK1wJ9NBKIll/pC5i+jleVqzapEN8p0yejMNBqdNLWnuCgtEut6sOr/hKs2e4G9apqn+bR9MQUJglEVJ8t8U4I9hWwP0GVFGsuKWRqt3/Du29+US6IOlGLWwNS1BWvGFUpL6EQylBf8VqsqKoowG2Uu9Uw9h0thXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=bJgPJaPR; arc=none smtp.client-ip=95.215.58.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="bJgPJaPR" Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1780279910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yA/QFrCtPoX5wPIQZTccJ9pEjaemUdXNIzLEOb9zuBk=; b=bJgPJaPRzvdonnMsZ4dpFUWP9OLxY+c8G+lanO2reQL+tLTEmhRxizTgnW6WnfqjghcwTp 8M0xmyVSfdACXogiyGGfbhUHphhbpsJX/hlBgDr7tob/B99FQ2oIjWrf1hZQ3kPWEAkn+I T8geubSrHZAE/8vN+xvMLhJLHYOoXKg= Date: Mon, 01 Jun 2026 02:11:44 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Kunwu Chan" Message-ID: <2b9ae12de845ad1c7070c797ed1214602e548db9@linux.dev> TLS-Required: No Subject: Re: [PATCH 1/5] selftests/damon: prevent cross-context state pollution in DamonCtx To: "SeongJae Park" Cc: "SeongJae Park" , shuah@kernel.org, damon@lists.linux.dev, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Kunwu Chan" , "Wang Lian" , "Kunwu Chan" In-Reply-To: <20260531163050.98908-1-sj@kernel.org> References: <20260531163050.98908-1-sj@kernel.org> X-Migadu-Flow: FLOW_OUT June 1, 2026 at 12:30 AM, "SeongJae Park" wrote: >=20 >=20On Sun, 31 May 2026 17:17:20 +0800 Kunwu Chan = wrote: >=20 >=20>=20 >=20> From: Kunwu Chan > >=20=20 >=20> DamonCtx.__init__() uses mutable default values for > > monitoring_attrs, targets, and schemes. In Python these are > > evaluated once at function definition time, so multiple > > DamonCtx instances can unintentionally share the same lists > > and DamonAttrs instance. > >=20=20 >=20> Replace the mutable defaults with None sentinels and > > initialize the objects when needed. > >=20 >=20Nice change, thank you! > Thanks, SJ. =20 >=20>=20 >=20> Co-developed-by: Wang Lian > > Signed-off-by: Wang Lian > > Signed-off-by: Kunwu Chan > >=20 >=20checkpatch.pl complains as below: >=20 >=20WARNING: From:/Signed-off-by: email address mismatch: 'From: Kunwu Ch= an ' !=3D 'Signed-off-by: Kunwu Chan ' >=20 >=20Other than that, >=20 >=20Reviewed-by: SeongJae Park >=20 I'll=20fix the email mismatch and send a v2 to make the addresses consist= ent. I'll also add your Reviewed-by tag. Thanks,=20 Kunwu >=20Thanks, > SJ >=20 >=20[...] >