Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751115AbeACSnY (ORCPT + 1 other); Wed, 3 Jan 2018 13:43:24 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:44773 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbeACSnW (ORCPT ); Wed, 3 Jan 2018 13:43:22 -0500 Subject: Re: WARNING in rds_cmsg_rdma_args To: syzbot , davem@davemloft.net, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, rds-devel@oss.oracle.com, syzkaller-bugs@googlegroups.com, Mohamed Ghannam References: <001a1144d1c8a6b0cd0561db6999@google.com> From: Santosh Shilimkar Organization: Oracle Corporation Message-ID: <54adea8b-d173-20b2-43cb-fc75d51d74c3@oracle.com> Date: Wed, 3 Jan 2018 10:43:11 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <001a1144d1c8a6b0cd0561db6999@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8763 signatures=668651 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=791 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801030255 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 1/3/2018 12:58 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > ad036b63ee57df9ab802a4eb20cbbbec66aa4520 > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > C reproducer is attached > syzkaller reproducer is attached. See > > for information about syzkaller reproducers > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+ef175b5825285531eabf@syzkaller.appspotmail.com > It will help syzbot understand when the bug is fixed. See footer for > details. > If you forward the report, please keep this part and the footer. > > audit: type=1400 audit(1514947982.760:7): avc:  denied  { map } for > pid=3468 comm="syzkaller284818" path="/root/syzkaller284818499" > dev="sda1" ino=16481 > scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 > tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 > WARNING: CPU: 1 PID: 3468 at net/rds/rdma.c:617 > rds_cmsg_rdma_args+0xe96/0x1360 net/rds/rdma.c:617 > Kernel panic - not syncing: panic_on_warn set ... > +Mohamed Ghannam, who was discussing similar issue and was going to post fix for it. Checking args->nr_local against 0 upfront would address this issue as well. Regards, Santosh