From: Alexander Holler <holler@ahsoftware.de>
To: Nikolay Dimitrov <picmaster@mail.bg>
Cc: "meta-freescale@yoctoproject.org"
<meta-freescale@yoctoproject.org>,
Jon Nettleton <jon.nettleton@gmail.com>,
Otavio Salvador <otavio@ossystems.com.br>
Subject: Re: [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only
Date: Sat, 08 Nov 2014 19:49:55 +0100 [thread overview]
Message-ID: <545E65D3.5080003@ahsoftware.de> (raw)
In-Reply-To: <545D79DC.8030701@mail.bg>
Am 08.11.2014 03:03, schrieb Nikolay Dimitrov:
> Hi Alexander,
>
> The driver allows to be enabled/disabled by a configuration option, so
> it's a responsibility of your engineering team to properly configure
> the software for development, manufacturing and production purposes, as
> there's no "one size fits all" solution for this option.
Sorry to disappoint you, but I'm currently just a hobbyist. ;)
> And I think it would be a unwise decision just to cripple the driver
> because there is potential for misuse the driver. If so, we have to
> disable also all device files and sysfs entries that allow raw access
> to physical memory, physical disks, cpu frequency, thermal device,
> power supply voltages, as all of these can screw-up the product (either
> by deleting data or by frying a component on the board). And we have to
> forbid kitchen knives :).
Hmm, maybe I should repeat that this driver is about ONE TIME
PROGRAMMABLE memory. So all your comparisons are (imho) totally wrong.
YOU ONLY HAVE ONE SHOT to set one of these values to whatever value you
want. And if you get it wrong, the HW might be unusable afterwards. Not
to speak about all the things which can go wrong and might write to one
of these files, changing the (hopefully correct) values such that the HW
is dead afterwards too.
> I like Eric's idea with sysfs unlock entry. It's also possible to have
> different sysfs "read" and "write" files' permissions, to provide
> privilege separation.
>
> I also understand your confusion of the answers received on LKML and
> here, but you should already know that each FOSS tribe has its own
> customs. What's good for the kernel itself doesn't make it instantly
> good for actual systems/product integration, so it's normal to have
> groups with different goals to react differently on the same topic.
I'm not confused, at least not in regard what you want to suggest. Of
course, I'm totally confused about the fact that almost nobody else
before has critized that write functionality of this driver, also I'm
already used to the fact that I'm unable to understand many things which
are happing in todays world. But nobody is perfect. ;)
But there is absolutely no reason to include this ONE TIME FUNCTIONALITY
into any kernel meant for the public, especially as it is very
dangerous. And for sure not without any content veryfication and some
other means to make sure the value one wants to put ONCE into that ONE
TIME MEMORY isn't wrong.
That's why I just refuse to change my patch in order to add write
functionality. I don't want to do (imho) foolish things just because
someone else tells me to do them. I'm no Lemming.
At least not without adequate compensations. ;)
Regards,
Alexander Holler
next prev parent reply other threads:[~2014-11-08 18:50 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 9:43 [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only Alexander Holler
2014-11-07 9:43 ` [PATCH 1/1] " Alexander Holler
2014-11-07 11:34 ` Otavio Salvador
2014-11-07 14:40 ` Alexander Holler
2014-11-07 15:06 ` Otavio Salvador
2014-11-07 15:26 ` Alexander Holler
2014-11-07 14:00 ` [PATCH 0/1] " Eric Bénard
2014-11-07 14:31 ` Jon Nettleton
2014-11-07 14:55 ` Alexander Holler
2014-11-07 15:04 ` Eric Bénard
2014-11-07 15:07 ` Otavio Salvador
2014-11-07 15:23 ` Alexander Holler
2014-11-07 16:00 ` Otavio Salvador
2014-11-07 16:38 ` Alexander Holler
2014-11-08 2:03 ` Nikolay Dimitrov
2014-11-08 8:58 ` Chris Tapp
2014-11-08 9:32 ` Jon Nettleton
2014-11-08 18:49 ` Alexander Holler [this message]
2014-11-09 10:14 ` Alexander Holler
2014-11-09 15:09 ` Eric Bénard
2014-11-09 17:03 ` Bob Cochran
2014-11-09 12:34 ` Nikolay Dimitrov
2014-11-09 18:09 ` Alexander Holler
2014-11-09 19:20 ` Nikolay Dimitrov
2014-11-07 16:03 ` Eric Bénard
2014-11-07 15:50 ` Eric Bénard
-- strict thread matches above, loose matches on Subject: below --
2014-11-08 21:54 Robin Findley
2014-11-10 14:11 ` Alexander Holler
2014-11-13 19:19 ` Alexander Holler
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=545E65D3.5080003@ahsoftware.de \
--to=holler@ahsoftware.de \
--cc=jon.nettleton@gmail.com \
--cc=meta-freescale@yoctoproject.org \
--cc=otavio@ossystems.com.br \
--cc=picmaster@mail.bg \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.