Re: [PATCH] rds: fix crash in rds_info_getsockopt()

2020-05-20 Thread David Miller
From: John Hubbard Date: Wed, 20 May 2020 12:41:47 -0700 > The conversion to pin_user_pages() had a bug: it overlooked > the case of allocation of pages failing. Fix that by restoring > an equivalent check. > > Reported-by: syzbot+118ac0af4ac7f785a...@syzkaller.appspotmail.com > Fixes: dbfe7d743

Re: [PATCH] rds: fix crash in rds_info_getsockopt()

2020-05-20 Thread santosh . shilimkar
On 5/20/20 12:41 PM, John Hubbard wrote: The conversion to pin_user_pages() had a bug: it overlooked the case of allocation of pages failing. Fix that by restoring an equivalent check. Reported-by: syzbot+118ac0af4ac7f785a...@syzkaller.appspotmail.com Fixes: dbfe7d74376e ("rds: convert get_user_

[PATCH] rds: fix crash in rds_info_getsockopt()

2020-05-20 Thread John Hubbard
The conversion to pin_user_pages() had a bug: it overlooked the case of allocation of pages failing. Fix that by restoring an equivalent check. Reported-by: syzbot+118ac0af4ac7f785a...@syzkaller.appspotmail.com Fixes: dbfe7d74376e ("rds: convert get_user_pages() --> pin_user_pages()") Cc: David S