-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
SystemSan: only report arbitrary file open for writes #8845
base: master
Are you sure you want to change the base?
Conversation
As discussed on the elfutils mailing list I think it's an interesting idea but I'm not sure that just flagging |
As far as I understand the idea is to make it possible to turn off Regarding |
I think what's interesting about this sanitizer is that it can produce bug reports that can be considered false positives by some projects for various reasons and can be considered bugs at the same time (python/cpython#45385 comes to mind). I'm not sure but it would probably make sense to keep finding and reporting issues like that regardless of whether projects choose to not treat them as bugs. Anyway it could be that I'm overthinking this. |
@jonathanmetzman would it be possible for SystemSan config to have some option like |
@alan32liu should we merge this for now ? |
Are there any examples of legitimate bugs from the current set? If not, it may be better to leave this entire sanitizer as an configurable option wrt read/write and make it off by default. |
The legitimate bug found so far was unrar CVE-2022-30333 which was a write. I am ok with the config option. But in the meantime (as long as config options for SystemSan do not exist), we can restrict it to writes... |
Yeah I think we can do this. |
Note I created #9142 to completely disable this for now, since right now it's generating a lot of noise and potentially also blocking us from finding things with our other sanitizers. We can bring it back once we have flag support. |
I think this was a better alternative than #9142 as the noise is in the reads, not in the writes... Should I close this then ? |
Any updates on SystemSanitizer ? I still think detecting arbitrary file write is better than nothing or detecting arbitrary file open (which causes noise because of arbitrary file open for reads) |
File opens for read only seem so far to be :