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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 4819FC433EF for ; Mon, 13 Sep 2021 08:14:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E30F260D42 for ; Mon, 13 Sep 2021 08:14:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E30F260D42 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 66F236B0071; Mon, 13 Sep 2021 04:14:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F8096B0072; Mon, 13 Sep 2021 04:14:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 498CD6B0073; Mon, 13 Sep 2021 04:14:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0239.hostedemail.com [216.40.44.239]) by kanga.kvack.org (Postfix) with ESMTP id 374596B0071 for ; Mon, 13 Sep 2021 04:14:38 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id DC81B24889 for ; Mon, 13 Sep 2021 08:14:37 +0000 (UTC) X-FDA: 78581838594.07.0462A32 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by imf02.hostedemail.com (Postfix) with ESMTP id 8C89A7001A0A for ; Mon, 13 Sep 2021 08:14:37 +0000 (UTC) Received: by mail-qt1-f179.google.com with SMTP id s15so7400558qta.10 for ; Mon, 13 Sep 2021 01:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to; bh=7Aw7rVY4/wMyesVHPTHKdbxy8weQnGGy1Ey3jkSQmak=; b=i0wKXvym1QJuyW+tO7AQR6dkzk3FX72qngMFh+Z1cl5A30bOf3zNzYVbqaLeP2H+zU HOXaSAiy0fz0hyp2VZsS79e4KWOK6i44VtWF+n/g0S51j/W4XskLllpN1kZtqRjDcpkj M6Sb46RffCFTjxyuafx/ZrdqZ00AhMMMWFiE/Lm+K0BH+2So98ABII2quuLu5hoF0iRg 0Ykq81mE51icVvd7/0kV1XDBk6LgmygVmGLMj8RtdYHUjFHBEdephhvt6leWhBNxXNMK 4DDkCELNt9WqPMPcyy9li/pBt/6sre9nZAWURnaQufTK5OKmvfLggEmI1SPMs5Sx8Muy BJTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=7Aw7rVY4/wMyesVHPTHKdbxy8weQnGGy1Ey3jkSQmak=; b=eUTrNHTnR98ifO595ZIITefLWxU3GfjUBxBxB/+PfT+NX2at4VmdltLJ3VLrbXnp9Z oouSHNZ8Zr/TPCOt0MTJYaISF3hIkgnkO8jDdSq2B+sPlFX5dP15Yy2+WdGMUkn1RRJb Y/zssnQSVV6cWLHF2d33CQPxbFpMJd6WVjVXyLh4sSR6ExMIQ+RL4htlZD5n3E67Tr5I w7Vhw4N3qFTRnFnkuEaNCwU+0L+y5yM/GZsoj73h9zSmZJ1fbFTdoLky1Z3WflKWqFM7 qbJ5GqO0IfFHWgPyWpqRSvsiGo/WOpBq7HhYl2qRoFaROU/ZdKV8fCBNngOzpADcBmBo OJTA== X-Gm-Message-State: AOAM531k8j7EK/9mdrajsspa8riF27phBRCZIGsMzdVkdQJ4Inm4C52j c5ZBMD1Ssko0nRXgcl8DDXI= X-Google-Smtp-Source: ABdhPJxGsKUTMgv7pzgCdsMjjcVewOL3JU4avS7nZmDrCE+jpQaHiTQ2QH2RIXhfPYJqpeeu81f37Q== X-Received: by 2002:ac8:4e24:: with SMTP id d4mr8118015qtw.277.1631520876921; Mon, 13 Sep 2021 01:14:36 -0700 (PDT) Received: from localhost.localdomain (ec2-35-169-212-159.compute-1.amazonaws.com. [35.169.212.159]) by smtp.gmail.com with ESMTPSA id 191sm4968767qkh.81.2021.09.13.01.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 01:14:36 -0700 (PDT) From: SeongJae Park X-Google-Original-From: SeongJae Park To: Adam Borowski Cc: SeongJae Park , Andrew Morton , linux-mm@kvack.org Subject: Re: [PATCH] mm/damon: don't use strnlen() with known-bogus source length Date: Mon, 13 Sep 2021 08:14:30 +0000 Message-Id: <20210913081430.17201-1-sjpark@amazon.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210912204447.10427-1-kilobyte@angband.pl> X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8C89A7001A0A Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=i0wKXvym; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf02.hostedemail.com: domain of sj38.park@gmail.com designates 209.85.160.179 as permitted sender) smtp.mailfrom=sj38.park@gmail.com X-Stat-Signature: eenzp9b1a9ja3ee1kms3tb3mmnctdp6k X-HE-Tag: 1631520877-674495 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000013, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: SeongJae Park Hi Adam, On Sun, 12 Sep 2021 22:44:47 +0200 Adam Borowski wrote: > gcc knows the true length too, and rightfully complains. > > Signed-off-by: Adam Borowski > --- > mm/damon/dbgfs-test.h | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) Thank you for the patch, and the change looks good to me. However, I couldn't cleanly apply the patch in a single step. $ git am the_patch_adam.eml Applying: mm/damon: don't use strnlen() with known-bogus source length error: patch failed: mm/damon/dbgfs-test.h:20 error: mm/damon/dbgfs-test.h: patch does not apply Patch failed at 0001 mm/damon: don't use strnlen() with known-bogus source length Use 'git am --show-current-patch' to see the failed patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". I saved your mail to 'the_patch_adam.eml' directly from my inbox instead of downloading it from lore using b4, as your mail doesn't appear on lore. If I'm not missing something, coule you please double check and resend? Thanks, SJ