drm/i915: disable KASAN for handlers
PATCH 1/1 drm/i915: disable KASAN for handlers
Handlers are currently the only blocker to compile the kernel with gcc 7
and KASAN+use-after-scope enabled:drivers/gpu/drm/i915/gvt/handlers.c:2200:1: error: the frame size of 43760 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] drivers/gpu/drm/i915/gvt/handlers.c:2402:1: error: the frame size of 9400 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] drivers/gpu/drm/i915/gvt/handlers.c:2628:1: error: the frame size of 11256 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
It is due to many expansions of MMIO_* macros in init_generic_mmio_info. INTEL_GVT_MMIO_OFFSET generates for each such line a __reg and an offset. There are too many for KASAN to keep up.
So disable KASAN for this file.
--- drivers/gpu/drm/i915/gvt/Makefile | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/gvt/Makefile +2 -0
@@ -6,3 +6,5 @@ GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \ ccflags-y += -I$(src) -I$(src)/$(GVT_DIR) -Wall i915-y += $(addprefix $(GVT_DIR)/, $(GVT_SOURCE)) obj-$(CONFIG_DRM_I915_GVT_KVMGT) += $(GVT_DIR)/kvmgt.o + +KASAN_SANITIZE_handlers.o := n
Signature · 6 lines
2.12.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: disable KASAN for handlers
== Series Details ==
== Series Details ==
Series: drm/i915: disable KASAN for handlers
URL : https://patchwork.freedesktop.org/series/22184/
State : success
== Summary ==
Series 22184v1 drm/i915: disable KASAN for handlers
https://patchwork.freedesktop.org/api/1.0/series/22184/revisions/1/mbox/
Test gem_exec_suspend:
Subgroup basic-s4-devices:
dmesg-warn -> PASS (fi-kbl-7560u) fdo#100125
Test kms_flip:
Subgroup basic-flip-vs-wf_vblank:
fail -> PASS (fi-skl-6770hq) fdo#99739fdo#100125 https://bugs.freedesktop.org/show_bug.cgi?id=100125
fdo#99739 https://bugs.freedesktop.org/show_bug.cgi?id=99739
fi-bdw-5557u total:278 pass:267 dwarn:0 dfail:0 fail:0 skip:11 time: 430s fi-bdw-gvtdvm total:278 pass:256 dwarn:8 dfail:0 fail:0 skip:14 time: 423s fi-bsw-n3050 total:278 pass:239 dwarn:0 dfail:0 fail:0 skip:39 time: 579s fi-bxt-j4205 total:278 pass:259 dwarn:0 dfail:0 fail:0 skip:19 time: 508s fi-bxt-t5700 total:278 pass:258 dwarn:0 dfail:0 fail:0 skip:20 time: 556s fi-byt-j1900 total:278 pass:251 dwarn:0 dfail:0 fail:0 skip:27 time: 481s fi-byt-n2820 total:278 pass:247 dwarn:0 dfail:0 fail:0 skip:31 time: 481s fi-hsw-4770 total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time: 415s fi-hsw-4770r total:278 pass:262 dwarn:0 dfail:0 fail:0 skip:16 time: 407s fi-ilk-650 total:278 pass:228 dwarn:0 dfail:0 fail:0 skip:50 time: 422s fi-ivb-3520m total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 485s fi-ivb-3770 total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 462s fi-kbl-7500u total:278 pass:260 dwarn:0 dfail:0 fail:0 skip:18 time: 454s fi-kbl-7560u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 568s fi-skl-6260u total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 452s fi-skl-6700hq total:278 pass:261 dwarn:0 dfail:0 fail:0 skip:17 time: 575s fi-skl-6700k total:278 pass:256 dwarn:4 dfail:0 fail:0 skip:18 time: 456s fi-skl-6770hq total:278 pass:268 dwarn:0 dfail:0 fail:0 skip:10 time: 490s fi-skl-gvtdvm total:278 pass:265 dwarn:0 dfail:0 fail:0 skip:13 time: 433s fi-snb-2520m total:278 pass:250 dwarn:0 dfail:0 fail:0 skip:28 time: 534s fi-snb-2600 total:278 pass:249 dwarn:0 dfail:0 fail:0 skip:29 time: 407s
66e17cacf58689a0d6ca38138217e667d100a64a drm-tip: 2017y-03m-30d-10h-12m-59s UTC integration manifest 1c3a289 drm/i915: disable KASAN for handlers
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_4357/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Zhenyu Wang
AppliedQuoted 39 lines · Jiri Slaby
Handlers are currently the only blocker to compile the kernel with gcc 7
and KASAN+use-after-scope enabled:drivers/gpu/drm/i915/gvt/handlers.c:2200:1: error: the frame size of 43760 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2402:1: error: the frame size of 9400 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2628:1: error: the frame size of 11256 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]It is due to many expansions of MMIO_* macros in
init_generic_mmio_info.INTEL_GVT_MMIO_OFFSETgenerates for each such line a__regand an offset. There are too many for KASAN to keep up.So disable KASAN for this file.
Signed-off-by Jiri Slaby <[email protected]>Cc Martin Liska <[email protected]>Cc Zhenyu Wang <[email protected]>Cc Zhi Wang <[email protected]>Cc Daniel Vetter <[email protected]>Cc Jani Nikula <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/i915/gvt/Makefile | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/gvt/Makefile +2
-0@@ -6,3 +6,5 @@ GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \ ccflags-y += -I$(src) -I$(src)/$(GVT_DIR) -Wall i915-y += $(addprefix $(GVT_DIR)/, $(GVT_SOURCE)) obj-$(CONFIG_DRM_I915_GVT_KVMGT) += $(GVT_DIR)/kvmgt.o + +KASAN_SANITIZE_handlers.o := nSignature · 1 line
2.12.2
Applied this, we'd better cleanup legacy usage to current i915 mmio reg define. Thanks!
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Jani Nikula
maintainerQuoted 27 lines · Zhenyu Wang
Quoted 26 lines · Jiri Slaby
Handlers are currently the only blocker to compile the kernel with gcc 7
and KASAN+use-after-scope enabled:drivers/gpu/drm/i915/gvt/handlers.c:2200:1: error: the frame size of 43760 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2402:1: error: the frame size of 9400 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2628:1: error: the frame size of 11256 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]It is due to many expansions of MMIO_* macros in
init_generic_mmio_info.INTEL_GVT_MMIO_OFFSETgenerates for each such line a__regand an offset. There are too many for KASAN to keep up.So disable KASAN for this file.
Signed-off-by Jiri Slaby <[email protected]>Cc Martin Liska <[email protected]>Cc Zhenyu Wang <[email protected]>Cc Zhi Wang <[email protected]>Cc Daniel Vetter <[email protected]>Cc Jani Nikula <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/i915/gvt/Makefile | 2 ++ 1 file changed, 2 insertions(+)
Quoted 16 lines
Quoted 13 lines
drivers/gpu/drm/i915/gvt/Makefile +2
-0@@ -6,3 +6,5 @@ GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \ ccflags-y += -I$(src) -I$(src)/$(GVT_DIR) -Wall i915-y += $(addprefix $(GVT_DIR)/, $(GVT_SOURCE)) obj-$(CONFIG_DRM_I915_GVT_KVMGT) += $(GVT_DIR)/kvmgt.o + +KASAN_SANITIZE_handlers.o := nSignature · 1 line
2.12.2Applied this, we'd better cleanup legacy usage to current i915 mmio reg define. Thanks!
Hmmh, that was a bit fast, there was a related discussion going in [1].
BR,
Jani.
[1] http://mid.mail-archive.com/[email protected]
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 45 lines · Jani Nikula
Quoted 27 lines · Zhenyu Wang
Quoted 26 lines · Jiri Slaby
Handlers are currently the only blocker to compile the kernel with gcc 7
and KASAN+use-after-scope enabled:drivers/gpu/drm/i915/gvt/handlers.c:2200:1: error: the frame size of 43760 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2402:1: error: the frame size of 9400 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2628:1: error: the frame size of 11256 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]It is due to many expansions of MMIO_* macros in
init_generic_mmio_info.INTEL_GVT_MMIO_OFFSETgenerates for each such line a__regand an offset. There are too many for KASAN to keep up.So disable KASAN for this file.
Signed-off-by Jiri Slaby <[email protected]>Cc Martin Liska <[email protected]>Cc Zhenyu Wang <[email protected]>Cc Zhi Wang <[email protected]>Cc Daniel Vetter <[email protected]>Cc Jani Nikula <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/i915/gvt/Makefile | 2 ++ 1 file changed, 2 insertions(+)Quoted 16 lines
Quoted 11 lines
drivers/gpu/drm/i915/gvt/Makefile +2
-1@@ -6,3 +6,5 @@ GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \ ccflags-y += -I$(src) -I$(src)/$(GVT_DIR) -Wall i915-y += $(addprefix $(GVT_DIR)/, $(GVT_SOURCE)) obj-$(CONFIG_DRM_I915_GVT_KVMGT) += $(GVT_DIR)/kvmgt.o + +KASAN_SANITIZE_handlers.o := n --Quoted 2 lines
2.12.2
Applied this, we'd better cleanup legacy usage to current i915 mmio reg define. Thanks!
Quoted 7 lines
Hmmh, that was a bit fast, there was a related discussion going in [1].
BR,
Jani.
Sorry about that, it looked like I never replied to your last mail.
There is also a related problem that I had sent another fix for:
https://patchwork.kernel.org/patch/9601349/
I still think that my two patches are correct and they should both be applied.
Arnd
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 53 lines · Arnd Bergmann
Quoted 51 lines · Jani Nikula
Quoted 27 lines · Zhenyu Wang
Quoted 26 lines · Jiri Slaby
Handlers are currently the only blocker to compile the kernel with gcc 7
and KASAN+use-after-scope enabled:drivers/gpu/drm/i915/gvt/handlers.c:2200:1: error: the frame size of 43760 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2402:1: error: the frame size of 9400 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]drivers/gpu/drm/i915/gvt/handlers.c:2628:1: error: the frame size of 11256 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]It is due to many expansions of MMIO_* macros in
init_generic_mmio_info.INTEL_GVT_MMIO_OFFSETgenerates for each such line a__regand an offset. There are too many for KASAN to keep up.So disable KASAN for this file.
Signed-off-by Jiri Slaby <[email protected]>Cc Martin Liska <[email protected]>Cc Zhenyu Wang <[email protected]>Cc Zhi Wang <[email protected]>Cc Daniel Vetter <[email protected]>Cc Jani Nikula <[email protected]>Cc David Airlie <[email protected]>--- drivers/gpu/drm/i915/gvt/Makefile | 2 ++ 1 file changed, 2 insertions(+)Quoted 16 lines
Quoted 11 lines
drivers/gpu/drm/i915/gvt/Makefile +2
-1@@ -6,3 +6,5 @@ GVT_SOURCE := gvt.o aperture_gm.o handlers.o vgpu.o trace_points.o firmware.o \ ccflags-y += -I$(src) -I$(src)/$(GVT_DIR) -Wall i915-y += $(addprefix $(GVT_DIR)/, $(GVT_SOURCE)) obj-$(CONFIG_DRM_I915_GVT_KVMGT) += $(GVT_DIR)/kvmgt.o + +KASAN_SANITIZE_handlers.o := n --Quoted 2 lines
2.12.2
Applied this, we'd better cleanup legacy usage to current i915 mmio reg define. Thanks!
Hmmh, that was a bit fast, there was a related discussion going in [1].
BR,
Jani.
Quoted 8 lines
Quoted 1 line
Sorry about that, it looked like I never replied to your last mail.
There is also a related problem that I had sent another fix for:
https://patchwork.kernel.org/patch/9601349/I still think that my two patches are correct and they should both be applied.
Hi,
have they been applied yet? Or was this fixed some other way?
thanks,
Signature · 6 lines
js suse labs _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel