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
Tony Hutter <hutter2@llnl.gov>Committed on Sep 14 2021, 7:41 PM
Parents
rG6385f4e70e62: Fix unfortunate NULL in spa_update_dspace
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG4434baab1101: Linux 5.14 compat: explicity assign set_page_dirty (authored by Coleman Kane <ckane@colemankane.org>).Sep 14 2021, 7:41 PM