Re: [PATCH] UBSAN: support __ubsan_handle_type_mismatch_v1

2018-02-08 Thread Mark Rutland
On Thu, Feb 08, 2018 at 07:05:14PM +0300, Andrey Ryabinin wrote: > On 02/08/2018 06:46 PM, Mark Rutland wrote: > > Originally, UBSAN's __ubsan_handle_type_mismatch took a struct > > type_mismatch_data, as defined in lib/ubsan.h. This has an unsigned long > > alignment field. > > > > New versions

Re: [PATCH] UBSAN: support __ubsan_handle_type_mismatch_v1

2018-02-08 Thread Mark Rutland
On Thu, Feb 08, 2018 at 07:05:14PM +0300, Andrey Ryabinin wrote: > On 02/08/2018 06:46 PM, Mark Rutland wrote: > > Originally, UBSAN's __ubsan_handle_type_mismatch took a struct > > type_mismatch_data, as defined in lib/ubsan.h. This has an unsigned long > > alignment field. > > > > New versions

Re: [PATCH] UBSAN: support __ubsan_handle_type_mismatch_v1

2018-02-08 Thread Andrey Ryabinin
On 02/08/2018 06:46 PM, Mark Rutland wrote: > Originally, UBSAN's __ubsan_handle_type_mismatch took a struct > type_mismatch_data, as defined in lib/ubsan.h. This has an unsigned long > alignment field. > > New versions of UBSAN call __ubsan_handle_type_mismatch_v1, which is > similar to

Re: [PATCH] UBSAN: support __ubsan_handle_type_mismatch_v1

2018-02-08 Thread Andrey Ryabinin
On 02/08/2018 06:46 PM, Mark Rutland wrote: > Originally, UBSAN's __ubsan_handle_type_mismatch took a struct > type_mismatch_data, as defined in lib/ubsan.h. This has an unsigned long > alignment field. > > New versions of UBSAN call __ubsan_handle_type_mismatch_v1, which is > similar to

[PATCH] UBSAN: support __ubsan_handle_type_mismatch_v1

2018-02-08 Thread Mark Rutland
Originally, UBSAN's __ubsan_handle_type_mismatch took a struct type_mismatch_data, as defined in lib/ubsan.h. This has an unsigned long alignment field. New versions of UBSAN call __ubsan_handle_type_mismatch_v1, which is similar to __ubsan_handle_type_mismatch, but takes a different struct where

[PATCH] UBSAN: support __ubsan_handle_type_mismatch_v1

2018-02-08 Thread Mark Rutland
Originally, UBSAN's __ubsan_handle_type_mismatch took a struct type_mismatch_data, as defined in lib/ubsan.h. This has an unsigned long alignment field. New versions of UBSAN call __ubsan_handle_type_mismatch_v1, which is similar to __ubsan_handle_type_mismatch, but takes a different struct where