syzbot


kernel BUG at arch/x86/mm/physaddr.c:LINE! (4)

Status: fixed on 2020/04/15 17:19
Reported-by: syzbot+1f4d90ead370d72e450b@syzkaller.appspotmail.com
Fix commit: 2ad3e17ebf94 audit: fix error handling in audit_data_to_entry()
First crash: 915d, last: 821d
similar bugs (9):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (2) C done 522 1108d 1318d 13/22 fixed on 2019/06/14 18:22
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) 90 200d 697d 0/22 auto-closed as invalid on 2022/04/07 07:37
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (2) C done 82 766d 906d 1/1 fixed on 2020/06/20 23:56
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! syz done 1 1093d 1093d 1/1 fixed on 2019/12/16 09:09
linux-4.14 kernel BUG at arch/x86/mm/physaddr.c:LINE! C inconclusive 23 457d 913d 0/1 upstream: reported C repro on 2019/12/26 02:01
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (5) C done 241 713d 786d 17/22 fixed on 2020/07/17 17:58
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 4 1099d 1099d 0/22 auto-closed as invalid on 2019/10/25 08:46
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! C 10 1323d 1355d 12/22 fixed on 2018/11/12 21:25
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 75 38d 712d 0/1 upstream: reported on 2020/07/14 16:42

Sample crash report:
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:28!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9377 Comm: syz-executor140 Not tainted 5.6.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__phys_addr+0xb3/0x120 arch/x86/mm/physaddr.c:28
Code: 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 e6 db 40 00 48 85 db 75 0f e8 3c da 40 00 4c 89 e0 5b 41 5c 41 5d 5d c3 e8 2d da 40 00 <0f> 0b e8 26 da 40 00 48 c7 c0 10 50 a7 89 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc9000659f490 EFLAGS: 00010093
RAX: ffff888092a740c0 RBX: 0000000074ad0ef0 RCX: ffffffff8134ad32
RDX: 0000000000000000 RSI: ffffffff8134ad93 RDI: 0000000000000006
RBP: ffffc9000659f4a8 R08: ffff888092a740c0 R09: ffffed1015d2707c
R10: ffffed1015d2707b R11: ffff8880ae9383db R12: 0000778074ad0ef0
R13: 00000000f4ad0ef0 R14: ffff8880a2988c00 R15: 0000000000000010
FS:  00000000006e9880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200004c0 CR3: 00000000973e1000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 virt_to_head_page include/linux/mm.h:721 [inline]
 virt_to_cache mm/slab.h:472 [inline]
 kfree+0x7b/0x2c0 mm/slab.c:3749
 audit_free_lsm_field kernel/auditfilter.c:76 [inline]
 audit_free_rule kernel/auditfilter.c:91 [inline]
 audit_data_to_entry+0xb7b/0x25f0 kernel/auditfilter.c:603
 audit_rule_change+0x6b5/0x1130 kernel/auditfilter.c:1130
 audit_receive_msg+0xda5/0x28b0 kernel/audit.c:1368
 audit_receive+0x114/0x230 kernel/audit.c:1513
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x59e/0x7e0 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0x91c/0xea0 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:672
 ____sys_sendmsg+0x753/0x880 net/socket.c:2343
 ___sys_sendmsg+0x100/0x170 net/socket.c:2397
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2430
 __do_sys_sendmsg net/socket.c:2439 [inline]
 __se_sys_sendmsg net/socket.c:2437 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2437
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440cf9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffb5493d58 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440cf9
RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000003
RBP: 00000000006cb018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402580
R13: 0000000000402610 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 8c7e870919ee1ee4 ]---
RIP: 0010:__phys_addr+0xb3/0x120 arch/x86/mm/physaddr.c:28
Code: 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 e6 db 40 00 48 85 db 75 0f e8 3c da 40 00 4c 89 e0 5b 41 5c 41 5d 5d c3 e8 2d da 40 00 <0f> 0b e8 26 da 40 00 48 c7 c0 10 50 a7 89 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc9000659f490 EFLAGS: 00010093
RAX: ffff888092a740c0 RBX: 0000000074ad0ef0 RCX: ffffffff8134ad32
RDX: 0000000000000000 RSI: ffffffff8134ad93 RDI: 0000000000000006
RBP: ffffc9000659f4a8 R08: ffff888092a740c0 R09: ffffed1015d2707c
R10: ffffed1015d2707b R11: ffff8880ae9383db R12: 0000778074ad0ef0
R13: 00000000f4ad0ef0 R14: ffff8880a2988c00 R15: 0000000000000010
FS:  00000000006e9880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200004c0 CR3: 00000000973e1000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2020/02/23 07:45 net 0c0ddd6ae47c 2c36e7a7 .config log report syz C
ci-upstream-net-this-kasan-gce 2020/02/22 01:12 net 36a44bcdd8df 2ffa6679 .config log report syz C
ci-upstream-net-kasan-gce 2020/02/23 14:02 net-next 732a0dee501f 2c36e7a7 .config log report syz C
ci-upstream-net-kasan-gce 2020/02/22 01:43 net-next 5f9721a2d119 2ffa6679 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/03/27 19:32 upstream 527630fbf4f1 831e9a81 .config log report
ci-upstream-kasan-gce 2020/03/03 12:20 upstream 63623fd44972 c88c7b75 .config log report
ci-upstream-kasan-gce-selinux-root 2020/02/23 07:47 upstream 54dedb5b571d 2c36e7a7 .config log report
ci-upstream-kasan-gce-root 2020/02/22 23:05 upstream 54dedb5b571d 2c36e7a7 .config log report
ci-upstream-kasan-gce-selinux-root 2019/12/24 20:26 upstream 46cf053efec6 be5c2c81 .config log report
ci-upstream-kasan-gce-386 2020/03/23 00:41 upstream 67d584e33e54 78267cec .config log report
ci-upstream-kasan-gce-386 2020/02/18 02:04 upstream 11a48a5a18c6 1ce142dc .config log report
ci-upstream-kasan-gce-386 2020/02/03 16:37 upstream 754beeec1d90 93e5e335 .config log report
ci-upstream-kasan-gce-386 2020/01/27 14:51 upstream d5226fa6dbae dd56146d .config log report
ci-upstream-net-this-kasan-gce 2020/02/23 07:49 net 0c0ddd6ae47c 2c36e7a7 .config log report
ci-upstream-net-this-kasan-gce 2020/02/22 17:25 net 0c0ddd6ae47c 2c36e7a7 .config log report
ci-upstream-net-kasan-gce 2020/02/22 19:35 net-next 732a0dee501f 2c36e7a7 .config log report
ci-upstream-net-kasan-gce 2020/02/22 18:45 net-next 732a0dee501f 2c36e7a7 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/03/27 19:17 linux-next 770fbb32d34e 831e9a81 .config log report