From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BB56C432C3 for ; Fri, 29 Nov 2019 00:05:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6596B21775 for ; Fri, 29 Nov 2019 00:05:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbfK2AFJ (ORCPT ); Thu, 28 Nov 2019 19:05:09 -0500 Received: from mail-il1-f197.google.com ([209.85.166.197]:35101 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfK2AFI (ORCPT ); Thu, 28 Nov 2019 19:05:08 -0500 Received: by mail-il1-f197.google.com with SMTP id z10so7783062ilm.2 for ; Thu, 28 Nov 2019 16:05:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=w/HvLkOSu/v5/h3baM8jZB3a9xl/Qrwfh5SeJXgTDvA=; b=f/z41Lz72couC7B/E1gp3GEquV48+s9CylZtoge0VYsZVmqyTho6L0KaSIYvmSkzKX MNFxB73UiMaQGmA0Kjqj78Ci/uXoKu53W0HLdlW8AqATvUQY+GaHQqCqmqqsTwgLYWYN DkprYLYFpbMF6HaXlcPJNXw0AADAt/zshQO4lcTvgjXmFG/0jN82BF/WWdMd+6TMS36r I9pZXqKVPv8Z1cLwYFF5pMCWrNYyqo+ldLOy9rvYRRE+JIC+cb6dLhgwOv9uDcv1uJyD 84Zc/s4eAWOdGwIeaDzmPuezqi+j3TGhBtNh75cKMbimwxo+RM/MBBxp/Gf6zylbazhu RAfg== X-Gm-Message-State: APjAAAVxgGbOPCNiL4dqWuIuW91V9BjnMudFyWb44wkL4wRaI4/PAwgo 1sqiq2xEAgf90eqbTFS+ccfw6wLThB7N0LnVwm+8y0kZQLif X-Google-Smtp-Source: APXvYqymwSQ1v3AUjhQQYR7YffI3wT8H0KBte/hHJIiGucB2l82dyqjQ/Nj4W/ozbfwXFBgZutxwaMtceUqaSB7OUZIChTztBMqZ MIME-Version: 1.0 X-Received: by 2002:a92:ce06:: with SMTP id b6mr48880153ilo.14.1574985905877; Thu, 28 Nov 2019 16:05:05 -0800 (PST) Date: Thu, 28 Nov 2019 16:05:05 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000723a32059870fbd4@google.com> Subject: general protection fault in smack_socket_sendmsg (2) From: syzbot To: a@unstable.cc, andrew@lunn.ch, b.a.t.m.a.n@lists.open-mesh.org, casey@schaufler-ca.com, davem@davemloft.net, f.fainelli@gmail.com, jmorris@namei.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, mareklindner@neomailbox.ch, netdev@vger.kernel.org, serge@hallyn.com, sw@simonwunderlich.de, syzkaller-bugs@googlegroups.com, vivien.didelot@savoirfairelinux.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 0be0ee71 vfs: properly and reliably lock f_pos in fdget_po.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12c49ef2e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=330a1f54d1edb817 dashboard link: https://syzkaller.appspot.com/bug?extid=131d2229316b7012ac06 compiler: clang version 9.0.0 (/home/glider/llvm/clang 80fee25776c2fb61e74c1ecb1a523375c2500b69) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13bb67cee00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12460136e00000 The bug was bisected to: commit 8ae5bcdc5d98a99e59f194101e7acd2e9d055758 Author: Vivien Didelot Date: Fri May 19 21:00:54 2017 +0000 net: dsa: add MDB notifier bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17ec2f5ae00000 final crash: https://syzkaller.appspot.com/x/report.txt?x=141c2f5ae00000 console output: https://syzkaller.appspot.com/x/log.txt?x=101c2f5ae00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+131d2229316b7012ac06@syzkaller.appspotmail.com Fixes: 8ae5bcdc5d98 ("net: dsa: add MDB notifier") kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7989 Comm: kworker/1:4 Not tainted 5.4.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krxrpcd rxrpc_peer_keepalive_worker RIP: 0010:smack_socket_sendmsg+0x5b/0x480 security/smack/smack_lsm.c:3675 Code: e8 fa 03 6b fe 4c 89 e8 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 74 46 a4 fe 4d 8b 65 00 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 56 46 a4 fe 4c 8b 33 49 8d 9e 08 RSP: 0018:ffff88808a58f9c8 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8880a1270280 RDX: 0000000000000000 RSI: ffff88808a58fb18 RDI: 0000000000000000 RBP: ffff88808a58fa80 R08: ffffffff83442500 R09: ffff88808a58fb86 R10: ffffed10114b1f72 R11: 0000000000000000 R12: ffff8880a124c114 R13: ffff88808a58fb18 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2d48c9e78 CR3: 0000000098a23000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_socket_sendmsg+0x6c/0xd0 security/security.c:2013 sock_sendmsg net/socket.c:655 [inline] kernel_sendmsg+0x77/0x140 net/socket.c:678 rxrpc_send_keepalive+0x254/0x3c0 net/rxrpc/output.c:655 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:376 [inline] rxrpc_peer_keepalive_worker+0x76e/0xb40 net/rxrpc/peer_event.c:437 process_one_work+0x7ef/0x10e0 kernel/workqueue.c:2269 worker_thread+0xc01/0x1630 kernel/workqueue.c:2415 kthread+0x332/0x350 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Modules linked in: ---[ end trace 8b748724da7e3b28 ]--- RIP: 0010:smack_socket_sendmsg+0x5b/0x480 security/smack/smack_lsm.c:3675 Code: e8 fa 03 6b fe 4c 89 e8 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 ef e8 74 46 a4 fe 4d 8b 65 00 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 56 46 a4 fe 4c 8b 33 49 8d 9e 08 RSP: 0018:ffff88808a58f9c8 EFLAGS: 00010206 RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8880a1270280 RDX: 0000000000000000 RSI: ffff88808a58fb18 RDI: 0000000000000000 RBP: ffff88808a58fa80 R08: ffffffff83442500 R09: ffff88808a58fb86 R10: ffffed10114b1f72 R11: 0000000000000000 R12: ffff8880a124c114 R13: ffff88808a58fb18 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2d48c9e78 CR3: 0000000098a23000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This bug is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches