Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supervisor may in certain cases allow applying of invalid config.txt gpio configs, such as 17=op,dh:27=op,dl:22=op,dl:24=op,dl #2384

Open
cywang117 opened this issue Nov 4, 2024 · 2 comments

Comments

@cywang117
Copy link
Contributor

Colon-separated configs are not an officially supported format for gpio configuration and are not mentioned anywhere in the official config.txt docs.

It's been observed in certain unclear circumstances, the Supervisor will allow application and writing of an invalid colon-separated config such as 17=op,dh:27=op,dl:22=op,dl:24=op,dl to config.txt. SV version of the observed device was 16.4.6, so there's a potential bug here.

It's unclear why this only happens sometimes and causes an error loop at other times.

@pipex
Copy link
Contributor

pipex commented Nov 11, 2024

I don't think the supervisor validates configuration keys other than forbidding some keys from a list. I imagine if the colon separated key is coming from the API/or via the local endpoint, the supervisor will allow it. I don't see that as a bug. I may be misunderstanding the issue though

@cywang117
Copy link
Contributor Author

cywang117 commented Nov 11, 2024

@pipex The issue I have observed is that setting such a config causes a Apply boot config in progress...Apply boot config success loop, in 2/3 cases observed on devices. This is the bug I was referring to. However there was also a custom splash image set, which may confound the issue and/or may have been related to the loop behavior. I'll try to reproduce and update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants