From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) (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 ED7CC1CDFBC for ; Thu, 23 Jan 2025 12:33:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.60.130.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737635585; cv=none; b=SamHJ50EkARpmPXInM39Kz2zKSRMj2BxLjihGVmHncv3PFnjsyzrRrrp1Rd9E/wvJJTXDQmgC0MOrpFWhe/gWemIh+6gYeaL8VVh0eBe/EvA75GhKFEx0CAQImgmiQYI14UbktpMsd/ICwJ7KCfblU/JPMC6HONkJlEntovehMw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737635585; c=relaxed/simple; bh=ciO2S9Uck8/ST9bgqTxk1xTE/PB9CPy6Ck4TMAAfy/0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sVW/5VJi+SyVSBoc0Pqt3Pvhv6mOTriQiPl5LUk56x6WGOT53kfc0g246rrMun2eydRYV7k6YqGfZRVeNcVFkeSreSw3Fs72fDfRSawtEu2caPOvg5L/+zD2/IpuGhhQU/hzWyvDZvs3TU6hav99SjLmvp1kj0U39MZf5viIlqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=F7LgaQk+; arc=none smtp.client-ip=178.60.130.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="F7LgaQk+" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Y0G2nk1BRt3KDYX3VmTdhFLmEhrIsiJfz03Q0x+DcjY=; b=F7LgaQk+hH8bZQGZuv1zynpLmE LH7khJ792agNSrQVZXM19tOgHMomH3F6HHQhDCP6G6VWsTZp52n2fIeLeFLQwRAMc8d1FMoj/xU+X qfBYFCY/wciEXHl3w7kXGMDQH1G4+QxP83UzllUA2HmUI37bB9JQHiwwaWsWRbYHeBpoH+UvjofVy JQplVKmN3hYotNLd0xTLi7mBYP13xhfufZrp0pm5i9n4GXWqNVe0zdN2Ai4639eAcat+QMnkJf7xC S2Yg92gcJebedA1egeU2b3abomBlEFsaZS1z6/oxGvLPxL5eDSXbIV19yBtrPSEwbWAxP5bmqMBqi SsZGw2MQ==; Received: from [177.180.73.242] (helo=quatroqueijos..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1tawOJ-001CCB-Ta; Thu, 23 Jan 2025 13:33:00 +0100 From: Thadeu Lima de Souza Cascardo To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Dirk VanDerMerwe , Vimal Agrawal , kernel-dev@igalia.com, Thadeu Lima de Souza Cascardo Subject: [PATCH 0/4] char: misc: improve test and dynamic allocation Date: Thu, 23 Jan 2025 09:32:45 -0300 Message-Id: <20250123123249.4081674-1-cascardo@igalia.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These apply on top of commit 6d04d2b554b1 ("misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors") and commit 37df9043329b ("misc:minor basic kunit tests"), both at char-misc-next. The tests are written in order to detect regressions around the bug fixed by commit 6d04d2b554b1 ("misc: misc_minor_alloc to use ida for all dynamic/misc dynamic minors") and the followup fixing commits "char: misc: restrict the dynamic range to exclude reserved minors" and "char: misc: deallocate static minor in error path". Thadeu Lima de Souza Cascardo (4): char: misc: improve testing Kconfig description char: misc: add test cases char: misc: restrict the dynamic range to exclude reserved minors char: misc: deallocate static minor in error path drivers/char/misc.c | 6 +- drivers/misc/misc_minor_kunit.c | 515 +++++++++++++++++++++++++++++++- include/linux/miscdevice.h | 1 + lib/Kconfig.debug | 15 +- 4 files changed, 529 insertions(+), 8 deletions(-) -- 2.34.1