aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorDiogo Jahchan Koike <[email protected]>2024-09-10 21:18:34 +0000
committerKent Overstreet <[email protected]>2024-09-21 15:39:49 +0000
commit025c55a4c7f11ea38521c6e797f3192ad8768c93 (patch)
treeb9debe4e9e97622cedf7a699ae08dd98b48f0dca /drivers/pci/controller/dwc
parentbcachefs: Remove duplicated include in backpointers.c (diff)
downloadkernel-025c55a4c7f11ea38521c6e797f3192ad8768c93.tar.gz
kernel-025c55a4c7f11ea38521c6e797f3192ad8768c93.zip
bcachefs: return err ptr instead of null in read sb clean
syzbot reported a null-ptr-deref in bch2_fs_start. [0] When a sb is marked clear but doesn't have a clean section bch2_read_superblock_clean returns NULL which PTR_ERR_OR_ZERO lets through, eventually leading to a null ptr dereference down the line. Adjust read sb clean to return an ERR_PTR indicating the invalid clean section. [0] https://syzkaller.appspot.com/bug?extid=1cecc37d87c4286e5543 Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=1cecc37d87c4286e5543 Signed-off-by: Diogo Jahchan Koike <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions