summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-10-09 21:05:30 +0200
committerMark Brown <broonie@kernel.org>2026-10-09 21:05:30 +0200
commit0bc99dcffd027019fb47fa61735e5a8843dfc698 (patch)
treeb2425fe02b6b8281d181224babbe8071c4c2849e /scripts/checkstack.pl
parentf3e80afbdf1062ea584754bb17569ee363adb267 (diff)
parent56de113da14706d6a1b28648e9ff5c261f536201 (diff)
downloadlinux-next-0bc99dcffd027019fb47fa61735e5a8843dfc698.tar.gz
linux-next-0bc99dcffd027019fb47fa61735e5a8843dfc698.zip
Merge branch 'mm-nonmm-stable' of https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Diffstat (limited to 'scripts/checkstack.pl')
-rwxr-xr-xscripts/checkstack.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl
index 14ce31f732ee..f8011e789a9b 100755
--- a/scripts/checkstack.pl
+++ b/scripts/checkstack.pl
@@ -66,8 +66,10 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
#c0105234: 81 ec ac 05 00 00 sub $0x5ac,%esp
# or
# 2f60: 48 81 ec e8 05 00 00 sub $0x5e8,%rsp
- $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
- $dre = qr/^.*[as][du][db] (%.*),\%(e|r)sp$/o;
+ # or
+ # 0: 48 81 ec e8 05 00 00 subq $0x5e8, %rsp
+ $re = qr/^.*[as][du][db][ql]?\s+\$(0x$x{1,8}),\s*\%(e|r)sp/o;
+ $dre = qr/^.*[as][du][db][ql]?\s+(%.*),\s*\%(e|r)sp/o;
} elsif ($arch eq 'm68k') {
# 2b6c: 4e56 fb70 linkw %fp,#-1168
# 1df770: defc ffe4 addaw #-28,%sp