syzbot


kernel BUG in notify_change

Status: fixed on 2022/09/20 15:04
Reported-by: syzbot+1abbb936c4754892fc19@syzkaller.appspotmail.com
Fix commit: def19b1cf16c ANDROID: incfs: Add check for ATTR_KILL_SUID and ATTR_MODE in incfs_setattr
First crash: 1362d, last: 819d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 kernel BUG in notify_change (2) C error 2 942d 942d 0/2 closed as invalid on 2022/05/06 17:34
android-5-10 kernel BUG in notify_change (3) C error 2 822d 822d 2/2 fixed on 2022/10/03 16:13
android-5-10 kernel BUG in notify_change C error 3 1008d 1067d 2/2 fixed on 2022/03/05 17:38
android-5-15 kernel BUG in notify_change C inconclusive 2 735d 767d 2/2 fixed on 2023/08/02 14:36

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/attr.c:289!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 304 Comm: syz-executor437 Not tainted 5.4.197-syzkaller-00011-gf3c75e616e3f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:notify_change+0xda2/0xdb0 fs/attr.c:289
Code: f5 ff e9 a3 fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c e3 f7 ff ff 4c 89 e7 e8 38 35 f5 ff e9 d6 f7 ff ff e8 fe cb c8 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41
RSP: 0018:ffff8881ddc47c68 EFLAGS: 00010293
RAX: ffffffff819786f2 RBX: 0000000000001847 RCX: ffff8881de1c3f00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff81977ef5 R09: ffff8881ddc47c18
R10: ffffed103bb88f85 R11: 1ffff1103bb88f83 R12: ffff8881ddc47e00
R13: ffff8881e66c4770 R14: ffff8881e64f4100 R15: dffffc0000000000
FS:  0000555556672300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001ac0 CR3: 00000001de255000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 incfs_setattr+0x1fa/0x360 fs/incfs/vfs.c:1611
 notify_change+0xb19/0xdb0 fs/attr.c:336
 chown_common+0x311/0x560 fs/open.c:652
 do_fchownat+0x124/0x1e0 fs/open.c:682
 __do_sys_lchown fs/open.c:707 [inline]
 __se_sys_lchown fs/open.c:705 [inline]
 __x64_sys_lchown+0x81/0x90 fs/open.c:705
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f1b48189ba9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe9f4c6058 EFLAGS: 00000246 ORIG_RAX: 000000000000005e
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f1b48189ba9
RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000020001ac0
RBP: 2f30656c69662f2e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1b4814dde0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace ff895e715c0d20a5 ]---
RIP: 0010:notify_change+0xda2/0xdb0 fs/attr.c:289
Code: f5 ff e9 a3 fb ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c e3 f7 ff ff 4c 89 e7 e8 38 35 f5 ff e9 d6 f7 ff ff e8 fe cb c8 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41
RSP: 0018:ffff8881ddc47c68 EFLAGS: 00010293
RAX: ffffffff819786f2 RBX: 0000000000001847 RCX: ffff8881de1c3f00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff81977ef5 R09: ffff8881ddc47c18
R10: ffffed103bb88f85 R11: 1ffff1103bb88f83 R12: ffff8881ddc47e00
R13: ffff8881e66c4770 R14: ffff8881e64f4100 R15: dffffc0000000000
FS:  0000555556672300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001ac0 CR3: 00000001de255000 CR4: 00000000003406e0
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
2022/08/22 16:40 android12-5.4 f3c75e616e3f 26a13b38 .config strace log report syz C ci2-android-5-4-kasan kernel BUG in notify_change
2022/04/24 14:46 android12-5.4 cefc335374d2 131df97d .config console log report syz C ci2-android-5-4-kasan kernel BUG in notify_change
2021/12/19 21:16 android12-5.4 5b673be0c6b0 44068e19 .config console log report syz C ci2-android-5-4-kasan kernel BUG in notify_change
2021/02/27 19:01 android12-5.4 55e9d3c6b5f7 4c37c133 .config console log report syz C ci2-android-5-4-kasan kernel BUG in notify_change
2022/08/25 05:08 android12-5.4 27e532874a0e 514514f6 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2022/05/29 07:28 android12-5.4 8bb187386eea a46af346 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2022/05/21 21:02 android12-5.4 4958d038706e 7268fa62 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2022/04/13 19:21 android12-5.4 b730087e9a5d b17b2923 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/11/28 05:08 android12-5.4 0bbc71d87f4d 63eeac02 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/11/25 15:36 android12-5.4 697fba25ed27 545ab074 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/11/23 12:47 android12-5.4 697fba25ed27 545ab074 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/11/12 13:48 android12-5.4 60bad4df861d 75b04091 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/11/08 09:14 android12-5.4 2138e7367558 4c1be0be .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/10/19 15:56 android12-5.4 5970ec26e0c8 24dc29db .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/10/16 17:38 android12-5.4 73e6d86c30ee 0c5d9412 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/09/20 05:02 android12-5.4 546305780d82 70b76c1d .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/08/04 03:00 android12-5.4 e7e1f9adf836 6c236867 .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
2021/05/18 03:59 android12-5.4 74d682ab7415 a343ba6b .config console log report info ci2-android-5-4-kasan kernel BUG in notify_change
* Struck through repros no longer work on HEAD.