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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A0BAC07E9D for ; Tue, 27 Sep 2022 02:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbiI0CP0 (ORCPT ); Mon, 26 Sep 2022 22:15:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiI0CPX (ORCPT ); Mon, 26 Sep 2022 22:15:23 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EC895282E for ; Mon, 26 Sep 2022 19:15:22 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id rt12so7960815pjb.1 for ; Mon, 26 Sep 2022 19:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=7F5iDqpSb/3NowJ9vBWtXROgMKuieJmMYin6qJsoTgE=; b=Ez3YY7hf2oS+EvshS/Fc66PWW7ZIGfVbhM2KHC+tQfDXeGjcwUPxSzImeFj+DcnUR9 hs4fgk8RYR1XxKTg9qjl+IDuBgoe9XF1ZTBEpPX7GFbgZ6X1VCgTxA38U9Nn2rR+JU/j LXfDoUNkotn2dJ/fyuxD8ZsGRf4OrfwBxqcnQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=7F5iDqpSb/3NowJ9vBWtXROgMKuieJmMYin6qJsoTgE=; b=cR6jqsfkvMchqtD4eiP9cFbl2xmuLRtgZ+Qn8WoH+do+Up4sIc6xIZDVEjhYpkeHg1 QZmj7IW9OqfABHfpytY2G1XOp1Hl4etgLUEdQTiZuIKJnoYfT/rEgmjNPbcSg4nizLhg F20S4q4a7Tgxiwyk4R+yijubDBdLq3SQfVnTS+HPG2YRj7TjJB7hLjVSHASt5j3qmtKr C2Y2srboKE4z/anB8tirWhxi8Sn5/T1wDNPHjebO83NGMHUroyxYdPX3RLSGqJQQi4fw 1PK4IAj0JhzrTOwu5t3UdlVIaQgse416/jSbGSkXTACgkOm70bG54tV+HYLeUKQ6iXmJ NPZw== X-Gm-Message-State: ACrzQf0ltog9XrG60l6Ddsby7G+Er2ehrzbbDU7arMWpoOH34heXENr8 bH/R7rqs759VibvU1xpmCgAvrQ== X-Google-Smtp-Source: AMsMyM6NSHeJ54V/XuI2azAxMqKNn7RgfZoPeBhZIHx7QGUELr+H/nkB7+e3wf8LySCfGIfnM0ogyA== X-Received: by 2002:a17:902:ccc2:b0:178:29f9:5c5c with SMTP id z2-20020a170902ccc200b0017829f95c5cmr24458623ple.19.1664244921560; Mon, 26 Sep 2022 19:15:21 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y12-20020a17090322cc00b00176d6ad3cd4sm68234plg.100.2022.09.26.19.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 19:15:20 -0700 (PDT) From: Kees Cook To: Andy Whitcroft Cc: Kees Cook , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH] checkpatch: Don't count URLs for "line too long" Date: Mon, 26 Sep 2022 19:15:17 -0700 Message-Id: <20220927021517.1952202-1-keescook@chromium.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=952; h=from:subject; bh=yAWd4XKJpk8MN/Q4+hlhqes0hfZgokxxQF/B9ZCPxYQ=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBjMly1V6lhtN8KpibJqti2iNcZrBN+SYWizUVAwtDs wMDaqVGJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCYzJctQAKCRCJcvTf3G3AJvJREA CHL57PNuX2NQlygSHCRoCfa3NmbQKAATGivmy7I4AFzHMHPmWLbU79rzZu6hI1gf9zyDTo2FkCAlJw flzzjJDMwKld5R80QnlWAE/ZZBRNQuPZJj9ssBZw3MxrJo3F4xYxD8b6wxRV79OMd5eQjHIpqDfQTp 2guFraPPnAaX97Aeb0K0BOW8RZeb9bzEOzgxspuWSfbZcLOu7qt7DAjz0mX2IgTlFROqGbVgMA3am9 Y1tr4235vHqD9aLyI6d6adnUENYPr0JhM0BGVj13cbVC8WcbTE7WSpIDA1WinSRisa3EoVcA5dQSDb 5+66mOsCFLFl9KFr8OHd18buaQ/Z2rrrg4ECx9GOtIm2R+6JIXd+gjUPHi7t1LfpNdrSSP0EKmwpiT sTGecnfYH2vwHE43fi3fMSwC1pi4dt8aDl71auBo0ghYLSLgY1s5l/xeAtJWIXv2kvfygDAZdtWLRA ql7pbX9m5XFDx1LnmZwUKimKNfC9y5U87RCqv1NsvVZIO3KxHuFSVqTPbpUf2XYKjY2GDpMIfS2Cy/ hEeEn5XYehN3wcCH212/lnRl6TZGuN+M/dPHbtypUKuihRvKnlqmWp1/4KxmP0U+eNr6w4IhvQr7IH GOhh5bqfhU9rPBistfMvHUjPBB+z5CzrYcabtLWos/w022259ewJqV2LQlxw== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org URLs (not in a Link: field) should be ignored for "line too long" warnings. Allow any line containing "https://" or "http://". Cc: Andy Whitcroft Cc: Joe Perches Cc: Dwaipayan Ray Cc: Lukas Bulwahn Signed-off-by: Kees Cook --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 79e759aac543..d4dec90673b7 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3175,6 +3175,8 @@ sub process { # file delta changes $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ || # filename then : + $line =~ /https?:\/\// || + # URLs $line =~ /^\s*(?:Fixes:|Link:|$signature_tags)/i || # A Fixes: or Link: line or signature tag line $commit_log_possible_stack_dump)) { -- 2.34.1