Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d6b52f68
Commit
d6b52f68
authored
Jun 23, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Fix null ptr deref in journal_pins_to_text()
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
36da8e38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
fs/bcachefs/journal.c
fs/bcachefs/journal.c
+5
-0
No files found.
fs/bcachefs/journal.c
View file @
d6b52f68
...
@@ -1521,6 +1521,11 @@ bool bch2_journal_seq_pins_to_text(struct printbuf *out, struct journal *j, u64
...
@@ -1521,6 +1521,11 @@ bool bch2_journal_seq_pins_to_text(struct printbuf *out, struct journal *j, u64
struct
journal_entry_pin
*
pin
;
struct
journal_entry_pin
*
pin
;
spin_lock
(
&
j
->
lock
);
spin_lock
(
&
j
->
lock
);
if
(
!
test_bit
(
JOURNAL_running
,
&
j
->
flags
))
{
spin_unlock
(
&
j
->
lock
);
return
true
;
}
*
seq
=
max
(
*
seq
,
j
->
pin
.
front
);
*
seq
=
max
(
*
seq
,
j
->
pin
.
front
);
if
(
*
seq
>=
j
->
pin
.
back
)
{
if
(
*
seq
>=
j
->
pin
.
back
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment