general protection fault in nl802154_trigger_scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good day, dear maintainers,

We found a bug using a modified kernel configuration file used by syzbot.

We enhanced the coverage of the configuration file using our tool, klocalizer.

Kernel Branch: 6.2.0-next-20230224
Kernel config: https://drive.google.com/file/d/1nlVJD4vp7iMOPapFzdASZQ7JSiDf6SwY/view?usp=share_link
C Reproducer: Unfortunately, there is no reproducer yet

Thank you!

Best regards,
Sanan Hasanov

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 4 PID: 26115 Comm: syz-executor.2 Not tainted 6.2.0-next-20230224 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
RIP: 0010:nl802154_trigger_scan+0x132/0xc40
Code: 48 c1 ea 03 80 3c 02 00 0f 85 e1 09 00 00 48 8b ad f8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 04 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 90 07 00 00
RSP: 0018:ffffc9000b087550 EFLAGS: 00010257
RAX: dffffc0000000000 RBX: ffffc9000b0875c0 RCX: ffffc9000df9a000
RDX: 0000000000000000 RSI: ffffffff88a65a91 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810f098c10
R13: ffff88810f050000 R14: ffff88810f0500a0 R15: ffffc9000b0875e0
FS:  00007f7b8a7fe700(0000) GS:ffff88811a200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd3780efdc CR3: 000000004dd9e000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 genl_family_rcv_msg_doit.isra.0+0x1e6/0x2d0
 genl_rcv_msg+0x4ff/0x7e0
 netlink_rcv_skb+0x165/0x440
 genl_rcv+0x28/0x40
 netlink_unicast+0x547/0x7f0
 netlink_sendmsg+0x92f/0xe50
 sock_sendmsg+0xde/0x190
 ____sys_sendmsg+0x717/0x900
 ___sys_sendmsg+0x11d/0x1b0
 __sys_sendmsg+0xfe/0x1d0
 do_syscall_64+0x39/0x80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7b8b88edcd
Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 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:00007f7b8a7fdbf8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f7b8b9bbf80 RCX: 00007f7b8b88edcd
RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000004
RBP: 00007f7b8b8fc59c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd638e65bf R14: 00007ffd638e6760 R15: 00007f7b8a7fdd80
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:nl802154_trigger_scan+0x132/0xc40
Code: 48 c1 ea 03 80 3c 02 00 0f 85 e1 09 00 00 48 8b ad f8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7d 04 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 90 07 00 00
RSP: 0018:ffffc9000b087550 EFLAGS: 00010257
RAX: dffffc0000000000 RBX: ffffc9000b0875c0 RCX: ffffc9000df9a000
RDX: 0000000000000000 RSI: ffffffff88a65a91 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: ffff88810f098c10
R13: ffff88810f050000 R14: ffff88810f0500a0 R15: ffffc9000b0875e0
FS:  00007f7b8a7fe700(0000) GS:ffff88811a200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd3780efdc CR3: 000000004dd9e000 CR4: 0000000000350ee0
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 e1 09 00 00    	jne    0x9ef
   e:	48 8b ad f8 00 00 00 	mov    0xf8(%rbp),%rbp
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 8d 7d 04          	lea    0x4(%rbp),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	48 89 fa             	mov    %rdi,%rdx
  31:	83 e2 07             	and    $0x7,%edx
  34:	38 d0                	cmp    %dl,%al
  36:	7f 08                	jg     0x40
  38:	84 c0                	test   %al,%al
  3a:	0f 85 90 07 00 00    	jne    0x7d0




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux