syzbot


BUG: unable to handle kernel paging request in cipso_v4_delopt

Status: closed as invalid on 2025/01/15 12:19
Subsystems: lsm net
[Documentation on labels]
First crash: 37d, last: 37d

Sample crash report:
BUG: unable to handle page fault for address: ffffffff8983ad0d
#PF: supervisor write access in kernel mode
#PF: error_code(0x0003) - permissions violation
PGD e73a067 P4D e73a067 PUD e73b063 PMD 98001a1 
Oops: Oops: 0003 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 18743 Comm: syz.5.3275 Not tainted 6.13.0-rc2-syzkaller-00292-ga446e965a188 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:cipso_v4_delopt+0x371/0x790 net/ipv4/cipso_ipv4.c:2025
Code: a5 d0 51 f7 40 38 dd 76 26 e8 1b d0 51 f7 44 2a 6c 24 10 48 b8 00 00 00 00 00 fc ff df 41 0f b6 04 04 84 c0 0f 85 93 03 00 00 <45> 88 2f eb 05 e8 f5 cf 51 f7 48 8b 6c 24 20 4d 8d 6c 2e 20 48 bb
RSP: 0018:ffffc90004737888 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000000000b0 RCX: 0000000000080000
RDX: ffffc9000d89d000 RSI: 00000000000000a5 RDI: 00000000000000a6
RBP: 00000000000000df R08: ffffffff8a4d8dcb R09: ffffffff8b60d29e
R10: 0000000000000002 R11: ffff888026d68000 R12: 1ffffffff13075a1
R13: 00000000000000d0 R14: ffffffff8983acf0 R15: ffffffff8983ad0d
FS:  00007fb2d159e6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8983ad0d CR3: 0000000051d5c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 00000000872c9164 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 cipso_v4_sock_delattr+0x2b/0x140 net/ipv4/cipso_ipv4.c:2062
 smack_netlbl_delete security/smack/smack_lsm.c:2632 [inline]
 smk_ipv4_check+0x4ec/0x720 security/smack/smack_lsm.c:2675
 smack_socket_sendmsg+0x40d/0x540 security/smack/smack_lsm.c:3957
 security_socket_sendmsg+0xc6/0x2a0 security/security.c:4671
 __sock_sendmsg+0x49/0x270 net/socket.c:723
 __sys_sendto+0x363/0x4c0 net/socket.c:2197
 __do_sys_sendto net/socket.c:2204 [inline]
 __se_sys_sendto net/socket.c:2200 [inline]
 __x64_sys_sendto+0xde/0x100 net/socket.c:2200
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb2d0785d19
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:00007fb2d159e038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fb2d0976080 RCX: 00007fb2d0785d19
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fb2d0801a20 R08: 0000000020000040 R09: 0000000000000010
R10: 00000000200007fd R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fb2d0976080 R15: 00007ffddd8cd688
 </TASK>
Modules linked in:
CR2: ffffffff8983ad0d
---[ end trace 0000000000000000 ]---
RIP: 0010:cipso_v4_delopt+0x371/0x790 net/ipv4/cipso_ipv4.c:2025
Code: a5 d0 51 f7 40 38 dd 76 26 e8 1b d0 51 f7 44 2a 6c 24 10 48 b8 00 00 00 00 00 fc ff df 41 0f b6 04 04 84 c0 0f 85 93 03 00 00 <45> 88 2f eb 05 e8 f5 cf 51 f7 48 8b 6c 24 20 4d 8d 6c 2e 20 48 bb
RSP: 0018:ffffc90004737888 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000000000b0 RCX: 0000000000080000
RDX: ffffc9000d89d000 RSI: 00000000000000a5 RDI: 00000000000000a6
RBP: 00000000000000df R08: ffffffff8a4d8dcb R09: ffffffff8b60d29e
R10: 0000000000000002 R11: ffff888026d68000 R12: 1ffffffff13075a1
R13: 00000000000000d0 R14: ffffffff8983acf0 R15: ffffffff8983ad0d
FS:  00007fb2d159e6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8983ad0d CR3: 0000000051d5c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 00000000872c9164 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	a5                   	movsl  %ds:(%rsi),%es:(%rdi)
   1:	d0 51 f7             	rclb   -0x9(%rcx)
   4:	40 38 dd             	cmp    %bl,%bpl
   7:	76 26                	jbe    0x2f
   9:	e8 1b d0 51 f7       	call   0xf751d029
   e:	44 2a 6c 24 10       	sub    0x10(%rsp),%r13b
  13:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1a:	fc ff df
  1d:	41 0f b6 04 04       	movzbl (%r12,%rax,1),%eax
  22:	84 c0                	test   %al,%al
  24:	0f 85 93 03 00 00    	jne    0x3bd
* 2a:	45 88 2f             	mov    %r13b,(%r15) <-- trapping instruction
  2d:	eb 05                	jmp    0x34
  2f:	e8 f5 cf 51 f7       	call   0xf751d029
  34:	48 8b 6c 24 20       	mov    0x20(%rsp),%rbp
  39:	4d 8d 6c 2e 20       	lea    0x20(%r14,%rbp,1),%r13
  3e:	48                   	rex.W
  3f:	bb                   	.byte 0xbb

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/14 17:10 upstream a446e965a188 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: unable to handle kernel paging request in cipso_v4_delopt
* Struck through repros no longer work on HEAD.