[Bug c/90673] New: A problem with 'copy destination size is too small' warning in copy_from_user

2019-05-29 Thread yaro330 at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yaro330 at gmail dot com Target Milestone: --- Example function: static ssize_t ipa3_write_ep_holb(struct file *file, const char __user *buf, si

[Bug middle-end/90673] A problem with 'copy destination size is too small' error in copy_from_user

2019-05-29 Thread yaro330 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90673 Yaro Slav changed: What|Removed |Added Summary|A problem with 'copy|A problem with 'copy |dest

[Bug middle-end/90673] A problem with 'copy destination size is too small' error in copy_from_user

2019-05-30 Thread yaro330 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90673 --- Comment #4 from Yaro Slav --- (In reply to Andrew Pinski from comment #1) > Can you provide the preprocessed source and the exact options being used? Options and version are here (apparently it's present in gcc 9.1.0 as well): https://gist.g

[Bug middle-end/90673] A problem with 'copy destination size is too small' error in copy_from_user

2019-06-05 Thread yaro330 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90673 --- Comment #6 from Yaro Slav --- (In reply to Kees Cook from comment #5) > From the linked code: > > missing = copy_from_user(dbg_buff, buf, sizeof(buf)); > > dbg_buff is a global variable -- is writing to it thread safe? > > sizeof(buf

[Bug middle-end/90673] A problem with 'copy destination size is too small' error in copy_from_user

2019-06-06 Thread yaro330 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90673 Yaro Slav changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---