In the Linux kernel, the following vulnerability has been resolved:
f2fs: use spin_lock to avoid hang
[14696.634553] task:cat state:D stack: 0 pid:1613738 ppid:1613735 flags:0x00000004 [14696.638285] Call Trace: [14696.639038] <TASK> [14696.640032] _schedule+0x302/0x930 [14696.640969] schedule+0x58/0xd0 [14696.641799] schedulepreemptdisabled+0x18/0x30 [14696.642890] _mutexlock.constprop.0+0x2fb/0x4f0 [14696.644035] ? modobjcgstate+0x10c/0x310 [14696.645040] ? objcgroupcharge+0xe1/0x170 [14696.646067] _mutexlockslowpath+0x13/0x20 [14696.647126] mutexlock+0x34/0x40 [14696.648070] statshow+0x25/0x17c0 [f2fs] [14696.649218] seqreaditer+0x120/0x4b0 [14696.650289] ? aafileperm+0x12a/0x500 [14696.651357] ? lrucacheadd+0x1c/0x20 [14696.652470] seqread+0xfd/0x140 [14696.653445] fullproxyread+0x5c/0x80 [14696.654535] vfsread+0xa0/0x1a0 [14696.655497] ksysread+0x67/0xe0 [14696.656502] _x64sysread+0x1a/0x20 [14696.657580] dosyscall64+0x3b/0xc0 [14696.658671] entrySYSCALL64afterhwframe+0x44/0xae [14696.660068] RIP: 0033:0x7efe39df1cb2 [14696.661133] RSP: 002b:00007ffc8badd948 EFLAGS: 00000246 ORIGRAX: 0000000000000000 [14696.662958] RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007efe39df1cb2 [14696.664757] RDX: 0000000000020000 RSI: 00007efe399df000 RDI: 0000000000000003 [14696.666542] RBP: 00007efe399df000 R08: 00007efe399de010 R09: 00007efe399de010 [14696.668363] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000 [14696.670155] R13: 0000000000000003 R14: 0000000000020000 R15: 0000000000020000 [14696.671965] </TASK> [14696.672826] task:umount state:D stack: 0 pid:1614985 ppid:1614984 flags:0x00004000 [14696.674930] Call Trace: [14696.675903] <TASK> [14696.676780] _schedule+0x302/0x930 [14696.677927] schedule+0x58/0xd0 [14696.679019] schedulepreemptdisabled+0x18/0x30 [14696.680412] _mutexlock.constprop.0+0x2fb/0x4f0 [14696.681783] ? destroyinode+0x65/0x80 [14696.683006] _mutexlockslowpath+0x13/0x20 [14696.684305] mutexlock+0x34/0x40 [14696.685442] f2fsdestroystats+0x1e/0x60 [f2fs] [14696.686803] f2fsputsuper+0x158/0x390 [f2fs] [14696.688238] genericshutdownsuper+0x7a/0x120 [14696.689621] killblocksuper+0x27/0x50 [14696.690894] killf2fssuper+0x7f/0x100 [f2fs] [14696.692311] deactivatelockedsuper+0x35/0xa0 [14696.693698] deactivatesuper+0x40/0x50 [14696.694985] cleanupmnt+0x139/0x190 [14696.696209] _cleanupmnt+0x12/0x20 [14696.697390] taskworkrun+0x64/0xa0 [14696.698587] exittousermodeprepare+0x1b7/0x1c0 [14696.700053] syscallexittousermode+0x27/0x50 [14696.701418] dosyscall64+0x48/0xc0 [14696.702630] entrySYSCALL64after_hwframe+0x44/0xae
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "212851612014211604758565500003334305125",
"length": 190.0
},
"target": {
"function": "f2fs_destroy_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-08175e9c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec4187d45cc1c2d69fffeee5fa6aa4cb62477cfb",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"119790180655013262155063432303996303523",
"172061082130926169002514027932394757781",
"203910985855444073555879304407299828314",
"285950327424428620257288036599577582948",
"268787203712114316046276732986543699661",
"284980910019032907664751178594585074036",
"85622561891642556549069825658821665985",
"309627686927964740002466983258403142207",
"335028531394592518522332185378568661674",
"201269958416169936516387494200068421328",
"275642975041167690490209427988952551175",
"5677328492098866632117221809202018413",
"126747625052821450787650131111283338187",
"147485520185006638061598636821632793585",
"134039116389457666924482566409279537333",
"73596275556835758692704227311920146804",
"241100458411930495146426159332817380220",
"176748668307019533716217815715128517358",
"57749465931077404997729662478480378914",
"216171529440787420084400359403430669313",
"6226299633973927729748049411867013620",
"476933865915374275401551642696291723",
"277706011722272272935618764693516879139",
"132185943392915170693016060508394068807",
"14040523960234153173378991878221464449",
"30957529421797023045989379147159973409",
"97003344137844141020568930547540461987",
"320067081693476691948339147127986258086",
"105768661213275306192288682856538274422",
"43234790531896269948912242055033987759"
]
},
"target": {
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-0bfaf972",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec4187d45cc1c2d69fffeee5fa6aa4cb62477cfb",
"signature_type": "Line"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "315021276079915124130600483127067236173",
"length": 10336.0
},
"target": {
"function": "stat_show",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-2303ded2",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2eff60346e7ae1a24cd868b8fdcf58e946e7dde1",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "7959883403068277428787442894578377114",
"length": 1488.0
},
"target": {
"function": "f2fs_build_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-247624e3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98237fcda4a24e67b0a4498c17d5aa4ad4537bc7",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "212851612014211604758565500003334305125",
"length": 190.0
},
"target": {
"function": "f2fs_destroy_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-2b7c83c7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2eff60346e7ae1a24cd868b8fdcf58e946e7dde1",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "315021276079915124130600483127067236173",
"length": 10336.0
},
"target": {
"function": "stat_show",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-40210f0d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec4187d45cc1c2d69fffeee5fa6aa4cb62477cfb",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"119790180655013262155063432303996303523",
"172061082130926169002514027932394757781",
"203910985855444073555879304407299828314",
"285950327424428620257288036599577582948",
"268787203712114316046276732986543699661",
"284980910019032907664751178594585074036",
"85622561891642556549069825658821665985",
"309627686927964740002466983258403142207",
"335028531394592518522332185378568661674",
"201269958416169936516387494200068421328",
"275642975041167690490209427988952551175",
"5677328492098866632117221809202018413",
"126747625052821450787650131111283338187",
"147485520185006638061598636821632793585",
"134039116389457666924482566409279537333",
"73596275556835758692704227311920146804",
"241100458411930495146426159332817380220",
"176748668307019533716217815715128517358",
"57749465931077404997729662478480378914",
"216171529440787420084400359403430669313",
"6226299633973927729748049411867013620",
"476933865915374275401551642696291723",
"277706011722272272935618764693516879139",
"132185943392915170693016060508394068807",
"14040523960234153173378991878221464449",
"30957529421797023045989379147159973409",
"97003344137844141020568930547540461987",
"320067081693476691948339147127986258086",
"105768661213275306192288682856538274422",
"43234790531896269948912242055033987759"
]
},
"target": {
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-4770d5df",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98237fcda4a24e67b0a4498c17d5aa4ad4537bc7",
"signature_type": "Line"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "7959883403068277428787442894578377114",
"length": 1488.0
},
"target": {
"function": "f2fs_build_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-4a60374a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2eff60346e7ae1a24cd868b8fdcf58e946e7dde1",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"119790180655013262155063432303996303523",
"172061082130926169002514027932394757781",
"203910985855444073555879304407299828314",
"285950327424428620257288036599577582948",
"268787203712114316046276732986543699661",
"284980910019032907664751178594585074036",
"85622561891642556549069825658821665985",
"309627686927964740002466983258403142207",
"335028531394592518522332185378568661674",
"201269958416169936516387494200068421328",
"275642975041167690490209427988952551175",
"5677328492098866632117221809202018413",
"126747625052821450787650131111283338187",
"147485520185006638061598636821632793585",
"134039116389457666924482566409279537333",
"73596275556835758692704227311920146804",
"241100458411930495146426159332817380220",
"176748668307019533716217815715128517358",
"57749465931077404997729662478480378914",
"216171529440787420084400359403430669313",
"6226299633973927729748049411867013620",
"476933865915374275401551642696291723",
"277706011722272272935618764693516879139",
"132185943392915170693016060508394068807",
"14040523960234153173378991878221464449",
"30957529421797023045989379147159973409",
"97003344137844141020568930547540461987",
"320067081693476691948339147127986258086",
"105768661213275306192288682856538274422",
"43234790531896269948912242055033987759"
]
},
"target": {
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-4fbb182a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@738886004bd2885ac2db0bc63b4874aa471ca87e",
"signature_type": "Line"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "7959883403068277428787442894578377114",
"length": 1488.0
},
"target": {
"function": "f2fs_build_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-59336686",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@738886004bd2885ac2db0bc63b4874aa471ca87e",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "315021276079915124130600483127067236173",
"length": 10336.0
},
"target": {
"function": "stat_show",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-6c919ec3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@738886004bd2885ac2db0bc63b4874aa471ca87e",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"119790180655013262155063432303996303523",
"172061082130926169002514027932394757781",
"203910985855444073555879304407299828314",
"285950327424428620257288036599577582948",
"268787203712114316046276732986543699661",
"284980910019032907664751178594585074036",
"85622561891642556549069825658821665985",
"309627686927964740002466983258403142207",
"335028531394592518522332185378568661674",
"201269958416169936516387494200068421328",
"275642975041167690490209427988952551175",
"5677328492098866632117221809202018413",
"126747625052821450787650131111283338187",
"147485520185006638061598636821632793585",
"134039116389457666924482566409279537333",
"73596275556835758692704227311920146804",
"241100458411930495146426159332817380220",
"176748668307019533716217815715128517358",
"57749465931077404997729662478480378914",
"216171529440787420084400359403430669313",
"6226299633973927729748049411867013620",
"476933865915374275401551642696291723",
"277706011722272272935618764693516879139",
"132185943392915170693016060508394068807",
"14040523960234153173378991878221464449",
"30957529421797023045989379147159973409",
"97003344137844141020568930547540461987",
"320067081693476691948339147127986258086",
"105768661213275306192288682856538274422",
"43234790531896269948912242055033987759"
]
},
"target": {
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-77ef878c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2eff60346e7ae1a24cd868b8fdcf58e946e7dde1",
"signature_type": "Line"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "212851612014211604758565500003334305125",
"length": 190.0
},
"target": {
"function": "f2fs_destroy_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-b8f3136d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@738886004bd2885ac2db0bc63b4874aa471ca87e",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "212851612014211604758565500003334305125",
"length": 190.0
},
"target": {
"function": "f2fs_destroy_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-d57ccd85",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98237fcda4a24e67b0a4498c17d5aa4ad4537bc7",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "7959883403068277428787442894578377114",
"length": 1488.0
},
"target": {
"function": "f2fs_build_stats",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-db550290",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec4187d45cc1c2d69fffeee5fa6aa4cb62477cfb",
"signature_type": "Function"
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "40670826828579548543037233092933580322",
"length": 10436.0
},
"target": {
"function": "stat_show",
"file": "fs/f2fs/debug.c"
},
"id": "CVE-2022-49169-f34d68c7",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98237fcda4a24e67b0a4498c17d5aa4ad4537bc7",
"signature_type": "Function"
}
]