Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1407206

Re: [PATCH] workqueue: Fix an object aliasing bug with `work_data_bits'

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] workqueue: Fix an object aliasing bug with `work_data_bits'
Date 2016-05-25 23:00 +0200
Message-ID <rCO4h-5ww-3@gated-at.bofh.it> (permalink)
References <rzL2W-3NJ-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 17, 2016 at 12:04:33PM +0100, Maciej W. Rozycki wrote:
> Fix an aliasing issue causing a MIPS port build error:
> 
> In file included from include/linux/srcu.h:34:0,
>                  from include/linux/notifier.h:15,
>                  from ./arch/mips/include/asm/uprobes.h:9,
>                  from include/linux/uprobes.h:61,
>                  from include/linux/mm_types.h:13,
>                  from ./arch/mips/include/asm/vdso.h:14,
>                  from arch/mips/vdso/vdso.h:27,
>                  from arch/mips/vdso/gettimeofday.c:11:
> include/linux/workqueue.h: In function 'work_static':
> include/linux/workqueue.h:186:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
>   return *work_data_bits(work) & WORK_STRUCT_STATIC;
>   ^

Umm... the kernel is built explicitly with -fno-strict-aliasing and
it's not something individual archs can opt out.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] workqueue: Fix an object aliasing bug with  `work_data_bits' "Maciej W. Rozycki" <macro@imgtec.com> - 2016-05-17 13:10 +0200
  Re: [PATCH] workqueue: Fix an object aliasing bug with  `work_data_bits' Tejun Heo <tj@kernel.org> - 2016-05-25 23:00 +0200
    Re: [PATCH] workqueue: Fix an object aliasing bug with  `work_data_bits' "Maciej W. Rozycki" <macro@imgtec.com> - 2016-05-25 23:30 +0200

csiph-web