From: Kees Cook <keescook@chromium.org> To: Sedat Dilek <sedat.dilek@gmail.com> Cc: Gabriel Somlo <somlo@cmu.edu>, Nathan Chancellor <nathan@kernel.org>, "Michael S. Tsirkin" <mst@redhat.com>, linux-kernel@vger.kernel.org, Nick Desaulniers <ndesaulniers@google.com>, qemu-devel@nongnu.org, Clang-Built-Linux ML <clang-built-linux@googlegroups.com>, Sami Tolvanen <samitolvanen@google.com> Subject: Re: [PATCH] qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute Date: Fri, 2 Apr 2021 11:25:42 -0700 [thread overview] Message-ID: <202104021125.53164550A@keescook> (raw) In-Reply-To: <CA+icZUWdeWSy52bU4cjHau1hn5NiFAozaHgDb=geaaCYOET9+w@mail.gmail.com> On Fri, Apr 02, 2021 at 08:42:07AM +0200, Sedat Dilek wrote: > On Thu, Feb 25, 2021 at 10:25 PM Kees Cook <keescook@chromium.org> wrote: > > > > On Thu, 11 Feb 2021 12:42:58 -0700, Nathan Chancellor wrote: > > > fw_cfg_showrev() is called by an indirect call in kobj_attr_show(), > > > which violates clang's CFI checking because fw_cfg_showrev()'s second > > > parameter is 'struct attribute', whereas the ->show() member of 'struct > > > kobj_structure' expects the second parameter to be of type 'struct > > > kobj_attribute'. > > > > > > $ cat /sys/firmware/qemu_fw_cfg/rev > > > 3 > > > > > > [...] > > > > Applied to kspp/cfi/cleanups, thanks! > > > > [1/1] qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute > > https://git.kernel.org/kees/c/f5c4679d6c49 > > > > I have queued this up in my custom patchset > (for-5.12/kspp-cfi-cleanups-20210225). > > What is the plan to get this upstream? I haven't sent it to Linus yet -- I was expecting to batch more of these and send them for v5.13. (But if the kvm folks snag it, that's good too.) -Kees > > Feel free to add my: > > Tested-by: Sedat Dilek <sedat.dilek@gmail.com> > > - Sedat - -- Kees Cook
WARNING: multiple messages have this Message-ID (diff)
From: Kees Cook <keescook@chromium.org> To: Sedat Dilek <sedat.dilek@gmail.com> Cc: "Michael S. Tsirkin" <mst@redhat.com>, Gabriel Somlo <somlo@cmu.edu>, Nick Desaulniers <ndesaulniers@google.com>, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, Nathan Chancellor <nathan@kernel.org>, Clang-Built-Linux ML <clang-built-linux@googlegroups.com>, Sami Tolvanen <samitolvanen@google.com> Subject: Re: [PATCH] qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute Date: Fri, 2 Apr 2021 11:25:42 -0700 [thread overview] Message-ID: <202104021125.53164550A@keescook> (raw) In-Reply-To: <CA+icZUWdeWSy52bU4cjHau1hn5NiFAozaHgDb=geaaCYOET9+w@mail.gmail.com> On Fri, Apr 02, 2021 at 08:42:07AM +0200, Sedat Dilek wrote: > On Thu, Feb 25, 2021 at 10:25 PM Kees Cook <keescook@chromium.org> wrote: > > > > On Thu, 11 Feb 2021 12:42:58 -0700, Nathan Chancellor wrote: > > > fw_cfg_showrev() is called by an indirect call in kobj_attr_show(), > > > which violates clang's CFI checking because fw_cfg_showrev()'s second > > > parameter is 'struct attribute', whereas the ->show() member of 'struct > > > kobj_structure' expects the second parameter to be of type 'struct > > > kobj_attribute'. > > > > > > $ cat /sys/firmware/qemu_fw_cfg/rev > > > 3 > > > > > > [...] > > > > Applied to kspp/cfi/cleanups, thanks! > > > > [1/1] qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute > > https://git.kernel.org/kees/c/f5c4679d6c49 > > > > I have queued this up in my custom patchset > (for-5.12/kspp-cfi-cleanups-20210225). > > What is the plan to get this upstream? I haven't sent it to Linus yet -- I was expecting to batch more of these and send them for v5.13. (But if the kvm folks snag it, that's good too.) -Kees > > Feel free to add my: > > Tested-by: Sedat Dilek <sedat.dilek@gmail.com> > > - Sedat - -- Kees Cook
next prev parent reply other threads:[~2021-04-02 18:25 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-11 19:42 [PATCH] qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute Nathan Chancellor 2021-02-11 19:42 ` Nathan Chancellor 2021-02-11 20:41 ` Sami Tolvanen 2021-02-11 20:41 ` Sami Tolvanen 2021-02-24 18:08 ` Sedat Dilek 2021-02-24 18:08 ` Sedat Dilek 2021-02-22 19:02 ` Nick Desaulniers 2021-02-22 19:02 ` Nick Desaulniers 2021-02-22 19:08 ` Nathan Chancellor 2021-02-22 19:08 ` Nathan Chancellor 2021-02-25 4:57 ` Kees Cook 2021-02-25 4:57 ` Kees Cook 2021-02-25 10:41 ` Philippe Mathieu-Daudé 2021-02-25 10:41 ` Philippe Mathieu-Daudé 2021-02-25 21:25 ` Kees Cook 2021-02-25 21:25 ` Kees Cook 2021-04-02 6:42 ` Sedat Dilek 2021-04-02 6:42 ` Sedat Dilek 2021-04-02 18:25 ` Kees Cook [this message] 2021-04-02 18:25 ` Kees Cook 2021-04-02 18:31 ` Nathan Chancellor 2021-04-02 18:31 ` Nathan Chancellor 2021-04-02 18:44 ` Sedat Dilek 2021-04-02 18:44 ` Sedat Dilek
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=202104021125.53164550A@keescook \ --to=keescook@chromium.org \ --cc=clang-built-linux@googlegroups.com \ --cc=linux-kernel@vger.kernel.org \ --cc=mst@redhat.com \ --cc=nathan@kernel.org \ --cc=ndesaulniers@google.com \ --cc=qemu-devel@nongnu.org \ --cc=samitolvanen@google.com \ --cc=sedat.dilek@gmail.com \ --cc=somlo@cmu.edu \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.