CVE-2022-49383

Source
https://cve.org/CVERecord?id=CVE-2022-49383
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49383.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49383
Downstream
Published
2025-02-26T02:11:19.768Z
Modified
2026-04-02T08:27:32.518569Z
Summary
watchdog: rzg2l_wdt: Fix 'BUG: Invalid wait context'
Details

In the Linux kernel, the following vulnerability has been resolved:

watchdog: rzg2l_wdt: Fix 'BUG: Invalid wait context'

This patch fixes the issue 'BUG: Invalid wait context' during restart() callback by using clkprepareenable() instead of pmruntimeget_sync() for turning on the clocks during restart.

This issue is noticed when testing with renesas_defconfig.

[ 42.213802] reboot: Restarting system [ 42.217860] [ 42.219364] ============================= [ 42.223368] [ BUG: Invalid wait context ] [ 42.227372] 5.17.0-rc5-arm64-renesas-00002-g10393723e35e #522 Not tainted [ 42.234153] ----------------------------- [ 42.238155] systemd-shutdow/1 is trying to lock: [ 42.242766] ffff00000a650828 (&genpd->mlock){+.+.}-{3:3}, at: genpdlockmtx+0x14/0x20 [ 42.250709] other info that might help us debug this: [ 42.255753] context-{4:4} [ 42.258368] 2 locks held by systemd-shutdow/1: [ 42.262806] #0: ffff80000944e1c8 (systemtransitionmutex#2){+.+.}-{3:3}, at: __dosysreboot+0xd0/0x250 [ 42.272388] #1: ffff8000094c4e40 (rcureadlock){....}-{1:2}, at: atomicnotifiercallchain+0x0/0x150 [ 42.281795] stack backtrace: [ 42.284672] CPU: 0 PID: 1 Comm: systemd-shutdow Not tainted 5.17.0-rc5-arm64-renesas-00002-g10393723e35e #522 [ 42.294577] Hardware name: Renesas SMARC EVK based on r9a07g044c2 (DT) [ 42.301096] Call trace: [ 42.303538] dumpbacktrace+0xcc/0xd8 [ 42.307203] showstack+0x14/0x30 [ 42.310517] dumpstacklvl+0x88/0xb0 [ 42.314180] dumpstack+0x14/0x2c [ 42.317492] __lockacquire+0x1b24/0x1b50 [ 42.321502] lockacquire+0x120/0x3a8 [ 42.325162] __mutexlock+0x84/0x8f8 [ 42.328737] mutexlocknested+0x30/0x58 [ 42.332658] genpdlock_mtx+0x14/0x20 [ 42.336319] genpdruntimeresume+0xc4/0x228 [ 42.340587] __rpmcallback+0x44/0x170 [ 42.344337] rpmcallback+0x64/0x70 [ 42.347824] rpm_resume+0x4e0/0x6b8 [ 42.351310] __pmruntimeresume+0x50/0x78 [ 42.355404] rzg2l_wdtrestart+0x28/0x68 [ 42.359329] watchdogrestartnotifier+0x1c/0x30 [ 42.363943] atomicnotifiercallchain+0x94/0x150 [ 42.368732] dokernelrestart+0x24/0x30 [ 42.372652] machinerestart+0x44/0x70 [ 42.376399] kernelrestart+0x3c/0x60 [ 42.380058] __dosysreboot+0x228/0x250 [ 42.383977] _arm64sysreboot+0x20/0x28 [ 42.387983] invokesyscall+0x40/0xf8

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49383.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2cbc5cd0b55fa2310cc557c77b0665f5e00272de
Fixed
6505541e5298cea2b79da68ee626f583f8e18784
Fixed
0a635239cd5484d8f2e702713ccc49ec82aa7594
Fixed
e4cf89596c1f1e33309556699f910ced4abbaf44

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49383.json"