syzbot


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

Status: fixed on 2020/04/15 17:19
Subsystems: audit
[Documentation on labels]
Reported-by: syzbot+1f4d90ead370d72e450b@syzkaller.appspotmail.com
Fix commit: 2ad3e17ebf94 audit: fix error handling in audit_data_to_entry()
First crash: 1642d, last: 1548d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.14 000/126] 4.14.173-stable review 140 (140) 2020/03/13 16:17
[PATCH 4.4 00/72] 4.4.216-stable review 78 (78) 2020/03/11 10:27
[PATCH 4.9 00/88] 4.9.216-stable review 96 (96) 2020/03/10 21:57
[PATCH 4.19 00/87] 4.19.108-stable review 102 (102) 2020/03/10 21:03
[PATCH 5.5 000/176] 5.5.8-stable review 201 (201) 2020/03/04 22:14
[PATCH 5.4 000/152] 5.4.24-stable review 160 (160) 2020/03/04 16:52
kernel BUG at arch/x86/mm/physaddr.c:LINE! (4) 1 (2) 2020/02/23 01:35
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) media C done 522 1835d 2045d 12/27 fixed on 2019/06/14 18:22
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) raid 90 927d 1424d 0/27 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 1493d 1633d 1/1 fixed on 2020/06/20 23:56
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! syz done 1 1820d 1820d 1/1 fixed on 2019/12/16 09:09
linux-4.14 kernel BUG at arch/x86/mm/physaddr.c:LINE! C inconclusive 23 1184d 1641d 0/1 upstream: reported C repro on 2019/12/26 02:01
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (5) serial C done 241 1440d 1513d 15/27 fixed on 2020/07/17 17:58
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) kernel 4 1826d 1826d 0/27 auto-closed as invalid on 2019/10/25 08:46
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! overlayfs C 10 2050d 2082d 11/27 fixed on 2018/11/12 21:25
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 76 664d 1439d 0/1 auto-obsoleted due to no activity on 2022/12/26 22:17

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