syzbot


general protection fault in simple_recursive_removal

Status: closed as dup on 2020/06/28 17:09
Reported-by: syzbot+1edeee8da2474fe17a53@syzkaller.appspotmail.com
First crash: 998d, last: 943d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in lockref_get 7 851d 951d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in simple_recursive_removal (2) C error error 19 67d 181d 0/24 upstream: reported C repro on 2022/04/05 23:08

Sample crash report:
debugfs: File 'dropped' in directory 'loop0' already present!
debugfs: File 'msg' in directory 'loop0' already present!
general protection fault, probably for non-canonical address 0xdffffc0000000028: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000140-0x0000000000000147]
CPU: 1 PID: 17038 Comm: syz-executor.0 Not tainted 5.6.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3827
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e a0 37 e0 8a 0f 84 5f ee ff
RSP: 0018:ffffc90006987870 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000028 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90006987988 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff154b698 R11: ffff8880968e24c0 R12: 0000000000000140
R13: 0000000000000000 R14: 0000000000000140 R15: 0000000000000000
FS:  00007f6396721700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000071d6b4 CR3: 000000009f384000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4484
 down_write+0x93/0x150 kernel/locking/rwsem.c:1534
 inode_lock include/linux/fs.h:791 [inline]
 simple_recursive_removal+0x185/0x720 fs/libfs.c:273
 debugfs_remove fs/debugfs/inode.c:713 [inline]
 debugfs_remove+0x5e/0x80 fs/debugfs/inode.c:707
 blk_remove_buf_file_callback+0x16/0x20 kernel/trace/blktrace.c:432
 relay_close_buf+0xf9/0x1c0 kernel/relay.c:497
 relay_close kernel/relay.c:848 [inline]
 relay_close+0x154/0x490 kernel/relay.c:834
 blk_trace_free+0x8c/0x140 kernel/trace/blktrace.c:313
 blk_trace_cleanup kernel/trace/blktrace.c:338 [inline]
 __blk_trace_remove+0x78/0xa0 kernel/trace/blktrace.c:351
 blk_trace_ioctl+0x239/0x300 kernel/trace/blktrace.c:724
 blkdev_common_ioctl+0x69c/0x1810 block/ioctl.c:650
 blkdev_ioctl+0x1aa/0x670 block/ioctl.c:715
 block_ioctl+0xee/0x130 fs/block_dev.c:1983
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x123/0x180 fs/ioctl.c:763
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl fs/ioctl.c:770 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:770
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c479
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6396720c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f63967216d4 RCX: 000000000045c479
RDX: 000000000000ff00 RSI: 0000000000001276 RDI: 0000000000000004
RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000022b R14: 00000000004c4129 R15: 000000000076bf2c
Modules linked in:
---[ end trace 600c22f16c9e3106 ]---
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3827
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e a0 37 e0 8a 0f 84 5f ee ff
RSP: 0018:ffffc90006987870 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000028 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90006987988 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff154b698 R11: ffff8880968e24c0 R12: 0000000000000140
R13: 0000000000000000 R14: 0000000000000140 R15: 0000000000000000
FS:  00007f6396721700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000071d6b4 CR3: 000000009f384000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2020/03/05 13:28 upstream 63623fd44972 c88c7b75 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/01/10 12:59 linux-next 6c09d7dbb7d3 4de4e9f0 .config log report
* Struck through repros no longer work on HEAD.