[Kernel-packages] [Bug 1986378] acpidump.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "acpidump.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608363/+files/acpidump.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_

[Kernel-packages] [Bug 1986378] WifiSyslog.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "WifiSyslog.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608362/+files/WifiSyslog.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transpa

[Kernel-packages] [Bug 1986378] ProcModules.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "ProcModules.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608360/+files/ProcModules.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transpa

[Kernel-packages] [Bug 1986378] UdevDb.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "UdevDb.txt"
   https://bugs.launchpad.net/bugs/1986378/+attachment/5608361/+files/UdevDb.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_hugepage

[Kernel-packages] [Bug 1986378] ProcCpuinfoMinimal.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "ProcCpuinfoMinimal.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608358/+files/ProcCpuinfoMinimal.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebb

[Kernel-packages] [Bug 1986378] ProcCpuinfo.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "ProcCpuinfo.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608357/+files/ProcCpuinfo.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transpa

[Kernel-packages] [Bug 1986378] ProcInterrupts.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "ProcInterrupts.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608359/+files/ProcInterrupts.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d r

[Kernel-packages] [Bug 1986378] Lsusb-t.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "Lsusb-t.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608355/+files/Lsusb-t.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_

[Kernel-packages] [Bug 1986378] Lsusb-v.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "Lsusb-v.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608356/+files/Lsusb-v.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_

[Kernel-packages] [Bug 1986378] Lsusb.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "Lsusb.txt"
   https://bugs.launchpad.net/bugs/1986378/+attachment/5608354/+files/Lsusb.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_hugepage

[Kernel-packages] [Bug 1986378] Lspci.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "Lspci.txt"
   https://bugs.launchpad.net/bugs/1986378/+attachment/5608352/+files/Lspci.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_hugepage

[Kernel-packages] [Bug 1986378] Lspci-vt.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "Lspci-vt.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608353/+files/Lspci-vt.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_

[Kernel-packages] [Bug 1986378] HookError_ubuntu.txt

2022-08-13 Thread Jiandi An
apport information

** Attachment added: "HookError_ubuntu.txt"
   
https://bugs.launchpad.net/bugs/1986378/+attachment/5608351/+files/HookError_ubuntu.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
   crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-08-09 (3 days ago)
  InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  MachineType: To be filled by O.E.M. To be filled by O.E.M.
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 astdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d r

[Kernel-packages] [Bug 1986378] Re: linux-headers make kernel script fails with fatal error: classmap.h: No such file or directory

2022-08-13 Thread Jiandi An
apport information

** Tags added: apport-collected jammy uec-images

** Description changed:

  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.
  
  CONFIG_SECURITY_SELINUX is enabled.
  
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
  
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$
  
  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39
  
  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?
  
  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree
  
  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc
  
  
  Thanks
  - Jiandi
