Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1362513rwd; Thu, 1 Jun 2023 14:34:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5QAbkoRbzTWQ1mYTDdzSB136HhcDKPXH0B3XveT2Y84qmVkChlW6F3ssDmoDPgy4uTCJ3P X-Received: by 2002:a05:6a00:aca:b0:64b:43d8:a57d with SMTP id c10-20020a056a000aca00b0064b43d8a57dmr9403581pfl.13.1685655245339; Thu, 01 Jun 2023 14:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685655245; cv=none; d=google.com; s=arc-20160816; b=MQixMILmajqm8VrefwPPK5Phnb4exFg+hLelo9PPktHqtcdopyWMUBzfqsxZ8ZVEUr zaZwh/H36d3WjBAf03IZva6b70K9Zb7dmflLvJreixul79jRLtNgo7u5nXNTj7wYaRjT iTkJh8i/fz+O+DFNYLWmdwGYX85d4bvFlQ4zAAGlYCxH4RyPkzmskMOSb1os3D71tcoH 7Fo9iiLoxBk8PCda9slXO7babka5ZtzvddGQ1k25VjKrXoO12M2PBIXr6eNB0StjT/Hz SSezs/7ijcpsW4A7MMT4+d6iwAM+ZTLfpS2Xvug3rsmHt1Cb8N6Kclk0PgxM7RFA1xkJ A8Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=MLwRAM3dVWLmfg+MF4/R7sr5DQxJwUt+yRzpW2JKSv8=; b=PJ6RKbOoECgTvj7YKBy5nJv8EzUz6onZLqbDTglGbh4jw5q5txQM0jUsja/uffWNd0 9uZOqj4EqsX7ByQlVYlpUbhN7RAtZ8i4e3cWl0hWqDpjjhhh+k63PxHgSm0CvXswRXe3 d916YekiGLlldDlCHIGoQ5dkWP5373E8Hm+7KgVYvBPccFPd8pL3ryn/5FW8U/GDU75B I7PPt7iFMH3bHYTrq53PQdJDe0mlsKQuhXZkfsYfuyUVnFFX8gfT36N0Eo7K0Ct/zPXm TWLoc+YWMEFPJSfaHVAHM8MuPFsEvQJvFZY2Rulf8LTenqw6ToB5UxMZ6vgABejZqANC wTKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm1 header.b=Qpa5q7fS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MZ9NK3xP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z128-20020a626586000000b0064354230c2asi4241065pfb.367.2023.06.01.14.33.53; Thu, 01 Jun 2023 14:34:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm1 header.b=Qpa5q7fS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MZ9NK3xP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231372AbjFAVZT (ORCPT + 99 others); Thu, 1 Jun 2023 17:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbjFAVZQ (ORCPT ); Thu, 1 Jun 2023 17:25:16 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C253B184 for ; Thu, 1 Jun 2023 14:25:13 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1A4215C01BD; Thu, 1 Jun 2023 17:25:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 01 Jun 2023 17:25:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1685654713; x=1685741113; bh=MLwRAM3dVWLmfg+MF4/R7sr5DQxJwUt+yRz pW2JKSv8=; b=Qpa5q7fSLyazw/VQWnv17Qz8/yjV9fZXvHc6R9ThNfhy1o0Mr5z W1dZ3qjfzgr70vV2+SaTiP5pi5XlrHQQfQB6WChjAsfZbOYotw0X4V72CDvvlezi M0tujXY7i0ryYRYkT6SQ58zcifsdhx4TNhbZIOhJrXTK4dkxiZ66sVlNHqrJxkbt daDyePUXMjDXCB3vSjYUwSUWm6+h4wO8ZUHMG/uPNFnQ1x4dfdB7eeeYYLRoY5a4 iy/YvvXi8zkhNr+v62gPzlXicK639BZqbMRIzKMvzFAEZ0S55q8iSda8Wg6gzjUl MA8RqFS7+lomTRTic5biuIqdAYfXR8o86KQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685654713; x=1685741113; bh=MLwRAM3dVWLmf g+MF4/R7sr5DQxJwUt+yRzpW2JKSv8=; b=MZ9NK3xPt7QgNzxpOGlT8nMYS5hYR 0G3T5fqusT6RfsrsiDfk+Kxi1eJwAxPq9E3rosBZx0L7mLOBGgjbCDmnO36RrdSj sq07KS7BbHD7B2eT5zh39aZfz/4CjmXgK8zhtL8I0lHjWkkWMygjJYxlVC7oh8pV 8LFszYOX3CqXXJXqRHIWu/F5tgEY/1bavuQDEKQNBmHNZxkeZEWHpoFyWFuhAVlc 24qn9d0R6YDVeBbfyuRdZQZYZp04DPOxM9AeSAQbfWKpxi5afk5iz0/g4PhX8m2Q P+znKcUHDfXpfIeffkUq1/Pk1hX1W7xRR5nRL3i9NuEIqcbfyM5nW4q1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeluddgudeiudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeffvghmihcu ofgrrhhivgcuqfgsvghnohhurhcuoeguvghmihesihhnvhhishhisghlvghthhhinhhgsh hlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpedvfeegkedvkefgffegkefhieejtdff keehhfelheefjeeutefgleeggfdtveeileenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpeguvghmihesihhnvhhishhisghlvghthhhinhhgshhl rggsrdgtohhm X-ME-Proxy: Feedback-ID: iac594737:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Jun 2023 17:25:12 -0400 (EDT) From: Demi Marie Obenour To: Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com Cc: Demi Marie Obenour , linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Several device-mapper fixes Date: Thu, 1 Jun 2023 17:24:49 -0400 Message-Id: <20230601212456.1533-1-demi@invisiblethingslab.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series contains several miscellaneous fixes to input validation in device-mapper. The only potentially controversial commits should be the last two, which prevent creating devices named ".", "..", or "control". The other patches fix input validation problems that have existed since at least the beginning of git history. Demi Marie Obenour (6): device-mapper: Check that target specs are sufficiently aligned device-mapper: Avoid pointer arithmetic overflow device-mapper: structs and parameter strings must not overlap device-mapper: Avoid double-fetch of version device-mapper: Refuse to create device named "control" device-mapper: "." and ".." are not valid symlink names drivers/md/dm-ioctl.c | 75 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 12 deletions(-) -- Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab