Commit 9a73f08
committed
objtool: Fix another stack overflow in validate_branch()
The insn state is getting saved on the stack twice for each recursive
iteration. No need for that, once is enough.
Fixes the following reported stack overflow:
drivers/scsi/qla2xxx/qla_dbg.o: error: SIGSEGV: objtool stack overflow!
Segmentation fault
Fixes: 7058984 ("objtool: Add option to trace function validation")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/90956545-2066-46e3-b547-10c884582eb0@app.fastmail.com
Link: https://patch.msgid.link/8b97f62d083457f3b0a29a424275f7957dd3372f.1772821683.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>1 parent 7fdaa64 commit 9a73f08
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3748 | 3748 | | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | | - | |
| 3751 | + | |
3752 | 3752 | | |
3753 | 3753 | | |
3754 | 3754 | | |
| |||
4013 | 4013 | | |
4014 | 4014 | | |
4015 | 4015 | | |
4016 | | - | |
| 4016 | + | |
4017 | 4017 | | |
4018 | 4018 | | |
4019 | 4019 | | |
| |||
4044 | 4044 | | |
4045 | 4045 | | |
4046 | 4046 | | |
4047 | | - | |
| 4047 | + | |
4048 | 4048 | | |
4049 | 4049 | | |
4050 | 4050 | | |
| |||
4055 | 4055 | | |
4056 | 4056 | | |
4057 | 4057 | | |
4058 | | - | |
| 4058 | + | |
4059 | 4059 | | |
4060 | 4060 | | |
4061 | 4061 | | |
| |||
4080 | 4080 | | |
4081 | 4081 | | |
4082 | 4082 | | |
4083 | | - | |
| 4083 | + | |
4084 | 4084 | | |
4085 | 4085 | | |
4086 | 4086 | | |
| |||
0 commit comments