Message ID | 202203311127.503A3110@keescook (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] hardening fixes for v5.18-rc1 | expand |
On Thu, Mar 31, 2022 at 11:35:40AM -0700, Kees Cook wrote: > Hi Linus, > > Please pull these hardening fixes for v5.18-rc1. This addresses an > -Warray-bounds warning found under a few ARM defconfigs, and disables > long-broken CONFIG_HARDENED_USERCOPY_PAGESPAN. I don't see these patches on linux-arm-kernel... are we doing away with patch review now? :D
On Thu, Mar 31, 2022 at 11:35 AM Kees Cook <keescook@chromium.org> wrote: > > Please pull these hardening fixes for v5.18-rc1. This addresses an > -Warray-bounds warning found under a few ARM defconfigs, and disables > long-broken CONFIG_HARDENED_USERCOPY_PAGESPAN. Can't we just remove that HARDENED_USERCOPY_PAGESPAN thing entirely? Yes, yes, I know Matthew did that as part of other patches that is too late to go in any more in this merge window, but just the removal patch is a no-brainer. IOW, why not just do the attached? Linus
On Thu, Mar 31, 2022 at 07:46:28PM +0100, Russell King (Oracle) wrote: > On Thu, Mar 31, 2022 at 11:35:40AM -0700, Kees Cook wrote: > > Hi Linus, > > > > Please pull these hardening fixes for v5.18-rc1. This addresses an > > -Warray-bounds warning found under a few ARM defconfigs, and disables > > long-broken CONFIG_HARDENED_USERCOPY_PAGESPAN. > > I don't see these patches on linux-arm-kernel... are we doing away with > patch review now? :D Uh, what? The links in the patches show the reviews, even. I assume you're mainly talking about the DMA one; it's right here: https://lore.kernel.org/linux-arm-kernel/20220309175107.195182-1-keescook@chromium.org/ I had thought hch was going to take this patch, but the dma tree didn't have it, so I sent it in. And the usercopy patch was here, with references to the discussion around it too: https://lore.kernel.org/all/20220324230255.1362706-1-keescook@chromium.org/
On Thu, Mar 31, 2022 at 11:49:42AM -0700, Linus Torvalds wrote: > On Thu, Mar 31, 2022 at 11:35 AM Kees Cook <keescook@chromium.org> wrote: > > > > Please pull these hardening fixes for v5.18-rc1. This addresses an > > -Warray-bounds warning found under a few ARM defconfigs, and disables > > long-broken CONFIG_HARDENED_USERCOPY_PAGESPAN. > > Can't we just remove that HARDENED_USERCOPY_PAGESPAN thing entirely? > > Yes, yes, I know Matthew did that as part of other patches that is too > late to go in any more in this merge window, but just the removal > patch is a no-brainer. I can do that, but it seemed like more work for folks: a larger diff to look at, and a rebase for Matthew or me. It's not MUCH more work, but given the timing of the merge window, I wanted to have a minimal diff. > IOW, why not just do the attached? But I can certainly respin it, if you'd prefer?
On Thu, Mar 31, 2022 at 12:00 PM Kees Cook <keescook@chromium.org> wrote: > > I can do that, but it seemed like more work for folks: a larger diff to > look at, and a rebase for Matthew or me. It's not MUCH more work, but > given the timing of the merge window, I wanted to have a minimal diff. Stuff that just does obvious code removal may _look_ big, but I actually think it's conceptually a smaller patch than the subtle one that just made the code impossible to enable. Marking something broken implies that maybe we'll be able to fix it. This seems to be more of a "let's just get rid of it". Linus
The pull request you sent on Thu, 31 Mar 2022 11:35:40 -0700:
> https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v5.18-rc1-fix1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f87cbd0565eb7e2fa15296c74210658db1346431
Thank you!