On Mon, 2017-07-31 at 08:50 +0200, Arnd Bergmann wrote:
> A sockaddr_in structure on the stack getting passed into rdma_ip2gid
> triggers this warning, since we memcpy into a larger sockaddr_in6
> structure:
>
> In function 'memcpy',
> inlined from 'rdma_ip2gid' at include/rdma/ib_addr.h:175:3
On Mon, Jul 31, 2017 at 2:52 PM, Arnd Bergmann wrote:
> On Mon, Jul 31, 2017 at 11:18 PM, Kees Cook wrote:
>> On Mon, Jul 31, 2017 at 2:10 PM, Arnd Bergmann wrote:
>>> On Mon, Jul 31, 2017 at 10:58 PM, Kees Cook wrote:
On Mon, Jul 31, 2017 at 12:30 AM, Arnd Bergmann wrote:
> On Mon, J
On Mon, Jul 31, 2017 at 11:18 PM, Kees Cook wrote:
> On Mon, Jul 31, 2017 at 2:10 PM, Arnd Bergmann wrote:
>> On Mon, Jul 31, 2017 at 10:58 PM, Kees Cook wrote:
>>> On Mon, Jul 31, 2017 at 12:30 AM, Arnd Bergmann wrote:
On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
>>
On Mon, 2017-07-31 at 14:18 -0700, Kees Cook wrote:
> On Mon, Jul 31, 2017 at 2:10 PM, Arnd Bergmann wrote:
> > On Mon, Jul 31, 2017 at 10:58 PM, Kees Cook
> > wrote:
> > > On Mon, Jul 31, 2017 at 12:30 AM, Arnd Bergmann
> > > wrote:
> > > > On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua
> > > > w
On Mon, Jul 31, 2017 at 2:10 PM, Arnd Bergmann wrote:
> On Mon, Jul 31, 2017 at 10:58 PM, Kees Cook wrote:
>> On Mon, Jul 31, 2017 at 12:30 AM, Arnd Bergmann wrote:
>>> On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
> break;
> default:
> r
On Mon, Jul 31, 2017 at 10:58 PM, Kees Cook wrote:
> On Mon, Jul 31, 2017 at 12:30 AM, Arnd Bergmann wrote:
>> On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
break;
default:
return -EINVAL;
>>> what happens if you replace 16 with sizeof(
On Mon, Jul 31, 2017 at 12:30 AM, Arnd Bergmann wrote:
> On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
>> On Mon, Jul 31, 2017 at 9:50 AM, Arnd Bergmann wrote:
>>> --- a/include/rdma/ib_addr.h
>>> +++ b/include/rdma/ib_addr.h
>>> @@ -172,7 +172,8 @@ static inline int rdma_ip2gid(struct sock
On Mon, 2017-07-31 at 21:19 +0200, Arnd Bergmann wrote:
> On Mon, Jul 31, 2017 at 6:17 PM, Bart Van Assche om> wrote:
> > On Mon, 2017-07-31 at 18:04 +0200, Arnd Bergmann wrote:
> > > On Mon, Jul 31, 2017 at 5:32 PM, Bart Van Assche > > dc.com> wrote:
> > > > So inetaddr_event() assigns AF_INET s
On Mon, Jul 31, 2017 at 6:17 PM, Bart Van Assche wrote:
> On Mon, 2017-07-31 at 18:04 +0200, Arnd Bergmann wrote:
>> On Mon, Jul 31, 2017 at 5:32 PM, Bart Van Assche
>> wrote:
>> > So inetaddr_event() assigns AF_INET so .sin_family and gcc warns about code
>> > that is only executed if .sin_fami
On Mon, 2017-07-31 at 18:04 +0200, Arnd Bergmann wrote:
> On Mon, Jul 31, 2017 at 5:32 PM, Bart Van Assche
> wrote:
> > So inetaddr_event() assigns AF_INET so .sin_family and gcc warns about code
> > that is only executed if .sin_family == AF_INET6? Since this warning is the
> > result of incorre
On Mon, Jul 31, 2017 at 5:32 PM, Bart Van Assche wrote:
> On Mon, 2017-07-31 at 09:30 +0200, Arnd Bergmann wrote:
>> On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
>> > On Mon, Jul 31, 2017 at 9:50 AM, Arnd Bergmann wrote:
>> > > --- a/include/rdma/ib_addr.h
>> > > +++ b/include/rdma/ib_addr
On Mon, 2017-07-31 at 09:30 +0200, Arnd Bergmann wrote:
> On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
> > On Mon, Jul 31, 2017 at 9:50 AM, Arnd Bergmann wrote:
> > > --- a/include/rdma/ib_addr.h
> > > +++ b/include/rdma/ib_addr.h
> > > @@ -172,7 +172,8 @@ static inline int rdma_ip2gid(stru
On Mon, Jul 31, 2017 at 9:08 AM, Moni Shoua wrote:
> On Mon, Jul 31, 2017 at 9:50 AM, Arnd Bergmann wrote:
>> --- a/include/rdma/ib_addr.h
>> +++ b/include/rdma/ib_addr.h
>> @@ -172,7 +172,8 @@ static inline int rdma_ip2gid(struct sockaddr *addr,
>> union ib_gid *gid)
>>
On Mon, Jul 31, 2017 at 9:50 AM, Arnd Bergmann wrote:
> A sockaddr_in structure on the stack getting passed into rdma_ip2gid
> triggers this warning, since we memcpy into a larger sockaddr_in6
> structure:
>
> In function 'memcpy',
> inlined from 'rdma_ip2gid' at include/rdma/ib_addr.h:175:3,
A sockaddr_in structure on the stack getting passed into rdma_ip2gid
triggers this warning, since we memcpy into a larger sockaddr_in6
structure:
In function 'memcpy',
inlined from 'rdma_ip2gid' at include/rdma/ib_addr.h:175:3,
inlined from 'addr_event.isra.4.constprop' at
drivers/infinib
15 matches
Mail list logo