Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5226362rwb; Wed, 9 Aug 2023 00:09:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHqMqA40SP8qgL8PKEcLDY+srmaKj6YZD90f2gPq1IXxKlkyDcStwihSvqLibGx6xCQTmX X-Received: by 2002:a17:902:e88a:b0:1b8:9461:6729 with SMTP id w10-20020a170902e88a00b001b894616729mr2457436plg.2.1691564944055; Wed, 09 Aug 2023 00:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691564944; cv=none; d=google.com; s=arc-20160816; b=q2qk2dCi4hyRvGSbI7NhQKBk6y9eBt9iGbPgeYei/XgHamVl7cEeRrpiWe/3hqDzBG ytyviLMicnZIQBfQCKyKPUgkdQcHmLiuAN4CHCYsaMZr0DdYZnRYQhxUQvo4c32GJu8D YZ+EwawTuDlDQJwDyKDmZr1dJXGo4H6oKeLNn/daMsnREWme06Cc4ZCkmnTDgSYuSHiQ AVLuDvzINAwZRBB1vSMk07sKDFuXFjbCcRMyorBf8hcYE+2ByJib85RbHief16sP7AHh wDGcZldL2NObnQn78OmRXLIpH702i5Gjpl7Abbkb+tVwh0Qkbe/XmJPndPEi/d23kJr4 bNWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=i2MvsVntgvHuCrKO0gyI1bctEIRn8SCAWB1YsEsyVO0=; fh=EjFTId3M9KLDvIEhpBOhCMjXSKud4hCBp7oSZ9y/M6E=; b=WwlHQIA9ZHDGgQ8pX/Mhc/RIVu6h3oQfEq37el3TUbQNDUvI3CJuycEE/tWQIcLwBi qk5UuHY/J7wDhFrE7bKutoPvJArT40pvJ9dr5Bbstz6GI92QqXAPcVvBQhLBgExUJvp/ 2vFClsT5uCtYmyFORwzE5mWiLtChNbFvt/N2+AwBzHkaZ70AYVw5zBCxumWVBDyvov/y 0Y2rkXedsgdgz9CgIuzQzedKln0EGXvIDWktsOeE+h04zLtJrEdUFX3ytB6FzAvhk2ZB UuQqXA1N1joy1Js4TjPJvKqddTVA48Q0bbWN+JcNnxh13NyfANfnqDJhL31zPKjQok/n jnkw== ARC-Authentication-Results: i=1; mx.google.com; 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 o11-20020a1709026b0b00b001bbb8324bd5si6774429plk.479.2023.08.09.00.08.50; Wed, 09 Aug 2023 00:09:04 -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; 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 S230145AbjHIGt4 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Aug 2023 02:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbjHIGtz (ORCPT ); Wed, 9 Aug 2023 02:49:55 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BBF631BFB; Tue, 8 Aug 2023 23:49:54 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 3796nDkiD014301, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 3796nDkiD014301 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 14:49:13 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 9 Aug 2023 14:49:30 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 9 Aug 2023 14:49:30 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Wed, 9 Aug 2023 14:49:30 +0800 From: Justin Lai To: Andrew Lunn , Jiri Pirko CC: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" Subject: RE: [PATCH] net/ethernet/realtek: Add Realtek automotive PCIe driver Thread-Topic: [PATCH] net/ethernet/realtek: Add Realtek automotive PCIe driver Thread-Index: AQHZxeQMA/4O5CExTkOPXZ48NozVXK/XvyuAgABzMICACVzJQA== Date: Wed, 9 Aug 2023 06:49:29 +0000 Message-ID: References: <20230803082513.6523-1-justinlai0215@realtek.com> <87194ec9-476a-471b-a5b5-d70e8a2cbcd5@lunn.ch> In-Reply-To: <87194ec9-476a-471b-a5b5-d70e8a2cbcd5@lunn.ch> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.210.185] x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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 > On Thu, Aug 03, 2023 at 10:57:29AM +0200, Jiri Pirko wrote: > > Thu, Aug 03, 2023 at 10:25:13AM CEST, justinlai0215@realtek.com wrote: > > >This patch is to add the ethernet device driver for the PCIe > > >interface of Realtek Automotive Ethernet Switch, applicable to RTL9054, > RTL9068, RTL9072, RTL9075, RTL9068, RTL9071. > > > > > >Signed-off-by: justinlai0215 > > > > [...] > > > > > > >+ > > >+static long rtase_swc_ioctl(struct file *p_file, unsigned int cmd, > > >+unsigned long arg) > > > > There are *MANY* thing wrong in this patch spotted just during 5 > > minutes skimming over the code, but this definitelly tops all of them. > > I didn't see so obvious kernel bypass attempt for a long time. Ugh, > > you can't be serious :/ > > > > I suggest to you take couple of rounds of consulting the patch with > > some skilled upstream developer internaly before you make another > > submission in order not not to waste time of reviewers. > > I have to agree with Jiri here. This 'vendor crap' driver has no chance of being > merged as is. You need to reach out to some experienced mainline driver > developers to help you rewrite it to mainline quality. > > Andrew Thank you for your reply, I will refer to your suggestions to modify my code.