Linux-XFS Archive on
 help / color / Atom feed
* [Bug 208751] KASAN: Use-after-free bug in xlog_alloc_log
       [not found] <>
@ 2020-07-31 19:20 ` bugzilla-daemon
  0 siblings, 0 replies; only message in thread
From: bugzilla-daemon @ 2020-07-31 19:20 UTC (permalink / raw)
  To: linux-xfs

Eric Sandeen ( changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |
         Resolution|---                         |PATCH_ALREADY_AVAILABLE

--- Comment #1 from Eric Sandeen ( ---
You've reported this on a 5.4.0 kernel from November 2019 (please, in future
bug reports include the kernel version more prominently)

This commit:

commit 798a9cada4694ca8d970259f216cec47e675bfd5
Author: Brian Foster <>
Date:   Tue Dec 3 07:53:15 2019 -0800

    xfs: fix mount failure crash on invalid iclog memory access

    syzbot (via KASAN) reports a use-after-free in the error path of
    xlog_alloc_log(). Specifically, the iclog freeing loop doesn't
    handle the case of a fully initialized ->l_iclog linked list.
    Instead, it assumes that the list is partially constructed and NULL

    This bug manifested because there was no possible error scenario
    after iclog list setup when the original code was added.  Subsequent
    code and associated error conditions were added some time later,
    while the original error handling code was never updated. Fix up the
    error loop to terminate either on a NULL iclog or reaching the end
    of the list.

    Signed-off-by: Brian Foster <>
    Reviewed-by: Darrick J. Wong <>
    Signed-off-by: Darrick J. Wong <>

went into v5.5

I believe this is already resolved; if you have a reproducer can you please
test?  If you believe this bug is still not fixed, please re-open this bug.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2020-07-31 19:20 ` [Bug 208751] KASAN: Use-after-free bug in xlog_alloc_log bugzilla-daemon

Linux-XFS Archive on

Archives are clonable:
	git clone --mirror linux-xfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-xfs linux-xfs/ \
	public-inbox-index linux-xfs

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone