In the Linux kernel, the following vulnerability has been resolved:
mm: use memallocnofssave() in pagecachera_order()
See commit f2c817bed58d ("mm: use memallocnofssave in readahead path"), ensure that pagecachera_order() do not attempt to reclaim file-backed pages too, or it leads to a deadlock, found issue when test ext4 large folio.
INFO: task DataXceiver for:7494 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hungtasktimeoutsecs" disables this message. task:DataXceiver for state:D stack:0 pid:7494 ppid:1 flags:0x00000200 Call trace: _switchto+0x14c/0x240 _schedule+0x82c/0xdd0 schedule+0x58/0xf0 ioschedule+0x24/0xa0 _foliolock+0x130/0x300 migratepagesbatch+0x378/0x918 migratepages+0x350/0x700 compactzone+0x63c/0xb38 compactzoneorder+0xc0/0x118 trytocompactpages+0xb0/0x280 _allocpagesdirectcompact+0x98/0x248 _allocpages+0x510/0x1110 allocpages+0x9c/0x130 folioalloc+0x20/0x78 filemapallocfolio+0x8c/0x1b0 pagecacheraorder+0x174/0x308 ondemandreadahead+0x1c8/0x2b8 pagecacheasyncra+0x68/0xb8 filemapreadahead.isra.0+0x64/0xa8 filemapgetpages+0x3fc/0x5b0 filemapspliceread+0xf4/0x280 ext4filespliceread+0x2c/0x48 [ext4] vfsspliceread.part.0+0xa8/0x118 splicedirecttoactor+0xbc/0x288 dosplicedirect+0x9c/0x108 dosendfile+0x328/0x468 _arm64syssendfile64+0x8c/0x148 invokesyscall+0x4c/0x118 el0svccommon.constprop.0+0xc8/0xf0 doel0svc+0x24/0x38 el0svc+0x4c/0x1f8 el0t64synchandler+0xc0/0xc8 el0t64_sync+0x188/0x190
[
{
"id": "CVE-2024-36882-1be9d925",
"target": {
"function": "page_cache_ra_order",
"file": "mm/readahead.c"
},
"digest": {
"length": 1137.0,
"function_hash": "91164512474340503410511087837559557252"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@468971c3f4b8187f25334503b68050a0e1370147"
},
{
"id": "CVE-2024-36882-59c8c5c1",
"target": {
"file": "mm/readahead.c"
},
"digest": {
"line_hashes": [
"294815765014595228917102667375630780678",
"87092623340555729127539017860155110691",
"10939096733751171477948428982373519295",
"246327679938363356902675911476276444411",
"107875451885290205893087458695433540736",
"272732874088529260020516091461293532716",
"32701346836921900719448169951095613774",
"2811673562289474153763740513247011266",
"25046771417295607262790837550239424664",
"106771137974531207370148558045504441513",
"44761805567434079872217110782349511755"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7629ef6dda1564098aadeef38e5fbd11ee8627c4"
},
{
"id": "CVE-2024-36882-84b4d9af",
"target": {
"function": "page_cache_ra_order",
"file": "mm/readahead.c"
},
"digest": {
"length": 1137.0,
"function_hash": "91164512474340503410511087837559557252"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7629ef6dda1564098aadeef38e5fbd11ee8627c4"
},
{
"id": "CVE-2024-36882-bdb9b882",
"target": {
"function": "page_cache_ra_order",
"file": "mm/readahead.c"
},
"digest": {
"length": 1100.0,
"function_hash": "55703862631485419056071282137708168070"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@30153e4466647a17eebfced13eede5cbe4290e69"
},
{
"id": "CVE-2024-36882-c1292a71",
"target": {
"function": "page_cache_ra_order",
"file": "mm/readahead.c"
},
"digest": {
"length": 1109.0,
"function_hash": "202580252720110286357521940829284720129"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cf6a1d16c6df3c30b03f0c6a92a2ba7f86dffb45"
},
{
"id": "CVE-2024-36882-c3047d86",
"target": {
"file": "mm/readahead.c"
},
"digest": {
"line_hashes": [
"294815765014595228917102667375630780678",
"87092623340555729127539017860155110691",
"10939096733751171477948428982373519295",
"246327679938363356902675911476276444411",
"107875451885290205893087458695433540736",
"272732874088529260020516091461293532716",
"32701346836921900719448169951095613774",
"2811673562289474153763740513247011266",
"25046771417295607262790837550239424664",
"106771137974531207370148558045504441513",
"44761805567434079872217110782349511755"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cf6a1d16c6df3c30b03f0c6a92a2ba7f86dffb45"
},
{
"id": "CVE-2024-36882-f66e36c6",
"target": {
"file": "mm/readahead.c"
},
"digest": {
"line_hashes": [
"294815765014595228917102667375630780678",
"87092623340555729127539017860155110691",
"10939096733751171477948428982373519295",
"246327679938363356902675911476276444411",
"176485166297647776045847268023398088106",
"95873445110016154929158913177018519858",
"32701346836921900719448169951095613774",
"2811673562289474153763740513247011266",
"25046771417295607262790837550239424664",
"106771137974531207370148558045504441513",
"44761805567434079872217110782349511755"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@30153e4466647a17eebfced13eede5cbe4290e69"
},
{
"id": "CVE-2024-36882-fd888be5",
"target": {
"file": "mm/readahead.c"
},
"digest": {
"line_hashes": [
"294815765014595228917102667375630780678",
"87092623340555729127539017860155110691",
"10939096733751171477948428982373519295",
"246327679938363356902675911476276444411",
"107875451885290205893087458695433540736",
"272732874088529260020516091461293532716",
"32701346836921900719448169951095613774",
"2811673562289474153763740513247011266",
"25046771417295607262790837550239424664",
"106771137974531207370148558045504441513",
"44761805567434079872217110782349511755"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@468971c3f4b8187f25334503b68050a0e1370147"
}
]