Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Stephen Rothwell
Hi Paul,

On Wed, 19 Aug 2020 21:21:29 -0400 Paul Moore  wrote:
>
> On Wed, Aug 19, 2020 at 6:31 PM Stephen Rothwell  
> wrote:
> FYI, I just merged that patch into the selinux/next tree.

Thanks, I will drop my copy from my tree tomorrow.

-- 
Cheers,
Stephen Rothwell


pgpL4v_EDN2gu.pgp
Description: OpenPGP digital signature


Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Paul Moore
On Wed, Aug 19, 2020 at 6:31 PM Stephen Rothwell  wrote:
> Hi all,
>
> On Wed, 19 Aug 2020 11:12:44 -0400 Stephen Smalley 
>  wrote:
> >
> > Fix can be found at:https://patchwork.kernel.org/patch/11724203/
> > 
>
> Thanks.
>
> I will add that to the selinux tree merge in linux-next until it turns
> up in the tree.

FYI, I just merged that patch into the selinux/next tree.

  commit 37ea433c66070fcef09c6d118492c36299eb72ba
  Author: Stephen Smalley 
  Date:   Wed Aug 19 09:45:41 2020 -0400

   selinux: avoid dereferencing the policy prior to initialization

   Certain SELinux security server functions (e.g. security_port_sid,
   called during bind) were not explicitly testing to see if SELinux
   has been initialized (i.e. initial policy loaded) and handling
   the no-policy-loaded case.  In the past this happened to work
   because the policydb was statically allocated and could always
   be accessed, but with the recent encapsulation of policy state
   and conversion to dynamic allocation, we can no longer access
   the policy state prior to initialization.  Add a test of
   !selinux_initialized(state) to all of the exported functions that
   were missing them and handle appropriately.

   Fixes: 461698026ffa ("selinux: encapsulate policy state, refactor ...")
   Reported-by: Naresh Kamboju 
   Tested-by: Andy Shevchenko 
   Signed-off-by: Stephen Smalley 
   Signed-off-by: Paul Moore 

-- 
paul moore
www.paul-moore.com


Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Stephen Rothwell
Hi all,

On Wed, 19 Aug 2020 11:12:44 -0400 Stephen Smalley 
 wrote:
>
> Fix can be found at:https://patchwork.kernel.org/patch/11724203/ 
> 

Thanks.

I will add that to the selinux tree merge in linux-next until it turns
up in the tree.

-- 
Cheers,
Stephen Rothwell


pgpF3iPdwWlJ8.pgp
Description: OpenPGP digital signature


Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Andy Shevchenko
On Wed, Aug 19, 2020 at 6:12 PM Stephen Smalley
 wrote:
