HomeFreeBSD

Linux 5.14 compat: explicity assign set_page_dirty

Description

Linux 5.14 compat: explicity assign set_page_dirty

Kernel 5.14 introduced a change where set_page_dirty of
struct address_space_operations is no longer implicitly set to
set_page_dirty_buffers(), which ended up resulting in a NULL
pointer deref in the kernel when it is attempted to be called.
This change sets .set_page_dirty in the structure to
set_page_dirty_nobuffers(), which was introduced with the
related patch set. The breaking change was introduce in commit
0af573780b0b13fceb7fabd49dc1b073cee9a507 to torvalds/linux.git.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #12427

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Jul 26 2021, 5:55 PM
GitHub <noreply@github.com>Committed on Jul 26 2021, 5:55 PM
Parents
rGf1ca7999bbf2: Fix unfortunate NULL in spa_update_dspace
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG1c24bf966c37: Linux 5.14 compat: explicity assign set_page_dirty (authored by Coleman Kane <ckane@colemankane.org>).Jul 26 2021, 5:55 PM