Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1702961rwd; Fri, 9 Jun 2023 00:30:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59KgzECnwwXXhf1bWEVfa0aO9endleclGbQM5r/rFHBtEY3XFf/dBUWsJOqu9Ul42amJ4C X-Received: by 2002:a17:90b:4c48:b0:256:991a:19e with SMTP id np8-20020a17090b4c4800b00256991a019emr370029pjb.9.1686295833969; Fri, 09 Jun 2023 00:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686295833; cv=none; d=google.com; s=arc-20160816; b=xDbPKDBtUUhSpeotPvv6jmj/2txSo4KWnkzdQFDDdRkzMXa740/8MqZ1IIHJdeRfjS 1fsvQ8PWj8/hFYWTUQLZgZmwo2wMGl4lriUAtXmKgcYyrnp7RuClqsMV0W9Oes1nIF67 bDP1PdfabVyQq6l/iPktP+tlxD+bnRXRxH86joCx8NMxpB+4LooII0I2ClMVk19KG7RJ ti1dwcyOxQBS9MVFspW/nnzWXkQ07CpDMCHwRuINNCyuK05po7x+MMLoZ/ww8lI/2XzU YL+7pg0cKolIyzHmJVZouHTQSWAmIJbKUg0G+2zVSiIcSYgjNZWLjPDIS9Tx2wu9fsOz wDsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=nVpsaai4Jt7eFY7RyUO4SlpJRSPWQGSw2+xWXF1FmY4=; b=YOGXzXCmAwJcBexQdj7WosREzd5yR3D9qZIGcFVhGH51UXgpZSme8QL+6WNey5TAE5 sn/XsTHEy/t8ueyf2YAUvZOOtjGuxou7KGKR/jfWkHu+rI58edWGHAY9F1rikRSQf7N4 UqWrGqFfe0KhRRvihEjaYeUdWrl4OlkFu+FEq1ocRyeLxRdpUi4m7p9NGfsASN2t4LXg MJI4qsUYD/hU2sRcNBiePLU8J3woxy4KJo2++d88qjgLLzz+8aZdxcvsnupE+/0BsiTI L8RtjcVc/5rPbmElfhrwWqa4B5W758L8UyirCRe3eGHg4wWFxN7u1afkWMpy6NmEpiWw /8ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x2n6klbz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020a17090acf9600b0025042fae398si2251965pju.45.2023.06.09.00.30.22; Fri, 09 Jun 2023 00:30:33 -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=@linaro.org header.s=google header.b=x2n6klbz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233218AbjFIHWg (ORCPT + 99 others); Fri, 9 Jun 2023 03:22:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238530AbjFIHWY (ORCPT ); Fri, 9 Jun 2023 03:22:24 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6AAE194 for ; Fri, 9 Jun 2023 00:22:22 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-3f7f864525fso14010121cf.1 for ; Fri, 09 Jun 2023 00:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686295342; x=1688887342; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nVpsaai4Jt7eFY7RyUO4SlpJRSPWQGSw2+xWXF1FmY4=; b=x2n6klbz9Jo+rTRFLLbdLYQNHMgwEt8L2wh3QmdDl8BhUsSiR7D3uwNH+K0iH5P4wn OckEjWYuzxfXRzQp0BSls/J9dfekwT+xhcNHsSiOcn9/rQ63M72qR7FPK0Dc4zQ9EZya ooPq10hnecvknGwzz5aBcGZMqnQg3k1VsYAV+oJHovFLsIyiua30Dc0GH7+WteIxTRQ2 TfZrqTCWSKike6I19mgNxmjv8lSJyFGTgGEWR+PMq1KVpq27gxK/lJvxNVbxpAj9Cuwm 7oJ9ncUkGEcl16AEn5vszy1+fDS3jnOz3lQb/jHzUH/vXA5nCW5aWmOg8T1diOpU7hWN DF8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686295342; x=1688887342; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nVpsaai4Jt7eFY7RyUO4SlpJRSPWQGSw2+xWXF1FmY4=; b=dgidEi+U26S5OS4roxFjqu/BZSkssnOUGpfUbxQryxMP4cGRosEKJfAjiogv+QS1WN E0z119mdKkkfXKYF1liGIUphQQ0/y9WrJ4HGlWm4lP2p3/rEJ6PvtkQqEQ8kAglUuvQG EnVUJGGEQQZzqNcE2HLX9wu634EOznN2iY8hAZXR+4f263dB+4nplU0GeokowWLYPrQ9 5heH2z9x6DqG3GW89+zNnwopFHP+D/zOn6Qc+JI3ULqZkkc0hki+ay5KtkOtXMb6wMtD FDtAQxvegD3xCY18Pzb28pz/GEQEfgY3djipkTf2akqtmW5EQjP5ZFngOgDBO7OG0xHl BrhQ== X-Gm-Message-State: AC+VfDxmrmzkToQBN7LB18lc3UlUhSDX48CRGyIZFlfU7veZkfFyfN7Q rWsuYm1YphouXdBG2LveFVRfAQQXBp3eUpVleRk3NTXGprymGgkU X-Received: by 2002:a05:622a:148:b0:3f8:20a:1c6a with SMTP id v8-20020a05622a014800b003f8020a1c6amr944271qtw.40.1686295342169; Fri, 09 Jun 2023 00:22:22 -0700 (PDT) MIME-Version: 1.0 References: <20230604131215.78847-1-andriy.shevchenko@linux.intel.com> <20230604131215.78847-2-andriy.shevchenko@linux.intel.com> In-Reply-To: <20230604131215.78847-2-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Fri, 9 Jun 2023 09:22:11 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] pinctrl: Relax user input size in pinmux_select() To: Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Sun, Jun 4, 2023 at 3:12=E2=80=AFPM Andy Shevchenko wrote: > This is debugfs and there is no much sense to strict the user from > sending as much data as they can. The memdup_user_nul() will anyway > fail if there is not enough memory. > > Relax the user input size by removing an artificial limitaion. > > Signed-off-by: Andy Shevchenko Fair enough, patch applied! Yours, Linus Walleij