From: Don Dutile <email@example.com>
To: Bjorn Helgaas <firstname.lastname@example.org>, Kelsey <email@example.com>
Cc: Linux Kernel Mailing List <firstname.lastname@example.org>,
Kelsey Skunberg <email@example.com>,
firstname.lastname@example.org, stable <email@example.com>,
Ruslan Bilovol <firstname.lastname@example.org>,
Bodong Wang <email@example.com>
Subject: Re: [Linux-kernel-mentees] [PATCH v2] PCI: sysfs: Change bus_rescan and dev_rescan to rescan
Date: Mon, 30 Mar 2020 09:09:32 -0400 [thread overview]
Message-ID: <firstname.lastname@example.org> (raw)
On 3/28/20 3:59 PM, Bjorn Helgaas wrote:
> On Thu, Mar 26, 2020 at 12:29:11AM -0600, Kelsey wrote:
>> On Wed, Mar 25, 2020 at 4:10 PM Bjorn Helgaas <email@example.com> wrote:
>>> Thanks for taking care of this! Two questions:
>>> 1) You supplied permissions of 0220, but DEVICE_ATTR_WO()
>>> uses__ATTR_WO(), which uses 0200. Shouldn't we keep 0200?
>> Good catch. Before changing to DEVICE_ATTR_WO(), the permissions used
>> was (S_IWUSR | S_IWGRP), which would be 0220. This means the
>> permissions were mistakenly changed from 0220 to 0200 in the same
>> commit 4e2b79436e4f ("PCI: sysfs: Change DEVICE_ATTR() to DEVICE_ATTR_WO()")
>> To verify DEVICE_ATTR_WO() is using __ATTR_WO() can be seen in
>> To verify permissions for __ATTR_WO() is 0200 can be seen in
>> These attributes had permissions 0220 when first being introduced and
>> before the above mentioned patch, so I'm on the side to believe that
>> 0220 should be used.
> I'm not sure it was a mistake that 4e2b79436e4f changed from 0220 to
> 200 or not. I'd say __ATTR_WO (0200) is the "standard" one, and we
> should have a special reason to use 0220.
Thanks for verifying the 0200 vs 0220 permissions.
I had recalled that discussion thread on the permissions when the original ATTR patch was proposed, but hadn't had time to dig it up.
Apologies for the delay, thanks for the (final?) cleanup.
next prev parent reply other threads:[~2020-03-30 13:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 15:17 [PATCH v2] PCI: sysfs: Change bus_rescan and dev_rescan to rescan Kelsey Skunberg
2020-03-25 16:31 ` Ruslan Bilovol
2020-03-25 22:10 ` [Linux-kernel-mentees] " Bjorn Helgaas
2020-03-26 6:29 ` Kelsey
2020-03-28 19:59 ` Bjorn Helgaas
2020-03-29 7:20 ` Kelsey
2020-03-30 13:09 ` Don Dutile [this message]
2020-03-26 6:35 ` Greg KH
2020-03-28 20:06 ` Bjorn Helgaas
2020-03-29 7:33 ` Greg KH
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:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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;
as well as URLs for NNTP newsgroup(s).