+ --- 
+ ProblemType: Bug
+ AlsaDevices:
+  total 0
+  crw-rw+ 1 root audio 116,  1 Aug  9 12:12 seq
+  crw-rw+ 1 root audio 116, 33 Aug  9 12:12 timer
+ AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
+ ApportVersion: 2.20.11-0ubuntu82
+ Architecture: amd64
+ ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
+ AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
+ CRDA: N/A
+ DistroRelease: Ubuntu 22.04
+ InstallationDate: Installed on 2022-08-09 (3 days ago)
+ InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220421)
+ IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
+ MachineType: To be filled by O.E.M. To be filled by O.E.M.
+ Package: linux (not installed)
+ PciMultimedia:
+  
+ ProcEnviron:
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
+ ProcFB: 0 astdrmfb
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-43-generic 
root=UUID=e3d8adf4-67b0-4bac-8472-7eaebbb8cb7d ro transparent_hugepage=madvise 
console=tty0 console=ttyS1,115200n8 pci=realloc=off crashkernel=1G-:0M
+ ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39
+ RelatedPackageVersions:
+  linux-restricted-modules-5.15.0-43-generic N/A
+  linux-backports-modules-5.15.0-43-generic  N/A
+  linux-firmware 20220329.git681281e4-0ubuntu3.3
+ RfKill: Error: [E

[Kernel-packages] [Bug 1986378] Re: linux-headers make kernel script fails with fatal error: classmap.h: No such file or directory

2022-08-12 Thread Jiandi An
** Changed in: linux (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o
HOSTCC  scripts/kconfig/util.o
HOSTLD  scripts/kconfig/conf
  6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
YACCscripts/genksyms/parse.tab.[ch]
HOSTCC  scripts/genksyms/parse.tab.o
LEX scripts/genksyms/lex.lex.c
HOSTCC  scripts/genksyms/lex.lex.o
HOSTLD  scripts/genksyms/genksyms
HOSTCC  scripts/selinux/genheaders/genheaders
  scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No 
such file or directory
 18 | #include "classmap.h"
|  ^~~~
  compilation terminated.
  make[3]: *** [scripts/Makefile.host:95: 
scripts/selinux/genheaders/genheaders] Error 1
  make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
  make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
  make: *** [Makefile:1209: scripts] Error 2
  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

  lab@test-server:~$ uname -a
  Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 
2022 x86_64 x86_64 x86_64 GNU/Linux
  lab@test-server:~$ lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description: Ubuntu 22.04 LTS
  Release: 22.04
  Codename:jammy
  lab@test-server:~$ cat /proc/version_signature
  Ubuntu 5.15.0-43.46-generic 5.15.39

  
  Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

  I've tried with the following kernels:
  Ubuntu 20.04 5.4.0-120-generic amd64 kernel
  Ubuntu 20.04 5.4.0-64-generic arm64 kernel
  Ubuntu 22.04 5.15.0-43-generic amd64 kernel
  Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from 
Ubuntu-unstable kernel tree

  An old Debian Bug report
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
  where they have a fix to copy the selinux headers to /usr/src to ship
  https://github.com/ilbers/isar/pull/67
  
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc

  
  Thanks
  - Jiandi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1986378/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1986378] [NEW] linux-headers make kernel script fails with fatal error: classmap.h: No such file or directory

2022-08-12 Thread Jiandi An
Public bug reported:

It looks like in most Ubuntu Linux kernel, building kernel scripts 
in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

CONFIG_SECURITY_SELINUX is enabled.

lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
# CONFIG_SECURITY_SELINUX_DISABLE is not set
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
[sudo] password for lab: 
  SYNCinclude/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX scripts/kconfig/lexer.lex.c
  YACCscripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
6^[[18~  HOSTCC  scripts/genksyms/genksyms.o
  YACCscripts/genksyms/parse.tab.[ch]
  HOSTCC  scripts/genksyms/parse.tab.o
  LEX scripts/genksyms/lex.lex.c
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/selinux/genheaders/genheaders
scripts/selinux/genheaders/genheaders.c:18:10: fatal error: classmap.h: No such 
file or directory
   18 | #include "classmap.h"
  |  ^~~~
compilation terminated.
make[3]: *** [scripts/Makefile.host:95: scripts/selinux/genheaders/genheaders] 
Error 1
make[2]: *** [scripts/Makefile.build:548: scripts/selinux/genheaders] Error 2
make[1]: *** [scripts/Makefile.build:548: scripts/selinux] Error 2
make: *** [Makefile:1209: scripts] Error 2
lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$

lab@test-server:~$ uname -a
Linux test-server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 
x86_64 x86_64 x86_64 GNU/Linux
lab@test-server:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename:jammy
lab@test-server:~$ cat /proc/version_signature
Ubuntu 5.15.0-43.46-generic 5.15.39


Should security/selinux/include/ headers be shipped in /usr/src/ as part of 
linux-source-x.xx.x_.deb or is there other proper workaround for this issue?

I've tried with the following kernels:
Ubuntu 20.04 5.4.0-120-generic amd64 kernel
Ubuntu 20.04 5.4.0-64-generic arm64 kernel
Ubuntu 22.04 5.15.0-43-generic amd64 kernel
Ubuntu 20.04 custom build arm64 Ubuntu-unstable-5.17.0-6.6 from Ubuntu-unstable 
kernel tree

An old Debian Bug report
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988367
where they have a fix to copy the selinux headers to /usr/src to ship
https://github.com/ilbers/isar/pull/67
https://github.com/ilbers/isar/pull/67/commits/7818e4f5e7495961c172511648476f5bf1c2e0fc


Thanks
- Jiandi

** Affects: linux (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1986378

Title:
  linux-headers make kernel script fails with fatal error: classmap.h:
  No such file or directory

Status in linux package in Ubuntu:
  New

Bug description:
  It looks like in most Ubuntu Linux kernel, building kernel scripts 
  in /usr/scr/linux-headers-$(uname -r)/ fails with classmap.h missing.
  The security/selinux/include/ headers are not included in /usr/src to be 
packaged in linux-source-x.xx_xxx.deb package.

  CONFIG_SECURITY_SELINUX is enabled.

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ zgrep 
CONFIG_SECURITY_SELINUX  /boot/config-$(uname -r)
  CONFIG_SECURITY_SELINUX=y
  CONFIG_SECURITY_SELINUX_BOOTPARAM=y
  # CONFIG_SECURITY_SELINUX_DISABLE is not set
  CONFIG_SECURITY_SELINUX_DEVELOP=y
  CONFIG_SECURITY_SELINUX_AVC_STATS=y
  CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
  CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9
  CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256

  lab@test-server:/usr/src/linux-headers-5.15.0-43-generic$ sudo make scripts
  [sudo] password for lab: 
SYNCinclude/config/auto.conf.cmd
HOSTCC  scripts/basic/fixdep
HOSTCC  scripts/kconfig/conf.o
HOSTCC  scripts/kconfig/confdata.o
HOSTCC  scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACCscripts/kconfig/parser.tab.[ch]
HOSTCC  scripts/kconfig/lexer.lex.o
HOSTCC  scripts/kconfig/menu.o
HOSTCC  scripts/kconfig/parser.tab.o
HOSTCC  scripts/kconfig/preprocess.o
HOSTCC  scripts/kconfig/symbol.o

[Kernel-packages] [Bug 1863116] Re: debian/rules editconfigs does not work on s390x to change s390x only configs

2020-07-27 Thread Jiandi An
Same here.  Why is this changed from New to Invalid?

On arm64 system, 
Checking out this https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7.10/

cod/mainline/v5.7.10 (d4563ab7fb2d4e8303c493a4eaa34e0189843e5b)
git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
 cod/mainline/v5.7.10

Following instructions at
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel#Modifying_the_configuration

fakeroot debian/rules editconfigs always assumes amd64 and no matter
answering Y or N to the first question it pops up "Do you want to edit
config: amd64/config.flavour.generic?", it'll always fail saying
scripts/Kconfig.include:45: compiler 'x86_64-linux-gnu-gcc' not found.

How to editconfig for arm64 kernel?  I'm building kernel natively on an
arm64 machine.

$ LANG=C fakeroot debian/rules editconfigs
/bin/bash: 
/home/cuda/jiandi/sb/v5.7.10/mainline-crack/debian.master/abi/5.7.10-0.0/arm64/../modules.ignore:
 No such file or directory
dh_testdir;
/bin/bash -e debian/scripts/misc/kernelconfig editconfigs
Do you want to edit config: amd64/config.flavour.generic? [Y/n] n
make[1]: Entering directory '/home/cuda/jiandi/sb/v5.7.10/mainline-crack'
make[2]: Entering directory '/home/cuda/jiandi/sb/v5.7.10/mainline-crack/build'
  GEN Makefile
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX scripts/kconfig/lexer.lex.c
  YACCscripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
scripts/Kconfig.include:45: compiler 'x86_64-linux-gnu-gcc' not found
make[3]: *** [../scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [/home/cuda/jiandi/sb/v5.7.10/mainline-crack/Makefile:588: 
syncconfig] Error 2
make[2]: Leaving directory '/home/cuda/jiandi/sb/v5.7.10/mainline-crack/build'
make[1]: *** [Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/home/cuda/jiandi/sb/v5.7.10/mainline-crack'
make: *** [debian/rules.d/1-maintainer.mk:48: editconfigs] Error 2

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1863116

Title:
  debian/rules editconfigs does not work on s390x to change s390x only
  configs

Status in Ubuntu on IBM z Systems:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed

Bug description:
  On s390x

  pull-lp-source linux-5.4
  cd linux-*
  fakeroot ./debian/rules clean
  ./debian/rules editconfig
  dh_testdir;
  /bin/bash -e debian/scripts/misc/kernelconfig editconfigs
  Do you want to edit config: amd64/config.flavour.generic? [Y/n] n
  ...
  scripts/Kconfig.include:35: compiler 'x86_64-linux-gnu-gcc' not found
  make[3]: *** [../scripts/kconfig/Makefile:73: syncconfig] Error 1
  make[2]: *** [/home/ubuntu/linux-5.4-5.4.0/Makefile:594: syncconfig] Error 2
  make[2]: Leaving directory '/home/ubuntu/linux-5.4-5.4.0/build'
  make[1]: *** [Makefile:179: sub-make] Error 2
  make[1]: Leaving directory '/home/ubuntu/linux-5.4-5.4.0'
  make: *** [debian/rules.d/1-maintainer.mk:44: editconfigs] Error 2

  And indeed i do not have x86_64-linux-gnu-gcc crosscompiler available
  to build on s390x for amd64, and also I don't want to touch amd64
  configs. Only s390x ones.

  As a user, I should be able to rebuild ports architecture kernel with
  tweaked config for testing, self-hosted without cross-compilers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1863116/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp