mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Xu <dlxu@meta.com>
To: Joel Granados <joel.granados@kernel.org>,
	"bot+bpf-ci@kernel.org" <bot+bpf-ci@kernel.org>,
	Douglas Anderson <dianders@chromium.org>,
	Petr Mladek <pmladek@suse.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: kernel-ci <kernel-ci@meta.com>,
	"andrii@kernel.org" <andrii@kernel.org>,
	"daniel@iogearbox.net" <daniel@iogearbox.net>,
	"martin.lau@linux.dev" <martin.lau@linux.dev>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] treewide: const qualify ctl_tables where applicable
Date: Fri, 10 Jan 2025 17:05:34 +0000	[thread overview]
Message-ID: <588ec9ab-b38a-40b3-8db5-575a09e9a126@meta.com> (raw)
In-Reply-To: <fnrup4bdfgoeiy3nfsl56juhqjrnstntf4fg5jrcdxv226ehqp@alrqzkyfw6sl>

Hi Joel,

On 1/10/25 05:32, Joel Granados wrote:
> On Thu, Jan 09, 2025 at 01:38:33PM +0000, bot+bpf-ci@kernel.org wrote:
>> Dear patch submitter,
>>
>> CI has tested the following submission:
>> Status:     FAILURE
>> Name:       treewide: const qualify ctl_tables where applicable
>> Patchwork:  https://patchwork.kernel.org/project/netdevbpf/list/?series=923743&state=*
>> Matrix:     https://github.com/kernel-patches/bpf/actions/runs/12690795270
>>
>> Failed jobs:
>> build-x86_64-gcc: https://github.com/kernel-patches/bpf/actions/runs/12690795270/job/35372434718
>> build-x86_64-llvm-17: https://github.com/kernel-patches/bpf/actions/runs/12690795270/job/35372434997
>> build-x86_64-llvm-17-O2: https://github.com/kernel-patches/bpf/actions/runs/12690795270/job/35372435294
>> build-x86_64-llvm-18: https://github.com/kernel-patches/bpf/actions/runs/12690795270/job/35372435638
>> build-x86_64-llvm-18-O2: https://github.com/kernel-patches/bpf/actions/runs/12690795270/job/35372435949
> We can't make watchdog_hardlockup_sysctl const here because it is
> changing the ctl_talbe.mode to 0644 if watchdog_hardlockup_available is
> true. I'll remove this sysctl array from my patchset to move forward
> with the general constification, but I still don't fully understand the
> need for the modification of the permissions.
>
> My main question is: Cant we just leave the permissions as they where
> originally (before the this commit [1])? The problem touched by [1] is
> when the user writes to nmi_watchdog and watchdog_hardlockup_available
> is false, they will receive a -ENOTSUPP error from proc_nmi_watchdog.
> But wont they get an error anyway if they try to write to a read-only
> file? Does this fix target some specific user-space application?
>
> I have added the original to:/from: contacts from [1]. Please correct me
> if I have miss-read the situation.
>
> Best
>
> [1] https://lore.kernel.org/lkml/20230526184139.1.I0d75971cc52a7283f495aac0bd5c3041aadc734e@changeid/

That seems like a reasonable question. Note BPF CI is off-list by 
default, so I've CC'd linux-kernel.

Thanks,

Daniel



  parent reply	other threads:[~2025-01-10 17:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09 13:16 Joel Granados
2025-01-09 14:50 ` Steven Rostedt
2025-01-09 14:58 ` Jani Nikula
2025-01-09 15:00 ` Martin K. Petersen
2025-01-09 15:25 ` Thomas Weißschuh
2025-01-09 16:55   ` Kees Cook
2025-01-10 14:12   ` Joel Granados
2025-01-09 15:45 ` Corey Minyard
2025-01-09 15:51 ` Darrick J. Wong
2025-01-09 18:05 ` Song Liu
     [not found] ` <501b718d1bd046bf3eb1932b11627e4cec6194f992124722840145bed109ac0a@mail.kernel.org>
     [not found]   ` <fnrup4bdfgoeiy3nfsl56juhqjrnstntf4fg5jrcdxv226ehqp@alrqzkyfw6sl>
2025-01-10 17:05     ` Daniel Xu [this message]
2025-01-13  8:44       ` Joel Granados
     [not found]     ` <Z4TnZXCjgCIGEfsR@pathway.suse.cz>
     [not found]       ` <42gh2e7ckwjcccorbrapeos42n4yr22koqotsu7qithb7cxl6x@ynn6yr5h7dtb>
2025-02-18 10:35         ` Joel Granados
2025-01-10 17:13 ` Dixit, Ashutosh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=588ec9ab-b38a-40b3-8db5-575a09e9a126@meta.com \
    --to=dlxu@meta.com \
    --cc=akpm@linux-foundation.org \
    --cc=andrii@kernel.org \
    --cc=bot+bpf-ci@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=dianders@chromium.org \
    --cc=joel.granados@kernel.org \
    --cc=kernel-ci@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=pmladek@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®