Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp899706lqb; Fri, 15 Mar 2024 09:19:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWO8KW5KDGMYWdXb7VcQvwEJPf/TbgqKF//NOb4lZYCuZIdBLEq4Oot8UgliDMgrVlm/lc4wE5BjoeerNB62Eej3yFYuGbvCrqeRaah6A== X-Google-Smtp-Source: AGHT+IG7Akd+0PSKknBMhcxxCLeylT3J4hgFWWl95DZBEbT3pFKm6U/AC0sUqH3N8sTnYR/GEDR2 X-Received: by 2002:a05:6a20:da92:b0:1a1:4cba:7f38 with SMTP id iy18-20020a056a20da9200b001a14cba7f38mr4720674pzb.9.1710519565889; Fri, 15 Mar 2024 09:19:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710519565; cv=pass; d=google.com; s=arc-20160816; b=zAuAP7f8/lJVwr0QjGVkM7dTZs5Ovh4WhNkBCLF1khPmoXFK8JthVT1WOgonxLaJdf UdSwJn63EOguW1AqdcYh9Xn1QyHmkU/6H8tIPfZtbu70X17E3SKGbEd5H6ReJ+iH/u6i AlXyAQb7pRUFsiCTwG+PGgJuIHeGwHms6+xKS6+PZmE3Sz48WzMh6HpNV1UALe3OpD0Z Uyy9N+WHWunFBBvIA/C9d+l38f77cn3lRZHePCLS9l/wOAQ1h0OGkMJbiKZ+iTNC9nel cqRFW5Ch6rADIvwjfmT4g0QBqsBTn+670gtBG9Ek/Zh1wIRYe7sD+fDYgCIAI/y8Uo7z gmoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id :subject:cc:to:from:date:dkim-signature:dkim-filter; bh=c/L7vmfRkaj9Artl8atZHp1ALKuj6yDCDcItezoA+SA=; fh=4Kx3cyD4gVUe0rFohoKZCgF4xMk+BSR1CX4gUsnMZIU=; b=edMAIN5T78mC48SvRvhemXoqtI9udJShdITE4Hkqgbg7EVQfMJrgFgY7YisYCAr1mY iJ6EbZDOGAoit616rSYqMFdT+eGHY7W7qtJjJTCbUfuNSqGCQheeprKl5PxSfbLIc74B pPHkAy8O0wALuMBtlPAnDcx+pPVINNbrmMkv6OVVweLy/TlnoYGJm9eVNGV7sgSDkeQa bWzGhur2Amu5Gd9+JBshZ63vs10dzDCAnJ5VNV0+PLZN4HP7I19Xc5Y9PYaTT0cOZZcv gXzbCGeMPX0RKfIP3M/+Ehk8H6ktx36fSs6OAsK9Ff73Jt8bcSd2YCbVf3Bmpb0+CXAc UBuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Udwasl0b; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-104620-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id du19-20020a056a002b5300b006e6b0328be6si3655543pfb.395.2024.03.15.09.19.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 09:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104620-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Udwasl0b; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-104620-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A13E282A81 for ; Fri, 15 Mar 2024 16:19:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5866A45BE8; Fri, 15 Mar 2024 16:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Udwasl0b" Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 9224748CD4; Fri, 15 Mar 2024 16:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710519552; cv=none; b=aanXnzUVMvHlLvW3gLvXxgMoByUgq5O6ZTwwePXVrWChxKEajRSrRZPtnA83TBWupg+TSzKMhY9egZI6Wlrld5nae3VzRlhCx/9+UezZlAkVwtKtwfinODZUETHVjK6XlgsHv4XL5mgmCmzjEWMH7Ta1Ey4rZ5Z+hgVxfy11fsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710519552; c=relaxed/simple; bh=QQsAjR+kGMVFuyXjJSPmujbn0DBRwHcrvDMQXYEigb8=; h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:References; b=vCehAtnaRZSns5ROVyE1lLpoxAYthbI5uPRC2bQ2EZv5M4OOuxRckLG7LdSYAI+r/ejscMR4cOaeI8da9mnOZwYdtgv0ASRHM8sDTSF1SxmmCKHWWHy8NqzruoElRXtzYgU7BVNKbN1IxM+LYcHo/PmV+hBVWnhbC4iEu3WeB1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=Udwasl0b; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240315161906euoutp023f51b8829ca9c0a161f04c8ee98e423e~8-Hb9e_AX2029320293euoutp02g; Fri, 15 Mar 2024 16:19:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240315161906euoutp023f51b8829ca9c0a161f04c8ee98e423e~8-Hb9e_AX2029320293euoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1710519546; bh=c/L7vmfRkaj9Artl8atZHp1ALKuj6yDCDcItezoA+SA=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=Udwasl0bR6s/7/RuUZ8YDtxFJewl+VHBclTOQTwpE+2pTPyFCSTfOYca4OJuecKYy slIFO66m8Y3UpteONCLuNpwf1PSDg2U9YShtprpysZmBPkkZklUw/cVqG+mS+p1HA9 qvVe4eUUwIVFJ/aZnUju96ypopypkqWm1he89gyI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20240315161906eucas1p12620b84af9ba258c26234be29066b5b8~8-HbvB76x0476704767eucas1p1B; Fri, 15 Mar 2024 16:19:06 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2F.8C.09539.AF474F56; Fri, 15 Mar 2024 16:19:06 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240315161905eucas1p15f8ef9c2d676eb487db7ae13276d9e05~8-HbUZ6hT1838918389eucas1p1L; Fri, 15 Mar 2024 16:19:05 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240315161905eusmtrp231bda70af5987a11d39b01f4d5398045~8-HbTmv-Z0988009880eusmtrp2U; Fri, 15 Mar 2024 16:19:05 +0000 (GMT) X-AuditID: cbfec7f2-52bff70000002543-30-65f474faa253 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A2.4E.10702.9F474F56; Fri, 15 Mar 2024 16:19:05 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240315161905eusmtip128d24675710f6d7055f6130ff148092e~8-HbETyh32377723777eusmtip1H; Fri, 15 Mar 2024 16:19:05 +0000 (GMT) Received: from localhost (106.210.248.173) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Mar 2024 16:19:04 +0000 Date: Fri, 15 Mar 2024 17:19:03 +0100 From: Joel Granados To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= CC: Luis Chamberlain , Kees Cook , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , Subject: Re: [PATCH v2] sysctl: drop unused argument set_ownership()::table Message-ID: <20240315161903.cbz4jv5w23zh6yfx@joelS2.panther.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="dcq2itrqq6m5yonn" Content-Disposition: inline In-Reply-To: <838812fc-d1ee-4088-a704-8b8f15caab13@t-8ch.de> X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMKsWRmVeSWpSXmKPExsWy7djPc7q/Sr6kGqzbymkx53wLi8XTY4/Y Lc5051pc2NbHarFn70kWi8u75rBZ/P7xjMnixoSnjBbHFohZfDv9htGBy2N2w0UWjy0rbzJ5 LNhU6rFpVSebx/t9V9k8Pm+S8+jvPsYewB7FZZOSmpNZllqkb5fAlbHg9BeWgsnSFTvebGFr YNwq0sXIySEhYCKx/uA1ti5GLg4hgRWMEsvftzFCOF8YJeZP62SGcD4zSvT2XGPpYuQAa9l/ KRQivpxRomXDeoSiDXsPsEA4Wxkllh1aygyyhEVAVeL7lGYWEJtNQEfi/Js7YHERARuJld8+ s4M0MAvsY5L4eLGNHSQhLOAt8XxjDyuIzSvgIPFhWguULShxcuYTsEHMAhUSJ860MIKcxCwg LbH8HwdImBNo5pWnz1kgnlOW+DrpIxuEXStxasstJgh7N6fEgRZ5CNtF4uj8W+wQtrDEq+Nb oGwZif875zOB3CYhMJlRYv+/D+wQzmqgzxq/Qk2ylmi58gSqw1Fi16sb7JAw4pO48VYQ4k4+ iUnbpjNDhHklOtqEIKrVJFbfe8MygVF5FpLPZiH5bBbCZxCmpsT6XfoooiDF2hLLFr5mhrBt Jdate8+ygJF9FaN4amlxbnpqsWFearlecWJucWleul5yfu4mRmDaO/3v+KcdjHNffdQ7xMjE wXiIUQWo+dGG1RcYpVjy8vNSlUR46xQ/pgrxpiRWVqUW5ccXleakFh9ilOZgURLnVU2RTxUS SE8sSc1OTS1ILYLJM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DclsbIqtSg/vqg0J7X4EKMpMBgnMkuJJucD01JeSbyhmYGpoYmZpYGppZmx kjivZ0FHopBAemJJanZqakFqEUwfEwenVAOTnMj18pN71rUmXUgLc/w6Z1P/XkuhTmlxrs3K 1RZJKs8/eSow53zeseZM8Lx/FXNrKzTmb5/WKXCpIuh2dMdNb8dCo7Ifhulvwrc9aNWbfuCq S/SZqbvOrzyYY6a4gE1i8v8e/p6NJyebtFlML+g29o1wipVtV7Y829B7tGDL4UTurg8Mcrb+ B8PvfJj3dG/R89OzrfTTtiw9evPdkYf59vHvHy55MkeO6Ua+gmme0g3NXw+yeYOvreR3v+Dm t1MxxXZd5rqHtedXyzWvN90c8rRk7R3O5S47Tpqctr8qZ61v3ST7wiZUsl7u+qkDi1gnuFdz /zzy4UDf/rN//J/+2KE0v/5P3vIPYecmZuwIV2Ipzkg01GIuKk4EAIzAD8+TAwAA X-CMS-MailID: 20240315161905eucas1p15f8ef9c2d676eb487db7ae13276d9e05 X-Msg-Generator: CA X-RootMTR: 20240223155011eucas1p245e00a3dfd23f72997dac4952ebaeebf X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240223155011eucas1p245e00a3dfd23f72997dac4952ebaeebf References: <20240223-sysctl-const-ownership-v2-1-f9ba1795aaf2@weissschuh.net> <20240315154134.5qfq6wucxid5kfmc@joelS2.panther.com> <838812fc-d1ee-4088-a704-8b8f15caab13@t-8ch.de> --dcq2itrqq6m5yonn Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 15, 2024 at 04:56:54PM +0100, Thomas Wei=C3=9Fschuh wrote: > On 2024-03-15 16:41:34+0100, Joel Granados wrote: > > Hey Thomas > >=20 > > Did you forget to compile? I'm seeing the following error when I > > compile: >=20 > Welp... >=20 > > ... > > ../fs/proc/proc_sysctl.c: In function =E2=80=98proc_sys_make_inode=E2= =80=99: > > ../fs/proc/proc_sysctl.c:483:43: error: passing argument 2 of =E2=80= =98root->set_ownership=E2=80=99 from incompatible pointer type [-Werror=3Di= ncompatible-pointer-types] > > 483 | root->set_ownership(head, table, &inode->i_ui= d, &inode->i_gid); > > | ^~~~~ > > | | > > | struct ctl_table * > > ../fs/proc/proc_sysctl.c:483:43: note: expected =E2=80=98kuid_t *=E2= =80=99 but argument is of type =E2=80=98struct ctl_table *=E2=80=99 > > ../fs/proc/proc_sysctl.c:483:50: error: passing argument 3 of =E2=80= =98root->set_ownership=E2=80=99 from incompatible pointer type [-Werror=3Di= ncompatible-pointer-types] > > 483 | root->set_ownership(head, table, &inode->i_ui= d, &inode->i_gid); > > | ^~~~~~~~~~~~~ > > | | > > | kuid_t * > > ../fs/proc/proc_sysctl.c:483:50: note: expected =E2=80=98kgid_t *=E2= =80=99 but argument is of type =E2=80=98kuid_t *=E2=80=99 > > ../fs/proc/proc_sysctl.c:483:17: error: too many arguments to functio= n =E2=80=98root->set_ownership=E2=80=99 > > 483 | root->set_ownership(head, table, &inode->i_ui= d, &inode->i_gid); > > | ^~~~ > > cc1: some warnings being treated as errors > > make[5]: *** [../scripts/Makefile.build:243: fs/proc/proc_sysctl.o] E= rror 1 > > CC fs/xfs/libxfs/xfs_dir2_node.o > > make[5]: *** Waiting for unfinished jobs.... > > ... > >=20 > > I'm guessing its just a matter of removing the table arg from > > proc_sys_make_inode? >=20 > Yes, for this error it's correct. >=20 > There are also new implementors of the set_ownership callback in ipc/ > which need to be adapted. >=20 > I'll send a new revision. Thx. Not sure what your using as a base, but I suggest you use linux-next so you get al the stuff going into the rc. best --=20 Joel Granados --dcq2itrqq6m5yonn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmX0dPcACgkQupfNUreW QU81eQv/YATUMB0JjIPW8J4XRb/OFdpstOc0Yeqi/vJfhdfer0NWXpE86Bgfd4N6 O2g7pfT829Uulvxa1eJM4kV1nxGxwverjTnM51+MhLsm4dgEkr7eKNQLQmqujiSD 0fNWaKP2bApuYGS+KZxhU+cEJm7V40ytX3d+wFsAha4r7Ri2nqQZyAg4/7n7YLaK 9mq7d49wJrBZD8mzccRRJ8nmzWgpILaSJz/wjh6afYY9d1saU6F4I7oyxYgZJIrE FCdliJTbAunj/EU32i3HHgEUFeIaGe3PQnnoFgXgbD2yRLhqwY0acLlo2gONDeVX RxfNxb2Im8S5XaWjZzD/slaXjYi/zifoLlDxkGKrEX72aIbkkaQcFLvcI5yi/Dod 3mys2Ha1DWi9sjdpb5lmGILPKfG9hKW0ec381Ad1N6hXC9E/Jh8KfnQFJ9Z/v/qM +dnaahqgcDcR49MLl1QK0o/5ECoP6iineFLOtxlm2Dijag58PQ21x7i6HP7RAjyW bsR78PtN =IudT -----END PGP SIGNATURE----- --dcq2itrqq6m5yonn--