Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1308888rdd; Wed, 10 Jan 2024 15:48:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfEPrC3rgtr+JCcJMc7fofoywo1huR4Xx80U05gM9zpOkEbiU3cbBfY5blLsyP3ltt7vAR X-Received: by 2002:a05:6870:93c5:b0:206:8458:557a with SMTP id c5-20020a05687093c500b002068458557amr373774oal.1.1704930537901; Wed, 10 Jan 2024 15:48:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704930537; cv=none; d=google.com; s=arc-20160816; b=bjeiKFjNXq1uPBkzAcsy94etTLOHTrJ9KS6rC7KziZrQEsF/LXlG17N0FbrzfcsYSz MPnvQVQxdDGyc3qe4FTcnFfvMImvzYhsL1A18kslNjcjLs+7TV3SlOy2VDDhWqb6L+iH M8F2rxiEm+QxjSg+VxXsL094uwPxSSLLnkGEZj3/OtAJ2sabm+lZ56jugjC1Ohdx4O8d 1iOVn0qwNHeFcMh4UeYd5tTky8qa4E3E/8yLwGsp4n9NhzM80iekiyJgbvVLWwZNY7sk Gyg5gsuT5dMWbTjS6IOAAA49x6oYYXNFbrLYZgyFdWoH8HbNvay0fzxQ7CApu83FZZ0V mjww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SwuTP7EzLEPd51rCmWc5l3FryuUpUIDaJ3oLG7EKxvs=; fh=n6tyA9lm93qE7Hhr6rhR5DZ7sSfGEkfqc9GJ781mBUk=; b=W5YjFCmwt/B1JMdHk+gRWgzh+wIL5Yw9zjEGLMtUMjFhTzkoD4saJs+HktUph7abX1 D3sjk3GoRMxm3OmO8ge0y3H9/IUxrIAVVaVTg19p0o5voU5wkLfBC5N/P4DQkKSybKdQ zMdMXhWtforzYVNPAO64pU8RV/W0keEFNNxwht+Tc5DOBu2Z2TdVbwCDqKKbOISiPnEi eAEJq/G1YRrdC0V7xubJMdoEDXUwRmRiWncgMvEywPXtXpqwL+BtzDPs/aLQbnApua44 Bkuj++XR73vAj7cnRQa8bnUQxmk9irokR0N1smUw0ARJyE5OjBz133BmNeJW4dTFAEWU hZxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e520My48; spf=pass (google.com: domain of linux-kernel+bounces-22895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h6-20020a63c006000000b005cdc2cc9a1dsi4757149pgg.699.2024.01.10.15.48.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 15:48:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=e520My48; spf=pass (google.com: domain of linux-kernel+bounces-22895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D5622873E4 for ; Wed, 10 Jan 2024 23:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F51A4F8B8; Wed, 10 Jan 2024 23:48:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="e520My48" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCD004F89F for ; Wed, 10 Jan 2024 23:48:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1d3f3ee00a2so23330155ad.3 for ; Wed, 10 Jan 2024 15:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704930524; x=1705535324; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=SwuTP7EzLEPd51rCmWc5l3FryuUpUIDaJ3oLG7EKxvs=; b=e520My48wrc6W1VBmjEKzXuD1l4aGEQr9pEN9UAoEUhQd/QUYuqS44jBW1Zw8B7Vwn rrGjOu7rPy2Wuan6f9O5ksZVKuA6URdB0/bxh/IavXl5ikWeLH0TmAyCUV9KNYOG23Tm fqS/uKRfi0lqWFMNaWxyrTbKEOGG3RQ9v03gU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704930524; x=1705535324; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SwuTP7EzLEPd51rCmWc5l3FryuUpUIDaJ3oLG7EKxvs=; b=oXVonTIQtHqtJI21ChylwS8qHi+U3Zk+KAue2ZcZMH0nprMjnRlcjvB4eh49xngASD qyflPCyL+WKmKONNjE60CBgs2MSTLOB/bPyTcXEDBoqyYSdNE+RdJ906FdWLAGRap1Qy G8sHdDRxNecCX5ziOIdB4+Q7DpAYuAK9lIL9h6R0GAbg2/qQagU4UB4MHVP1Me5B6hFe 7JRrlJGv+eGyXRVoAdCUaHTKKhBYhG9bkbJeUeE2sMMr9swQD98CbOJVUlX6jmEkEkpZ 3v7p/s7PmE1AGS4gdJWF8Ox7K3od1zy5qi2lc1vWL6d5ksXVUkDIJTAUNTRPgh+DCxGZ Kt2g== X-Gm-Message-State: AOJu0Yzfm2AWBwFjKBGHmSUg+tfhWOjRY+MY1TZtPZ2hubYAcuOeyTmY xch0hfhTlAzxf8YgxQ+whK1ydKW6cj81 X-Received: by 2002:a17:902:e80d:b0:1d4:f114:62c4 with SMTP id u13-20020a170902e80d00b001d4f11462c4mr399322plg.86.1704930524297; Wed, 10 Jan 2024 15:48:44 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id f12-20020a170902ab8c00b001d3bf27000csm4210321plr.293.2024.01.10.15.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 15:48:43 -0800 (PST) Date: Wed, 10 Jan 2024 15:48:43 -0800 From: Kees Cook To: Kent Overstreet Cc: Linus Torvalds , linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [GIT PULL] bcachefs updates for 6.8 Message-ID: <202401101525.112E8234@keescook> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jan 10, 2024 at 02:36:30PM -0500, Kent Overstreet wrote: > [...] > bcachefs: %pg is banished Hi! Not a PR blocker, but this patch re-introduces users of strlcpy() which has been otherwise removed this cycle. I'll send a patch to replace these new uses, but process-wise, I'd like check on how bcachefs patches are reviewed. Normally I'd go find the original email that posted the patch and reply there, but I couldn't find a development list where this patch was posted. Where is this happening? (Being posted somewhere is supposed to be a prerequisite for living in -next. E.g. quoting from the -next inclusion boiler-plate: "* posted to the relevant mailing list,") It looks like it was authored 5 days ago, which is cutting it awfully close to the merge window opening: AuthorDate: Fri Jan 5 11:58:50 2024 -0500 Actually, it looks like you rebased onto v6.7-rc7? This is normally strongly discouraged. The common merge base is -rc2. It also seems it didn't get a run through scripts/checkpatch.pl, which shows 4 warnings, 2 or which point out the strlcpy deprecation: WARNING: Prefer strscpy over strlcpy - see: https://github.com/KSPP/linux/issues/89 #123: FILE: fs/bcachefs/super.c:1389: + strlcpy(c->name, name.buf, sizeof(c->name)); WARNING: Prefer strscpy over strlcpy - see: https://github.com/KSPP/linux/issues/89 #124: FILE: fs/bcachefs/super.c:1390: + strlcpy(ca->name, name.buf, sizeof(ca->name)); Please make sure you're running checkpatch.pl -- it'll make integration, technical debt reduction, and coding style adjustments much easier. :) Thanks! -Kees -- Kees Cook