>
> On 8/19/20 11:06 AM, Andy Shevchenko wrote:
>
> > On Wed, Aug 19, 2020 at 3:30 PM Stephen Smalley
> >  wrote:
> >> On 8/19/20 6:11 AM, Naresh Kamboju wrote:
> >>
> >>> Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.
> >>>
> >>>Kernel panic - not syncing: Fatal exception in interrupt
> >>>
> >>> metadata:
> >>> git branch: master
> >>> git repo: 
> >>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >>> git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
> >>> git describe: next-20200819
> >>> make_kernelversion: 5.9.0-rc1
> >>> kernel-config:
> >>> https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config
> >>>
> >>> crash log:
> >>> [3.704578] BUG: kernel NULL pointer dereference, address: 
> >>> 01c8
> >>> [3.704865] #PF: supervisor read access in kernel mode
> >>> [3.704865] #PF: error_code(0x) - not-present page
> >>> [3.704865] PGD 0 P4D 0
> >>> [3.704865] Oops:  [#1] SMP NOPTI
> >>> [3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
> >>> 5.9.0-rc1-next-20200819 #1
> >>> [3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> >>> BIOS 1.12.0-1 04/01/2014
> >>> [3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
> >>> [3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> >>> 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> >>> 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> >>> 00 48
> >>> [3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> >>> [3.704865] RAX:  RBX: aef076f8 RCX: 
> >>> b607c0013d9c
> >>> [3.704865] RDX: 0016 RSI: 0006 RDI: 
> >>> aef08d10
> >>> [3.704865] RBP: b607c0013d28 R08: 0218 R09: 
> >>> 0016
> >>> [3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 
> >>> 0006
> >>> [3.704865] R13: 0016 R14: b607c0013d9c R15: 
> >>> aef05820
> >>> [3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
> >>> knlGS:
> >>> [3.721157] CS:  0010 DS:  ES:  CR0: 80050033
> >>> [3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 
> >>> 003506f0
> >>> [3.721157] Call Trace:
> >>> [3.721157]  sel_netport_sid+0x120/0x1e0
> >>> [3.721157]  selinux_socket_bind+0x15a/0x250
> >>> [3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
> >>> [3.721157]  ? __local_bh_enable_ip+0x46/0x70
> >>> [3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
> >>> [3.721157]  security_socket_bind+0x35/0x50
> >>> [3.721157]  __sys_bind+0xcf/0x110
> >>> [3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
> >>> [3.730888]  ? do_syscall_64+0x14/0x50
> >>> [3.730888]  ? trace_hardirqs_on+0x38/0xf0
> >>> [3.732120]  __x64_sys_bind+0x1a/0x20
> >>> [3.732120]  do_syscall_64+0x38/0x50
> >>> [3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
> >>> [3.732120] RIP: 0033:0x7f5ef37f3057
> >>> [3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
> >>> 02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
> >>> 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
> >>> 01 48
> >>> [3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
> >>> 0031
> >>> [3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 
> >>> 7f5ef37f3057
> >>> [3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 
> >>> 002b
> >>> [3.743930] virtio_net virtio0 enp0s3: renamed from eth0
> >>> [3.73] RBP: 002b R08: 0004 R09: 
> >>> 
> >>> [3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
> >>> 
> >>> [3.744849] R13: 7ffe638fbbe4 R14:  R15:
> >>> 00RIP: 0010:security_port_sid00
> >>> [3.744849] Modules linked in:
> >>> [3.744849] CR2: 01c8
> >>> [3.744849] ---[ end trace 485eaaecdce54971 ]---
> >>> [3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
> >>> [3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> >>> 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> >>> 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> >>> 00 48
> >>> [3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> >>> [3.744849] RAX:  RBX: aef076f8 RCX: 
> >>> b607c0013d9c
> >>> [3.744849] RDX: 0016 RSI: 0006 RDI: 
> >>> aef08d10
> >>> [3.744849] RBP: b607c0013d28 R08: 0218 R09: 
> >>> 0016
> >>> [3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 
> >>> 0006
> >>> [3.744849] R13: 0016 R14: b607c0013d9c R15: 
> >>> 

Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Stephen Smalley

On 8/19/20 11:06 AM, Andy Shevchenko wrote:


On Wed, Aug 19, 2020 at 3:30 PM Stephen Smalley
 wrote:

On 8/19/20 6:11 AM, Naresh Kamboju wrote:


Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.

   Kernel panic - not syncing: Fatal exception in interrupt

metadata:
git branch: master
git repo: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
git describe: next-20200819
make_kernelversion: 5.9.0-rc1
kernel-config:
https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config

crash log:
[3.704578] BUG: kernel NULL pointer dereference, address: 01c8
[3.704865] #PF: supervisor read access in kernel mode
[3.704865] #PF: error_code(0x) - not-present page
[3.704865] PGD 0 P4D 0
[3.704865] Oops:  [#1] SMP NOPTI
[3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
5.9.0-rc1-next-20200819 #1
[3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.12.0-1 04/01/2014
[3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
[3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.704865] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.704865] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.704865] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.704865] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.721157] CS:  0010 DS:  ES:  CR0: 80050033
[3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.721157] Call Trace:
[3.721157]  sel_netport_sid+0x120/0x1e0
[3.721157]  selinux_socket_bind+0x15a/0x250
[3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
[3.721157]  ? __local_bh_enable_ip+0x46/0x70
[3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
[3.721157]  security_socket_bind+0x35/0x50
[3.721157]  __sys_bind+0xcf/0x110
[3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
[3.730888]  ? do_syscall_64+0x14/0x50
[3.730888]  ? trace_hardirqs_on+0x38/0xf0
[3.732120]  __x64_sys_bind+0x1a/0x20
[3.732120]  do_syscall_64+0x38/0x50
[3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[3.732120] RIP: 0033:0x7f5ef37f3057
[3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
01 48
[3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
0031
[3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 7f5ef37f3057
[3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 002b
[3.743930] virtio_net virtio0 enp0s3: renamed from eth0
[3.73] RBP: 002b R08: 0004 R09: 
[3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
[3.744849] R13: 7ffe638fbbe4 R14:  R15:
00RIP: 0010:security_port_sid00
[3.744849] Modules linked in:
[3.744849] CR2: 01c8
[3.744849] ---[ end trace 485eaaecdce54971 ]---
[3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
[3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.744849] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.744849] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.744849] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.744849] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.744849] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.744849] CS:  0010 DS:  ES:  CR0: 80050033
[3.744849] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.7RIP: 0010:security_port_sid44849] Kernel panic - not syncing:
Fatal exception in interrupt
[3.744849] Kernel Offset: 0x2c00 from 0x8100
(relocation range: 0x8000-0xbfff)
[3.744849] ---[ end Kernel panic - not syncing: Fatal exception in
interrupt ]---

full test log link,

Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Andy Shevchenko
On Wed, Aug 19, 2020 at 3:30 PM Stephen Smalley
 wrote:
>
> On 8/19/20 6:11 AM, Naresh Kamboju wrote:
>
> > Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.
> >
> >   Kernel panic - not syncing: Fatal exception in interrupt
> >
> > metadata:
> >git branch: master
> >git repo: 
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
> >git describe: next-20200819
> >make_kernelversion: 5.9.0-rc1
> >kernel-config:
> > https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config
> >
> > crash log:
> > [3.704578] BUG: kernel NULL pointer dereference, address: 
> > 01c8
> > [3.704865] #PF: supervisor read access in kernel mode
> > [3.704865] #PF: error_code(0x) - not-present page
> > [3.704865] PGD 0 P4D 0
> > [3.704865] Oops:  [#1] SMP NOPTI
> > [3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
> > 5.9.0-rc1-next-20200819 #1
> > [3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> > BIOS 1.12.0-1 04/01/2014
> > [3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
> > [3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> > 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> > 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> > 00 48
> > [3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> > [3.704865] RAX:  RBX: aef076f8 RCX: 
> > b607c0013d9c
> > [3.704865] RDX: 0016 RSI: 0006 RDI: 
> > aef08d10
> > [3.704865] RBP: b607c0013d28 R08: 0218 R09: 
> > 0016
> > [3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 
> > 0006
> > [3.704865] R13: 0016 R14: b607c0013d9c R15: 
> > aef05820
> > [3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
> > knlGS:
> > [3.721157] CS:  0010 DS:  ES:  CR0: 80050033
> > [3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 
> > 003506f0
> > [3.721157] Call Trace:
> > [3.721157]  sel_netport_sid+0x120/0x1e0
> > [3.721157]  selinux_socket_bind+0x15a/0x250
> > [3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
> > [3.721157]  ? __local_bh_enable_ip+0x46/0x70
> > [3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
> > [3.721157]  security_socket_bind+0x35/0x50
> > [3.721157]  __sys_bind+0xcf/0x110
> > [3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
> > [3.730888]  ? do_syscall_64+0x14/0x50
> > [3.730888]  ? trace_hardirqs_on+0x38/0xf0
> > [3.732120]  __x64_sys_bind+0x1a/0x20
> > [3.732120]  do_syscall_64+0x38/0x50
> > [3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
> > [3.732120] RIP: 0033:0x7f5ef37f3057
> > [3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
> > 02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
> > 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
> > 01 48
> > [3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
> > 0031
> > [3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 
> > 7f5ef37f3057
> > [3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 
> > 002b
> > [3.743930] virtio_net virtio0 enp0s3: renamed from eth0
> > [3.73] RBP: 002b R08: 0004 R09: 
> > 
> > [3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
> > 
> > [3.744849] R13: 7ffe638fbbe4 R14:  R15:
> > 00RIP: 0010:security_port_sid00
> > [3.744849] Modules linked in:
> > [3.744849] CR2: 01c8
> > [3.744849] ---[ end trace 485eaaecdce54971 ]---
> > [3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
> > [3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> > 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> > 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> > 00 48
> > [3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> > [3.744849] RAX:  RBX: aef076f8 RCX: 
> > b607c0013d9c
> > [3.744849] RDX: 0016 RSI: 0006 RDI: 
> > aef08d10
> > [3.744849] RBP: b607c0013d28 R08: 0218 R09: 
> > 0016
> > [3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 
> > 0006
> > [3.744849] R13: 0016 R14: b607c0013d9c R15: 
> > aef05820
> > [3.744849] FS:  7f5ef4fec840() GS:988ffbc0()
> > knlGS:
> > [3.744849] CS:  0010 DS:  ES:  CR0: 80050033
> > [3.744849] CR2: 01c8 CR3: 00013b04c000 CR4: 
> > 003506f0
> > [3.7RIP: 

Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Paul Moore
On Wed, Aug 19, 2020 at 9:16 AM Stephen Smalley
 wrote:
> On 8/19/20 9:12 AM, Paul Moore wrote:
>
> > On Wed, Aug 19, 2020 at 8:28 AM Stephen Smalley
> >  wrote:
> >> On 8/19/20 6:11 AM, Naresh Kamboju wrote:
> >>> Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.
> >>>
> >>>Kernel panic - not syncing: Fatal exception in interrupt
> >>>
> >>> metadata:
> >>> git branch: master
> >>> git repo: 
> >>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >>> git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
> >>> git describe: next-20200819
> >>> make_kernelversion: 5.9.0-rc1
> >>> kernel-config:
> >>> https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config
> >>>
> >>> crash log:
> >>> [3.704578] BUG: kernel NULL pointer dereference, address: 
> >>> 01c8
> >>> [3.704865] #PF: supervisor read access in kernel mode
> >>> [3.704865] #PF: error_code(0x) - not-present page
> >>> [3.704865] PGD 0 P4D 0
> >>> [3.704865] Oops:  [#1] SMP NOPTI
> >>> [3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
> >>> 5.9.0-rc1-next-20200819 #1
> >>> [3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> >>> BIOS 1.12.0-1 04/01/2014
> >>> [3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
> >>> [3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> >>> 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> >>> 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> >>> 00 48
> >>> [3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> >>> [3.704865] RAX:  RBX: aef076f8 RCX: 
> >>> b607c0013d9c
> >>> [3.704865] RDX: 0016 RSI: 0006 RDI: 
> >>> aef08d10
> >>> [3.704865] RBP: b607c0013d28 R08: 0218 R09: 
> >>> 0016
> >>> [3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 
> >>> 0006
> >>> [3.704865] R13: 0016 R14: b607c0013d9c R15: 
> >>> aef05820
> >>> [3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
> >>> knlGS:
> >>> [3.721157] CS:  0010 DS:  ES:  CR0: 80050033
> >>> [3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 
> >>> 003506f0
> >>> [3.721157] Call Trace:
> >>> [3.721157]  sel_netport_sid+0x120/0x1e0
> >>> [3.721157]  selinux_socket_bind+0x15a/0x250
> >>> [3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
> >>> [3.721157]  ? __local_bh_enable_ip+0x46/0x70
> >>> [3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
> >>> [3.721157]  security_socket_bind+0x35/0x50
> >>> [3.721157]  __sys_bind+0xcf/0x110
> >>> [3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
> >>> [3.730888]  ? do_syscall_64+0x14/0x50
> >>> [3.730888]  ? trace_hardirqs_on+0x38/0xf0
> >>> [3.732120]  __x64_sys_bind+0x1a/0x20
> >>> [3.732120]  do_syscall_64+0x38/0x50
> >>> [3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
> >>> [3.732120] RIP: 0033:0x7f5ef37f3057
> >>> [3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
> >>> 02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
> >>> 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
> >>> 01 48
> >>> [3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
> >>> 0031
> >>> [3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 
> >>> 7f5ef37f3057
> >>> [3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 
> >>> 002b
> >>> [3.743930] virtio_net virtio0 enp0s3: renamed from eth0
> >>> [3.73] RBP: 002b R08: 0004 R09: 
> >>> 
> >>> [3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
> >>> 
> >>> [3.744849] R13: 7ffe638fbbe4 R14:  R15:
> >>> 00RIP: 0010:security_port_sid00
> >>> [3.744849] Modules linked in:
> >>> [3.744849] CR2: 01c8
> >>> [3.744849] ---[ end trace 485eaaecdce54971 ]---
> >>> [3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
> >>> [3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> >>> 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> >>> 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> >>> 00 48
> >>> [3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> >>> [3.744849] RAX:  RBX: aef076f8 RCX: 
> >>> b607c0013d9c
> >>> [3.744849] RDX: 0016 RSI: 0006 RDI: 
> >>> aef08d10
> >>> [3.744849] RBP: b607c0013d28 R08: 0218 R09: 
> >>> 0016
> >>> [3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 
> >>> 0006
> >>> [3.744849] R13: 0016 R14: b607c0013d9c R15: 
> >>> 

Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Stephen Smalley

On 8/19/20 9:12 AM, Paul Moore wrote:


On Wed, Aug 19, 2020 at 8:28 AM Stephen Smalley
 wrote:

On 8/19/20 6:11 AM, Naresh Kamboju wrote:

Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.

   Kernel panic - not syncing: Fatal exception in interrupt

metadata:
git branch: master
git repo: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
git describe: next-20200819
make_kernelversion: 5.9.0-rc1
kernel-config:
https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config

crash log:
[3.704578] BUG: kernel NULL pointer dereference, address: 01c8
[3.704865] #PF: supervisor read access in kernel mode
[3.704865] #PF: error_code(0x) - not-present page
[3.704865] PGD 0 P4D 0
[3.704865] Oops:  [#1] SMP NOPTI
[3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
5.9.0-rc1-next-20200819 #1
[3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.12.0-1 04/01/2014
[3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
[3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.704865] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.704865] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.704865] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.704865] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.721157] CS:  0010 DS:  ES:  CR0: 80050033
[3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.721157] Call Trace:
[3.721157]  sel_netport_sid+0x120/0x1e0
[3.721157]  selinux_socket_bind+0x15a/0x250
[3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
[3.721157]  ? __local_bh_enable_ip+0x46/0x70
[3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
[3.721157]  security_socket_bind+0x35/0x50
[3.721157]  __sys_bind+0xcf/0x110
[3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
[3.730888]  ? do_syscall_64+0x14/0x50
[3.730888]  ? trace_hardirqs_on+0x38/0xf0
[3.732120]  __x64_sys_bind+0x1a/0x20
[3.732120]  do_syscall_64+0x38/0x50
[3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[3.732120] RIP: 0033:0x7f5ef37f3057
[3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
01 48
[3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
0031
[3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 7f5ef37f3057
[3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 002b
[3.743930] virtio_net virtio0 enp0s3: renamed from eth0
[3.73] RBP: 002b R08: 0004 R09: 
[3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
[3.744849] R13: 7ffe638fbbe4 R14:  R15:
00RIP: 0010:security_port_sid00
[3.744849] Modules linked in:
[3.744849] CR2: 01c8
[3.744849] ---[ end trace 485eaaecdce54971 ]---
[3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
[3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.744849] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.744849] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.744849] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.744849] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.744849] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.744849] CS:  0010 DS:  ES:  CR0: 80050033
[3.744849] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.7RIP: 0010:security_port_sid44849] Kernel panic - not syncing:
Fatal exception in interrupt
[3.744849] Kernel Offset: 0x2c00 from 0x8100
(relocation range: 0x8000-0xbfff)
[3.744849] ---[ end Kernel panic - not syncing: Fatal exception in
interrupt ]---

full test log link,

Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Paul Moore
On Wed, Aug 19, 2020 at 8:28 AM Stephen Smalley
 wrote:
> On 8/19/20 6:11 AM, Naresh Kamboju wrote:
> > Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.
> >
> >   Kernel panic - not syncing: Fatal exception in interrupt
> >
> > metadata:
> >git branch: master
> >git repo: 
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> >git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
> >git describe: next-20200819
> >make_kernelversion: 5.9.0-rc1
> >kernel-config:
> > https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config
> >
> > crash log:
> > [3.704578] BUG: kernel NULL pointer dereference, address: 
> > 01c8
> > [3.704865] #PF: supervisor read access in kernel mode
> > [3.704865] #PF: error_code(0x) - not-present page
> > [3.704865] PGD 0 P4D 0
> > [3.704865] Oops:  [#1] SMP NOPTI
> > [3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
> > 5.9.0-rc1-next-20200819 #1
> > [3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
> > BIOS 1.12.0-1 04/01/2014
> > [3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
> > [3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> > 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> > 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> > 00 48
> > [3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> > [3.704865] RAX:  RBX: aef076f8 RCX: 
> > b607c0013d9c
> > [3.704865] RDX: 0016 RSI: 0006 RDI: 
> > aef08d10
> > [3.704865] RBP: b607c0013d28 R08: 0218 R09: 
> > 0016
> > [3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 
> > 0006
> > [3.704865] R13: 0016 R14: b607c0013d9c R15: 
> > aef05820
> > [3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
> > knlGS:
> > [3.721157] CS:  0010 DS:  ES:  CR0: 80050033
> > [3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 
> > 003506f0
> > [3.721157] Call Trace:
> > [3.721157]  sel_netport_sid+0x120/0x1e0
> > [3.721157]  selinux_socket_bind+0x15a/0x250
> > [3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
> > [3.721157]  ? __local_bh_enable_ip+0x46/0x70
> > [3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
> > [3.721157]  security_socket_bind+0x35/0x50
> > [3.721157]  __sys_bind+0xcf/0x110
> > [3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
> > [3.730888]  ? do_syscall_64+0x14/0x50
> > [3.730888]  ? trace_hardirqs_on+0x38/0xf0
> > [3.732120]  __x64_sys_bind+0x1a/0x20
> > [3.732120]  do_syscall_64+0x38/0x50
> > [3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
> > [3.732120] RIP: 0033:0x7f5ef37f3057
> > [3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
> > 02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
> > 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
> > 01 48
> > [3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
> > 0031
> > [3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 
> > 7f5ef37f3057
> > [3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 
> > 002b
> > [3.743930] virtio_net virtio0 enp0s3: renamed from eth0
> > [3.73] RBP: 002b R08: 0004 R09: 
> > 
> > [3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
> > 
> > [3.744849] R13: 7ffe638fbbe4 R14:  R15:
> > 00RIP: 0010:security_port_sid00
> > [3.744849] Modules linked in:
> > [3.744849] CR2: 01c8
> > [3.744849] ---[ end trace 485eaaecdce54971 ]---
> > [3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
> > [3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
> > 41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
> > 8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
> > 00 48
> > [3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
> > [3.744849] RAX:  RBX: aef076f8 RCX: 
> > b607c0013d9c
> > [3.744849] RDX: 0016 RSI: 0006 RDI: 
> > aef08d10
> > [3.744849] RBP: b607c0013d28 R08: 0218 R09: 
> > 0016
> > [3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 
> > 0006
> > [3.744849] R13: 0016 R14: b607c0013d9c R15: 
> > aef05820
> > [3.744849] FS:  7f5ef4fec840() GS:988ffbc0()
> > knlGS:
> > [3.744849] CS:  0010 DS:  ES:  CR0: 80050033
> > [3.744849] CR2: 01c8 CR3: 00013b04c000 CR4: 
> > 003506f0
> > [3.7RIP: 0010:security_port_sid44849] 

Re: Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Stephen Smalley

On 8/19/20 6:11 AM, Naresh Kamboju wrote:


Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.

  Kernel panic - not syncing: Fatal exception in interrupt

metadata:
   git branch: master
   git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
   git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
   git describe: next-20200819
   make_kernelversion: 5.9.0-rc1
   kernel-config:
https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config

crash log:
[3.704578] BUG: kernel NULL pointer dereference, address: 01c8
[3.704865] #PF: supervisor read access in kernel mode
[3.704865] #PF: error_code(0x) - not-present page
[3.704865] PGD 0 P4D 0
[3.704865] Oops:  [#1] SMP NOPTI
[3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
5.9.0-rc1-next-20200819 #1
[3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.12.0-1 04/01/2014
[3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
[3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.704865] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.704865] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.704865] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.704865] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.721157] CS:  0010 DS:  ES:  CR0: 80050033
[3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.721157] Call Trace:
[3.721157]  sel_netport_sid+0x120/0x1e0
[3.721157]  selinux_socket_bind+0x15a/0x250
[3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
[3.721157]  ? __local_bh_enable_ip+0x46/0x70
[3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
[3.721157]  security_socket_bind+0x35/0x50
[3.721157]  __sys_bind+0xcf/0x110
[3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
[3.730888]  ? do_syscall_64+0x14/0x50
[3.730888]  ? trace_hardirqs_on+0x38/0xf0
[3.732120]  __x64_sys_bind+0x1a/0x20
[3.732120]  do_syscall_64+0x38/0x50
[3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[3.732120] RIP: 0033:0x7f5ef37f3057
[3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
01 48
[3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
0031
[3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 7f5ef37f3057
[3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 002b
[3.743930] virtio_net virtio0 enp0s3: renamed from eth0
[3.73] RBP: 002b R08: 0004 R09: 
[3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
[3.744849] R13: 7ffe638fbbe4 R14:  R15:
00RIP: 0010:security_port_sid00
[3.744849] Modules linked in:
[3.744849] CR2: 01c8
[3.744849] ---[ end trace 485eaaecdce54971 ]---
[3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
[3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.744849] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.744849] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.744849] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.744849] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.744849] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.744849] CS:  0010 DS:  ES:  CR0: 80050033
[3.744849] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.7RIP: 0010:security_port_sid44849] Kernel panic - not syncing:
Fatal exception in interrupt
[3.744849] Kernel Offset: 0x2c00 from 0x8100
(relocation range: 0x8000-0xbfff)
[3.744849] ---[ end Kernel panic - not syncing: Fatal exception in
interrupt ]---

full test log link,
https://qa-reports.linaro.org/lkft/linux-next-oe/build/next-20200819/testrun/3084905/suite/linux-log-parser/test/check-kernel-panic-1682816/log

Reported-by: Naresh Kamboju 


Thank you for the 

Linux-next: Kernel panic - not syncing: Fatal exception in interrupt - RIP: 0010:security_port_sid

2020-08-19 Thread Naresh Kamboju
Kernel panic noticed on linux next 20200819 tag on x86_64 and i386.

 Kernel panic - not syncing: Fatal exception in interrupt

metadata:
  git branch: master
  git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
  git commit: 8eb858df0a5f6bcd371b5d5637255c987278b8c9
  git describe: next-20200819
  make_kernelversion: 5.9.0-rc1
  kernel-config:
https://builds.tuxbuild.com/izEMrcIH10iI6m0FU7O0LA/kernel.config

crash log:
[3.704578] BUG: kernel NULL pointer dereference, address: 01c8
[3.704865] #PF: supervisor read access in kernel mode
[3.704865] #PF: error_code(0x) - not-present page
[3.704865] PGD 0 P4D 0
[3.704865] Oops:  [#1] SMP NOPTI
[3.704865] CPU: 0 PID: 1 Comm: systemd Not tainted
5.9.0-rc1-next-20200819 #1
[3.704865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.12.0-1 04/01/2014
[3.704865] RIP: 0010:security_port_sid+0x2f/0xb0
[3.704865] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.704865] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.704865] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.704865] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.704865] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.704865] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.704865] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.721157] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.721157] CS:  0010 DS:  ES:  CR0: 80050033
[3.721157] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.721157] Call Trace:
[3.721157]  sel_netport_sid+0x120/0x1e0
[3.721157]  selinux_socket_bind+0x15a/0x250
[3.721157]  ? _raw_spin_trylock_bh+0x42/0x50
[3.721157]  ? __local_bh_enable_ip+0x46/0x70
[3.721157]  ? _raw_spin_unlock_bh+0x1a/0x20
[3.721157]  security_socket_bind+0x35/0x50
[3.721157]  __sys_bind+0xcf/0x110
[3.721157]  ? syscall_enter_from_user_mode+0x1f/0x1f0
[3.730888]  ? do_syscall_64+0x14/0x50
[3.730888]  ? trace_hardirqs_on+0x38/0xf0
[3.732120]  __x64_sys_bind+0x1a/0x20
[3.732120]  do_syscall_64+0x38/0x50
[3.732120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[3.732120] RIP: 0033:0x7f5ef37f3057
[3.732120] Code: ff ff ff ff c3 48 8b 15 3f 9e 2b 00 f7 d8 64 89
02 b8 ff ff ff ff eb ba 66 2e 0f 1f 84 00 00 00 00 00 90 b8 31 00 00
00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 9e 2b 00 f7 d8 64 89
01 48
[3.73] RSP: 002b:7ffe638fbbb8 EFLAGS: 0246 ORIG_RAX:
0031
[3.73] RAX: ffda RBX: 55833cf9ef80 RCX: 7f5ef37f3057
[3.73] RDX: 001c RSI: 55833cf9ef80 RDI: 002b
[3.743930] virtio_net virtio0 enp0s3: renamed from eth0
[3.73] RBP: 002b R08: 0004 R09: 
[3.73] R10: 7ffe638fbbe4 R11: 0246 R12: 
[3.744849] R13: 7ffe638fbbe4 R14:  R15:
00RIP: 0010:security_port_sid00
[3.744849] Modules linked in:
[3.744849] CR2: 01c8
[3.744849] ---[ end trace 485eaaecdce54971 ]---
[3.744849] RIP: 0010:security_port_sid+0x2f/0xb0
[3.744849] Code: 55 48 89 e5 41 57 49 89 ff 41 56 49 89 ce 41 55
41 89 d5 41 54 41 89 f4 53 48 8b 7f 40 e8 c9 ca 94 00 49 8b 47 40 48
8b 40 10 <48> 8b 98 c8 01 00 00 48 85 db 75 0e eb 65 48 8b 9b c0 00 00
00 48
[3.744849] RSP: 0018:b607c0013d00 EFLAGS: 00010246
[3.744849] RAX:  RBX: aef076f8 RCX: b607c0013d9c
[3.744849] RDX: 0016 RSI: 0006 RDI: aef08d10
[3.744849] RBP: b607c0013d28 R08: 0218 R09: 0016
[3.744849] R10: b607c0013d9c R11: 988ff9665260 R12: 0006
[3.744849] R13: 0016 R14: b607c0013d9c R15: aef05820
[3.744849] FS:  7f5ef4fec840() GS:988ffbc0()
knlGS:
[3.744849] CS:  0010 DS:  ES:  CR0: 80050033
[3.744849] CR2: 01c8 CR3: 00013b04c000 CR4: 003506f0
[3.7RIP: 0010:security_port_sid44849] Kernel panic - not syncing:
Fatal exception in interrupt
[3.744849] Kernel Offset: 0x2c00 from 0x8100
(relocation range: 0x8000-0xbfff)
[3.744849] ---[ end Kernel panic - not syncing: Fatal exception in
interrupt ]---

full test log link,
https://qa-reports.linaro.org/lkft/linux-next-oe/build/next-20200819/testrun/3084905/suite/linux-log-parser/test/check-kernel-panic-1682816/log

Reported-by: Naresh Kamboju 

-- 
Linaro LKFT
https://lkft.linaro.org