From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06B98C433DF for ; Thu, 21 May 2020 17:50:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB19520759 for ; Thu, 21 May 2020 17:50:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="KemRXJ4w" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730332AbgEURud (ORCPT ); Thu, 21 May 2020 13:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728955AbgEURrr (ORCPT ); Thu, 21 May 2020 13:47:47 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E0EEC061A0E; Thu, 21 May 2020 10:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=kqJI+EWtfQBeipsmoEMHCkNSuLmdDpilpY83QLnguS8=; b=KemRXJ4w/7h3tazT2J4TGpsOmV XpvdXZMxOD+ZZETKw0TIPS0fVlKHuTavsoyyNgO8AuNzyPIfJ9QDEIPk3nbgEanNM0YncS9cqFqXy Y1WZfYZ10VWcz2/eo8oE+n24Y0PMtoJf/+lRCWMAzOB7q8256Jn0q3l8kT/G4GUM6G1tZv50YJdQf MgCjTS2w7B0x62+alnyV+rht4F/aWJ9IxvBzvt5SiKe51c6cRPZfi+Mm6Tg9ybqTUecS00o/bY1KJ fH9QmGhYQm0+aR3EztdU30Sx9DvwYZS43AFDx9hhGM542R/cYH0WuFY3E6VosrAlJllqPA/NK2ZYV V5TW1rvA==; Received: from [2001:4bb8:18c:5da7:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jbpI0-0002rk-4t; Thu, 21 May 2020 17:47:28 +0000 From: Christoph Hellwig To: Vlad Yasevich , Neil Horman , Marcelo Ricardo Leitner Cc: "David S. Miller" , Jakub Kicinski , David Laight , linux-sctp@vger.kernel.org, netdev@vger.kernel.org Subject: do a single memdup_user in sctp_setsockopt Date: Thu, 21 May 2020 19:46:35 +0200 Message-Id: <20200521174724.2635475-1-hch@lst.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi all, based on the review of Davids patch to do something similar I dusted off the series I had started a few days ago to move the memdup_user or copy_from_user from the inidividual sockopts into sctp_setsockopt, which is done with one patch per option, so it might suit Marcelo's taste a bit better. I did not start any work on getsockopt.