syzbot


null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr

Status: fixed on 2025/06/30 07:51
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+87e921ac1753be5ed9c5@syzkaller.appspotmail.com
Fix commit: ANDROID: rust_binder: allow PollTable to be null
First crash: 73d, last: 63d
Bug presence (3)
Date Name Commit Repro Result
2025/06/27 android16-6.12 (ToT) 111ee63e22d9 C [report] null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/27 lts (merge base) e0e2f7824338 C Didn't crash
2025/06/27 upstream (ToT) f02769e7f272 C Didn't crash
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/06/23 11:29 22m aliceryhl@google.com patch android16-6.12 OK log

Sample crash report:
rust_kernel: panicked at rust/kernel/sync/poll.rs:54:18:
null pointer dereference occurred
------------[ cut here ]------------
kernel BUG at rust/helpers/bug.c:7!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 299 Comm: syz-executor386 Not tainted 6.12.30-syzkaller-g94ce385c22d5 #0 16e511e29439c8b2668c1520ec6e7e54ef5e5f6a
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:rust_helper_BUG+0x8/0x10 rust/helpers/bug.c:7
Code: 3e ca e7 02 cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 61 34 03 60 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 <0f> 0b 66 0f 1f 44 00 00 b8 2b f0 4a ec 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000123f1b0 EFLAGS: 00010246
RAX: 000000000000005a RBX: 1ffff92000247e38 RCX: 883e1e2d1d516f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc9000123f1b0 R08: ffffc9000123eea7 R09: 1ffff92000247dd4
R10: dffffc0000000000 R11: fffff52000247dd5 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc9000123f1e0 R15: ffffc9000123f210
FS:  0000555594223380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001000 CR3: 00000001033d6000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __rustc::rust_begin_unwind+0x15b/0x160 rust/kernel/lib.rs:128
 core::panicking::panic_nounwind_fmt::runtime usr/local/rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:117 [inline]
 core::panicking::panic_nounwind_fmt+0xec/0xf0 usr/local/rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/intrinsics/mod.rs:3241
 core::panicking::panic_null_pointer_dereference+0x49/0x4c usr/local/rustup/toolchains/1.87.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:304
 <kernel::sync::poll::PollTable>::from_ptr+0x40/0x40 rust/kernel/sync/poll.rs:54
 rust_binder::rust_binder_poll+0xe2/0x570 drivers/android/binder/rust_binder.rs:475
 vfs_poll include/linux/poll.h:92 [inline]
 p9_fd_poll net/9p/trans_fd.c:239 [inline]
 p9_fd_request+0x443/0x500 net/9p/trans_fd.c:691
 p9_client_rpc+0x2fc/0xb40 net/9p/client.c:706
 p9_client_version net/9p/client.c:-1 [inline]
 p9_client_create+0x96a/0x1190 net/9p/client.c:1036
 v9fs_session_init+0x1e1/0x1820 fs/9p/v9fs.c:410
 v9fs_mount+0xd7/0xa00 fs/9p/vfs_super.c:122
 legacy_get_tree+0x103/0x1b0 fs/fs_context.c:662
 vfs_get_tree+0x9e/0x290 fs/super.c:1817
 do_new_mount+0x251/0xb40 fs/namespace.c:3519
 path_mount+0x688/0x1050 fs/namespace.c:3846
 do_mount fs/namespace.c:3859 [inline]
 __do_sys_mount fs/namespace.c:4069 [inline]
 __se_sys_mount+0x2bd/0x480 fs/namespace.c:4046
 __x64_sys_mount+0xc3/0xf0 fs/namespace.c:4046
 x64_sys_call+0x2021/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fea41037509
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc80abcd98 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fea41037509
RDX: 0000200000000180 RSI: 00002000000001c0 RDI: 0000000000000000
RBP: 00007fea410801f5 R08: 0000200000000240 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000f4240
R13: 00007fea4108521c R14: 00007fea4108009b R15: 00007ffc80abcdd0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rust_helper_BUG+0x8/0x10 rust/helpers/bug.c:7
Code: 3e ca e7 02 cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 61 34 03 60 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 <0f> 0b 66 0f 1f 44 00 00 b8 2b f0 4a ec 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000123f1b0 EFLAGS: 00010246
RAX: 000000000000005a RBX: 1ffff92000247e38 RCX: 883e1e2d1d516f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc9000123f1b0 R08: ffffc9000123eea7 R09: 1ffff92000247dd4
R10: dffffc0000000000 R11: fffff52000247dd5 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc9000123f1e0 R15: ffffc9000123f210
FS:  0000555594223380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001000 CR3: 00000001033d6000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1716):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/25 03:08 android16-6.12 94ce385c22d5 26d77996 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/20 18:49 android16-6.12 6c1c18fcb8b7 804b3919 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/20 17:48 android16-6.12 6c1c18fcb8b7 804b3919 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/20 16:36 android16-6.12 6c1c18fcb8b7 804b3919 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 07:15 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 05:39 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 04:28 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 03:18 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 02:27 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 01:24 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 01:21 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/30 00:18 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 23:09 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 22:55 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 21:22 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 20:18 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 20:13 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 19:10 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 18:08 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 17:04 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 16:02 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 15:42 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 14:38 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 13:37 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 13:19 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 12:12 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 11:06 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 11:02 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 10:01 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 08:02 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 07:17 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 06:17 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 05:25 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 04:16 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 04:12 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 03:11 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 02:05 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 01:08 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/29 00:02 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 23:01 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 22:10 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 21:08 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 20:50 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 19:50 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 19:40 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 18:39 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/28 18:14 android16-6.12 68f4f0b0690a fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
2025/06/20 15:30 android16-6.12 6c1c18fcb8b7 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust null pointer dereference occurred in <kernel::sync::poll::PollTable>::from_ptr
* Struck through repros no longer work on HEAD.