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 41F66C76195 for ; Wed, 22 Mar 2023 14:37:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231142AbjCVOhi (ORCPT ); Wed, 22 Mar 2023 10:37:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjCVOhd (ORCPT ); Wed, 22 Mar 2023 10:37:33 -0400 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BA31113F2 for ; Wed, 22 Mar 2023 07:37:32 -0700 (PDT) Received: by mail-il1-x135.google.com with SMTP id u8so3292537ilb.2 for ; Wed, 22 Mar 2023 07:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1679495851; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Z497ruJqlVfegWF8NRtzXXhznR1xFw36jEr9lMNWtW8=; b=ZYK26V2g092icbcstQePXB1TRFPbPQZe1CBwJf7P9Teq6XfzVNhFnnBH7vjC27DghI Flp2kk3ZGV9n26FTjrkwHXGuPVJxjMw3X7k33h8nZHDZcl9JirgmckGzyOU79bP1IWG2 BtLGzrA+Zqqlag+cXqezUxGhi2O8weCKIweq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679495851; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Z497ruJqlVfegWF8NRtzXXhznR1xFw36jEr9lMNWtW8=; b=I2SJCy5rjHuoW2S3EGETbDuRekyMGozasmwYYinYN5VUszq6x0DKDMghSCupVSsRYX 3fPxdHII50lBKEoOkpNpf7eaOkRnd+WxfNaK/1WJBho8AEySnAz8gLd+sQOxvwJQzhLW BBQy1VKiSOCYkvbRoQXJOSDOOghZr02F5axMIgHsWMDAcoYADjzuVY/q2DB8+4TYtWIh DVI773trEzu+lmgI3UlxALEF3okmebA/ILEVzGIfjOwy1jKTIOrwPvPfcjHGGPl4jFEm OEGmUsxL8wfHKbyf9EnPVujT5g5/qnhqDtkLmw/fcsqbRXdLZulIalFJ84BrepC24+SY pfwQ== X-Gm-Message-State: AO0yUKXP9CpZx8X8ixhF2TgVQ/eTsNp/KnZTcs4iQDNQ4HL7n8xNNaXI x1UKPw94KrfM+7W7pwbrI9ILig== X-Google-Smtp-Source: AK7set+IMm0d5HOLmep773OFIQkwLF0SEBX/p2vVLMkBm0RJzPPIpQ2XRR7IV1iJ7KXHFwUF7dxoTw== X-Received: by 2002:a05:6e02:1354:b0:323:504:cff6 with SMTP id k20-20020a056e02135400b003230504cff6mr3702500ilr.3.1679495851552; Wed, 22 Mar 2023 07:37:31 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id f102-20020a0284ef000000b0040631e8bf89sm5063538jai.38.2023.03.22.07.37.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Mar 2023 07:37:31 -0700 (PDT) Message-ID: Date: Wed, 22 Mar 2023 08:37:30 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] docs: add system-state document to admin-guide To: Bagas Sanjaya , corbet@lwn.net Cc: kstewart@linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20230321231816.31131-1-skhan@linuxfoundation.org> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/22/23 03:29, Bagas Sanjaya wrote: > On Tue, Mar 21, 2023 at 05:18:16PM -0600, Shuah Khan wrote: >> +scripts/checksyscalls.sh can be used to check if current architecture is >> +missing any function calls compared to i386. > > i386 is the reference architecture for comparing syscalls, right? > Correct. If you are askig about "function calls" wording, this is coming right from the checksyscalls.sh >> +This scripts parses Documentation/features to find the support status >> +information. It can be used to validate the contents of the files under >> +Documentation/features or simply list.:: > > "... to validate contents of Documentation/features files or simply list > them::" > >> +Let's do one last sanity check on the system to see if the following two >> +command outputs match. If they don't examine your system closely. kernel >> +rootkits install their own ps, find, etc. utilities to mask their activity. >> +The outputs match on my system. Do they on yours? >> + >> +ps ax | wc -l >> +ls -d /proc/* | grep [0-9]|wc -l > Thanks for catching this. > The shell snippet above should be in a code block for consistency > with other snippets. > >> +Linux kernel supports several hardening options to make system secure. >> +kconfig-hardened-check tool sanity checks kernel configuration for >> +security. You can checkout the latest:: > > "... If you don't have the tool handy, you can clone the repository::" I can fix it to say "clone the latest" > >> + * https://docs.kernel.org/trace/index.html > > Shouldn't the last ref be internal link (Documentation/trace/index.rst)? > This docs.kernel.org link intentional and it is better to this rendered version. thanks, -- Shuah