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: 1 UID: 0 PID: 8177 Comm: syz.3.2953 Not tainted 6.12.23-syzkaller-g6c1c18fcb8b7 #0 ba78288b1e32eb9f88d3f8d8da6b79a037cd8362 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: cc cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 a9 b9 39 93 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 e3 7d 70 1f 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000642f1d0 EFLAGS: 00010246 RAX: 000000000000005a RBX: 1ffff92000c85e3c RCX: 620d16a802a11a00 RDX: ffffc90009a90000 RSI: 0000000000004b03 RDI: 0000000000004b04 RBP: ffffc9000642f1d0 R08: ffffc9000642eec7 R09: 1ffff92000c85dd8 R10: dffffc0000000000 R11: fffff52000c85dd9 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc9000642f200 R15: ffffc9000642f230 FS: 00007f9b164666c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 00000001361a8000 CR4: 00000000003526b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __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 ::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:236 [inline] p9_fd_request+0x391/0x520 net/9p/trans_fd.c:688 p9_client_rpc+0x2f9/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:3514 path_mount+0x688/0x1050 fs/namespace.c:3841 do_mount fs/namespace.c:3854 [inline] __do_sys_mount fs/namespace.c:4064 [inline] __se_sys_mount+0x2bd/0x480 fs/namespace.c:4041 __x64_sys_mount+0xc3/0xf0 fs/namespace.c:4041 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:0x7f9b1558e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9b16466038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f9b157b5fa0 RCX: 00007f9b1558e929 RDX: 0000200000000080 RSI: 0000200000000300 RDI: 0000000000000000 RBP: 00007f9b15610b39 R08: 0000200000000340 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9b157b5fa0 R15: 00007ffce655c9e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:rust_helper_BUG+0x8/0x10 rust/helpers/bug.c:7 Code: cc cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 b8 a9 b9 39 93 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 e3 7d 70 1f 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000642f1d0 EFLAGS: 00010246 RAX: 000000000000005a RBX: 1ffff92000c85e3c RCX: 620d16a802a11a00 RDX: ffffc90009a90000 RSI: 0000000000004b03 RDI: 0000000000004b04 RBP: ffffc9000642f1d0 R08: ffffc9000642eec7 R09: 1ffff92000c85dd8 R10: dffffc0000000000 R11: fffff52000c85dd9 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffc9000642f200 R15: ffffc9000642f230 FS: 00007f9b164666c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000030c0 CR3: 00000001361a8000 CR4: 00000000003526b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400