In the Linux kernel, the following vulnerability has been resolved: jfs: truncate good inode pages when hard link is 0 The fileset value of the inode copy from the disk by the reproducer is AGGR_RESERVED_I. When executing evict, its hard link number is 0, so its inode pages are not truncated. This causes the bugon to be triggered when executing clear_inode() because nrpages is greater than 0.
https://git.kernel.org/stable/c/df3fd8daf278eca365f221749ae5b728e8382a04
https://git.kernel.org/stable/c/b5b471820c33365a8ccd2d463578bf4e47056c2c
https://git.kernel.org/stable/c/8ed7275910fb7177012619864e04d3008763f3ea
https://git.kernel.org/stable/c/89fff8e3d6710fc32507b8e19eb5afa9fb79b896
https://git.kernel.org/stable/c/5845b926c561b8333cd65169526eec357d7bb449
https://git.kernel.org/stable/c/34d8e982bac48bdcca7524644a8825a580edce74
https://git.kernel.org/stable/c/2d91b3765cd05016335cd5df5e5c6a29708ec058
https://git.kernel.org/stable/c/2b1d5ca395a5fb170c3f885cd42c16179f7f54ec
https://git.kernel.org/stable/c/1bb5cdc3e39f0c2b311fcb631258b7e60d3fb0d3