aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorDiogo Jahchan Koike <djahchankoike@gmail.com>2024-09-23 19:22:14 -0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-09-27 21:46:34 -0400
commit40d40c6bea19ff1e40fb3d33b35b354a5b35025f (patch)
tree050d4f42f67bbf5b50c3f6ea952113419958ff8b /rust/helpers/workqueue.c
parentc6040447c56496f4929db2d73ee445d898dd8a98 (diff)
bcachefs: assign return error when iterating through layout
syzbot reported a null ptr deref in __copy_user [0] In __bch2_read_super, when a corrupt backup superblock matches the default opts offset, no error is assigned to ret and the freed superblock gets through, possibly being assigned as the best sb in bch2_fs_open and being later dereferenced, causing a fault. Assign EINVALID to ret when iterating through layout. [0]: https://syzkaller.appspot.com/bug?extid=18a5c5e8a9c856944876 Reported-by: syzbot+18a5c5e8a9c856944876@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=18a5c5e8a9c856944876 Signed-off-by: Diogo Jahchan Koike <djahchankoike@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions