From: Maxim Kokryashkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Kaplun <skaplun@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit] Fix limit check in narrow_conv_backprop(). Date: Mon, 23 Sep 2024 09:41:32 +0300 [thread overview] Message-ID: <6xbb7bbda3bm7ryzzdovwq32wukphxi7aykr5wm3oxc3wsxxao@povjteevh5va> (raw) In-Reply-To: <20240826123740.12759-1-skaplun@tarantool.org> Hi, Sergey! Thanks for the patch! LGTM, except for a few nits below. On Mon, Aug 26, 2024 at 03:37:40PM GMT, Sergey Kaplun wrote: > From: Mike Pall <mike> > > Thanks to Sergey Kaplun. > > (cherry picked from commit e45fd4cb713b610506213692f3b55a1869febb03) > > `narrow_conv_backprop()` misses the stack pointer (`nc->sp`) limit check > after a bunch of recursive calls that may change its value. As a result, It took me a minute to understand that sentence. Let's paraphrase it the following way: | The function narrow_conv_backprop() does not include a limit | check for the stack pointer (nc->sp), even though its value may | change after several recursive calls. > it leads to stack-buffer-overflow during the instruction narrowing. This > patch adds a missing check. Typo: s/a missing/the missing > > Sergey Kaplun: > * added the description and the test for the problem > > Part of tarantool/tarantool#10199 > --- > > Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-1262-fix-limit-narrow-conv-backprop > Related issues: > * https://github.com/tarantool/tarantool/issues/10199 > * https://github.com/LuaJIT/LuaJIT/issues/1262 <snipped>
next prev parent reply other threads:[~2024-09-23 6:41 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-08-26 12:37 Sergey Kaplun via Tarantool-patches 2024-09-17 10:32 ` Sergey Bronnikov via Tarantool-patches 2024-09-17 12:01 ` Sergey Kaplun via Tarantool-patches 2024-09-23 6:41 ` Maxim Kokryashkin via Tarantool-patches [this message] 2024-09-23 6:57 ` Sergey Kaplun via Tarantool-patches 2024-10-18 15:15 ` Sergey Kaplun via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=6xbb7bbda3bm7ryzzdovwq32wukphxi7aykr5wm3oxc3wsxxao@povjteevh5va \ --to=tarantool-patches@dev.tarantool.org \ --cc=m.kokryashkin@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit] Fix limit check in narrow_conv_backprop().' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox