Bug#1058890: bisect

2024-03-09 Thread Dr . André Desgualdo Pereira
I bisect the upstream kernel to find the bad commit:

git bisect start
# status: waiting for both good and bad commits
# good: [2dde18cd1d8fac735875f2e4987f11817cc0bc2c] Linux 6.5
git bisect good 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
# status: waiting for bad commit, 1 good commit known
# bad: [ffc253263a1375a65fa6c9f62a893e9767fbebfa] Linux 6.6
git bisect bad ffc253263a1375a65fa6c9f62a893e9767fbebfa
# skip: [a1c19328a160c80251868dbd80066dce23d07995] Merge tag 'soc-arm-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect skip a1c19328a160c80251868dbd80066dce23d07995
# good: [7c3f204e544dfa376bf1b34ebaa5552304a2b7d9] perf/smmuv3: Remove build 
dependency on ACPI
git bisect good 7c3f204e544dfa376bf1b34ebaa5552304a2b7d9
# good: [01a7eb3e20994701700631ec30462087c4ecf142] mm: fix 
clean_record_shared_mapping_range kernel-doc
git bisect good 01a7eb3e20994701700631ec30462087c4ecf142
# good: [0e72db77672ff4758a31fb5259c754a7bb229751] Merge tag 'soc-dt-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 0e72db77672ff4758a31fb5259c754a7bb229751
# good: [0e72db77672ff4758a31fb5259c754a7bb229751] Merge tag 'soc-dt-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 0e72db77672ff4758a31fb5259c754a7bb229751
# good: [0e72db77672ff4758a31fb5259c754a7bb229751] Merge tag 'soc-dt-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 0e72db77672ff4758a31fb5259c754a7bb229751
# good: [5eea5820c7340d39e56e169e1b87199391105f6b] Merge tag 
'mm-stable-2023-09-04-14-00' of 
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect good 5eea5820c7340d39e56e169e1b87199391105f6b
# good: [b300c0fdf0045ede109a349aa9c79f81bfae086a] Merge tag 
'hwmon-for-v6.6-rc3' of 
git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
git bisect good b300c0fdf0045ede109a349aa9c79f81bfae086a
# bad: [7e20d344b53532adf60d77cb41873ebdb4f80cf4] Merge tag 
'x86-urgent-2023-10-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 7e20d344b53532adf60d77cb41873ebdb4f80cf4
# good: [94b7ed384fa9d397ff0aabff76a8de2f7e107144] Merge tag 'for-v6.6-rc' of 
git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
git bisect good 94b7ed384fa9d397ff0aabff76a8de2f7e107144
# bad: [cb84fb87f325ecd46be586b62623db5b2c0a792e] Merge tag 
'integrity-v6.6-fix' of 
git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
git bisect bad cb84fb87f325ecd46be586b62623db5b2c0a792e
# bad: [e402b08634b398e9feb94902c7adcf05bb8ba47d] Merge tag 'soc-fixes-6.6' of 
git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect bad e402b08634b398e9feb94902c7adcf05bb8ba47d
# bad: [ae213639983a5406849d62d33257dfc076bc48a7] Merge tag 'nfsd-6.6-2' of 
git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git bisect bad ae213639983a5406849d62d33257dfc076bc48a7
# good: [eafdc5071351314702175a3cd083cf6f7eef6488] Merge tag 
'block-6.6-2023-09-28' of git://git.kernel.dk/linux
git bisect good eafdc5071351314702175a3cd083cf6f7eef6488
# bad: [95289e49f0a05f729a9ff86243c9aff4f34d4041] Merge tag 'ata-6.6-rc4' of 
git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
git bisect bad 95289e49f0a05f729a9ff86243c9aff4f34d4041
# bad: [3cc2ffe5c16dc65dfac354bc5b5bc98d3b397567] scsi: sd: Differentiate 
system and runtime start/stop management
git bisect bad 3cc2ffe5c16dc65dfac354bc5b5bc98d3b397567
# good: [3b8e0af4a7a331d1510e963b8fd77e2fca0a77f1] ata: libata-core: Fix 
ata_port_request_pm() locking
git bisect good 3b8e0af4a7a331d1510e963b8fd77e2fca0a77f1
# good: [84d76529c650f887f1e18caee72d6f0589e1baf9] ata: libata-core: Fix port 
and device removal
git bisect good 84d76529c650f887f1e18caee72d6f0589e1baf9
# good: [fb99ef17865035a6657786d4b2af11a27ba23f9b] ata: libata-scsi: link ata 
port and scsi device
git bisect good fb99ef17865035a6657786d4b2af11a27ba23f9b
# first bad commit: [3cc2ffe5c16dc65dfac354bc5b5bc98d3b397567] scsi: sd: 
Differentiate system and runtime start/stop management



Bug#1065320: marked as done (linux-image-6.1.0-18-amd64: 6.1.0-18 kernel enters ACPI Error loop during boot & requires power cycle)

2024-03-09 Thread Debian Bug Tracking System
Your message dated Sat, 09 Mar 2024 19:10:10 +
with message-id 
and subject line Bug#1065320: fixed in linux 6.7.9-1
has caused the Debian Bug report #1065320,
regarding linux-image-6.1.0-18-amd64: 6.1.0-18 kernel enters ACPI Error loop 
during boot & requires power cycle
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1065320: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065320
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:linux
Version: 6.1.76-1
Severity: critical
Justification: breaks the whole system
X-Debbugs-Cc: leeejobsacco...@mail.co.uk

Dear Maintainer,

   * What led up to the situation?

   Trying to boot the system with the 6.1.0-18 kernel

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

   I tried adding 'boot_delay=1000' boot option to slow the console
   scroll rate, to enable better recording of the error messages.

   I tried rebooting the previous 6.1.0-17 kernel.

   * What was the outcome of this action?

   After adding the 'boot_delay=1000' option the boot process
   progressed no further than "Loading initial ramdisk ..."
   (left for several minutes - required power cycle).

   The system boots sucessfully on the previous 6.1.0-17 kernel

   * What outcome did you expect instead?

   I expected the system to successfully boot.

   * Additional observations

   This system also normally includes 'hpet=disable' and
   'acpi_enforce_resources=lax' boot options but removing these
   made no difference.

   Although I was not able to boot the system with the
   'boot_delay=1000' option and obtain clear photographs of the
   console output - the ones I've attached suffer from
   'overprinting' - it does seem clear that ACPI errors are
   being reported.

   There appear to be two distinct phases to this problem.
   Initially, ACPI seems to be reporting errors for "GPE", as
   shown in the first attached photograph, but after ~10 seconds
   or so, ACPI then switches to continuously reporting an error
   for PM_TIMER, as shown in the second attached photograph. At
   this point a power cycle is required.

   Purging and reinstalling the package made no difference. Atm,
   only three kernels are installed on this system but I have
   had more in the past as I normally compile my own kernels
   from the corresponding Debian source package. My own 6.1.76-1
   kernel also suffers from the same problem, whereas my own
   6.1.69-1 kernel boots and runs Ok.

   Comparing the kernel configs for 6.1.0-17 and 6.1.0-18
   showed just one functional change - an additional
   Compile-time checks and compiler option, which did not seem
   relevant to this problem.


-- Package-specific info:
** Kernel log: boot messages should be attached

** Model information
sys_vendor: ASUSTeK COMPUTER INC.
product_name: E203NA
product_version: 1.0   
chassis_vendor: ASUSTeK COMPUTER INC.
chassis_version: 1.0   
bios_vendor: American Megatrends Inc.
bios_version: E203NA.312
board_vendor: ASUSTeK COMPUTER INC.
board_name: E203NA
board_version: 1.0   

** Network interface configuration:
*** /etc/network/interfaces:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback


** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation Celeron N3350/Pentium N4200/Atom 
E3900 Series Host Bridge [8086:5af0] (rev 0b)
Subsystem: ASUSTeK Computer Inc. Celeron N3350/Pentium N4200/Atom E3900 
Series Host Bridge [1043:1980]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- 
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device_pci_legacy

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 500 
[8086:5a85] (rev 0b) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. HD Graphics 500 [1043:1980]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 
Capabilities: [70] Express (v2) Root Complex Integrated Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0
ExtTag- RBE+ FLReset+
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- FLReset-
MaxPayload 128 bytes, MaxReadReq 128 bytes
DevSta: 

linux_6.7.9-1_source.changes ACCEPTED into unstable

2024-03-09 Thread Debian FTP Masters
Thank you for your contribution to Debian.



Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Format: 1.8
Date: Fri, 08 Mar 2024 21:55:53 +0100
Source: linux
Architecture: source
Version: 6.7.9-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Kernel Team 
Changed-By: Salvatore Bonaccorso 
Closes: 1065320
Changes:
 linux (6.7.9-1) unstable; urgency=medium
 .
   * New upstream stable update:
 https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.7.8
 https://www.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.7.9
 - mtd: spinand: gigadevice: Fix the get ecc status issue
 - ice: fix connection state of DPLL and out pin
 - ice: fix dpll input pin phase_adjust value updates
 - ice: fix dpll and dpll_pin data access on PF reset
 - ice: fix dpll periodic work data updates on PF reset
 - ice: fix pin phase adjust updates on PF reset
 - spi: cadence-qspi: fix pointer reference in runtime PM hooks
 - spi: cadence-qspi: remove system-wide suspend helper calls from runtime 
PM
   hooks
 - netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
 - netlink: add nla be16/32 types to minlen array
 - net: ip_tunnel: prevent perpetual headroom growth
 - net: mctp: take ownership of skb in mctp_local_output
 - tun: Fix xdp_rxq_info's queue_index when detaching
 - [x86] cpufreq: intel_pstate: fix pstate limits enforcement for 
adjust_perf
   call back
 - net: veth: clear GRO when clearing XDP even when down
 - ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
 - lan78xx: enable auto speed configuration for LAN7850 if no EEPROM is
   detected
 - veth: try harder when allocating queue memory
 - net: usb: dm9601: fix wrong return value in dm9601_mdio_read
 - net: lan78xx: fix "softirq work is pending" error
 - uapi: in6: replace temporary label with rfc9486
 - stmmac: Clear variable when destroying workqueue
 - Bluetooth: hci_sync: Check the correct flag before starting a scan
 - Bluetooth: Avoid potential use-after-free in hci_error_reset
 - Bluetooth: hci_sync: Fix accept_list when attempting to suspend
 - Bluetooth: hci_event: Fix wrongly recorded wakeup BD_ADDR
 - Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
 - Bluetooth: Enforce validation on max value of connection interval
 - Bluetooth: qca: Fix wrong event type for patch config command
 - Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT
 - Bluetooth: qca: Fix triggering coredump implementation
 - netfilter: nf_tables: allow NFPROTO_INET in nft_(match/target)_validate()
 - netfilter: bridge: confirm multicast packets before passing them up the
   stack
 - rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back
 - igb: extend PTP timestamp adjustments to i211
 - net: hsr: Use correct offset for HSR TLV values in supervisory HSR frames
 - tls: decrement decrypt_pending if no async completion will be called
 - tls: fix peeking with sync+async decryption
 - tls: separate no-async decryption request handling from async
 - tls: fix use-after-free on failed backlog decryption
 - [riscv64] tlb: fix __p*d_free_tlb()
 - efi/capsule-loader: fix incorrect allocation size
 - power: supply: bq27xxx-i2c: Do not free non existing IRQ
 - [x86] ASoC: cs35l56: Must clear HALO_STATE before issuing SYSTEM_RESET
 - [arm64,armhf] gpu: host1x: Skip reset assert on Tegra186
 - [riscv64] mm: fix NOCACHE_THEAD does not set bit[61] correctly
 - [riscv64] Fix build error if !CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
 - [x86] ASoC: cs35l56: cs35l56_component_remove() must clear
   cs35l56->component
 - [x86] ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
 - [x86] ASoC: cs35l56: Don't add the same register patch multiple times
 - [x86] ASoC: cs35l56: Fix for initializing ASP1 mixer registers
 - [x86] ASoC: cs35l56: Fix misuse of wm_adsp 'part' string for silicon
   revision
 - [x86] ASoC: cs35l56: Fix deadlock in ASP1 mixer register initialization
 - ASoC: soc-card: Fix missing locking in snd_soc_card_get_kcontrol()
 - [riscv64] Ignore V from the riscv,isa DT property on older T-Head CPUs
 - [arm64,armhf] drm/tegra: Remove existing framebuffer only if we support
   display
 - fbcon: always restore the old font data in fbcon_do_set_font()
 - afs: Fix endless loop in directory parsing
 - drm/amd/display: Prevent potential buffer overflow in map_hw_resources
 - drivers: perf: added capabilities for legacy PMU
 - drivers: perf: ctr_get_width function for legacy is not defined
 - Revert "riscv: mm: support Svnapot in huge vmap"
 - [riscv64] Fix pte_leaf_size() for NAPOT
 - [riscv64] Sparse-Memory/vmemmap out-of-bounds fix
 - btrfs: fix race between ordered extent completion and fiemap
 - drm/nouveau: keep DMA buffers required 

Problem rebuilding 6.6.15 kernel using debian documentation : it tries to sign again foo.ko modules when foo.ko.xz exist and is already signed.

2024-03-09 Thread Eric Valette

As I wanted:

1) to stay on long term kernel 6.6 branch,
2) 6.7.x has been uploaded to unstable already,
3) I would like to enable NTFS3, and AMD TEE

I decided I will try to recompile the kernel myself first (I have MOK 
keys already registered and used to manually sign some external modules).


I used the following debian documentation

https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-getting 



https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-building

cd linux-source-6.6
make localmodconfig

and accepted the default values.

Then
make clean
make bindeb-pkg

And then it correctly builds the kernel and modules .ko file, then sign 
the ko and xz compress it to get foo.ko.xz. Here are extracts


  AR  drivers/gpu/built-in.a
  AR  drivers/built-in.a
  AR  built-in.a
  AR  vmlinux.a
  LD  vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN modules.builtin
  GEN .vmlinux.objs
  MODPOST Module.symvers
  CC  .vmlinux.export.o
  UPD include/generated/utsversion.h
  CC  init/version-timestamp.o
  LD  .tmp_vmlinux.btf
  BTF .btf.vmlinux.bin.o
  LD  .tmp_vmlinux.kallsyms1
  NM  .tmp_vmlinux.kallsyms1.syms
  KSYMS   .tmp_vmlinux.kallsyms1.S
  AS  .tmp_vmlinux.kallsyms1.S
  LD  .tmp_vmlinux.kallsyms2
  NM  .tmp_vmlinux.kallsyms2.syms
  KSYMS   .tmp_vmlinux.kallsyms2.S
  AS  .tmp_vmlinux.kallsyms2.S
  LD  vmlinux
  BTFIDS  vmlinux
  NM  System.map
  SORTTAB vmlinux
  RELOCS  arch/x86/boot/compressed/vmlinux.relocs
  RSTRIP  vmlinux

...

 SIGN 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/bluetooth.ko
  XZ 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/bluetooth.ko.xz
  INSTALL 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/rfcomm/rfcomm.ko
  SIGN 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/rfcomm/rfcomm.ko
  XZ 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/rfcomm/rfcomm.ko.xz
  INSTALL 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/bnep/bnep.ko
  SIGN 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/bnep/bnep.ko
  XZ 
debian/linux-image/lib/modules/6.6.15/kernel/net/bluetooth/bnep/bnep.ko.xz

  INSTALL debian/linux-image/lib/modules/6.6.15/kernel/net/rfkill/rfkill.ko
  SIGNdebian/linux-image/lib/modules/6.6.15/kernel/net/rfkill/rfkill.ko
  XZ 
debian/linux-image/lib/modules/6.6.15/kernel/net/rfkill/rfkill.ko.xz
  INSTALL 
debian/linux-image/lib/modules/6.6.15/kernel/virt/lib/irqbypass.ko
  SIGN 
debian/linux-image/lib/modules/6.6.15/kernel/virt/lib/irqbypass.ko
  XZ 
debian/linux-image/lib/modules/6.6.15/kernel/virt/lib/irqbypass.ko.xz

  DEPMOD  debian/linux-image/lib/modules/6.6.15
  INSTALL debian/linux-libc-dev/usr/include

But then it tries to sign again the modules using the .ko file that does 
not exist:


ls -l debian/linux-image/lib/modules/6.6.15/kernel/arch/x86/events/*.ko*
-rw-rw-r-- 1 valette valette 103484  9 mars  19:39 
debian/linux-image/lib/modules/6.6.15/kernel/arch/x86/events/rapl.ko.xz


And fails with:

  SIGN 
debian/linux-image/lib/modules/6.6.15/kernel/arch/x86/events/rapl.ko

At main.c:298:
- SSL error:8002:system library::No such file or directory: 
../crypto/bio/bss_file.c:67

- SSL error:1080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: 
debian/linux-image/lib/modules/6.6.15/kernel/arch/x86/events/rapl.ko
make[6]: *** [scripts/Makefile.modinst:137 : 
debian/linux-image/lib/modules/6.6.15/kernel/arch/x86/events/rapl.ko] 
Erreur 1

make[5]: *** [Makefile:1846 : modules_install] Erreur 2
make[4]: *** [Makefile:2061 : run-command] Erreur 2
make[3]: *** [debian/rules:17 : binary-arch] Erreur 2
dpkg-buildpackage: erreur: le sous-processus make -f debian/rules binary 
a retourné l’état de sortie 2

make[2]: *** [scripts/Makefile.package:146 : bindeb-pkg] Erreur 2
make[1]: *** [/usr/src/linux-source-6.6/Makefile:1563 : bindeb-pkg] Erreur 2
make: *** [Makefile:246 : __sub-make] Erreur 2


Any hint?

-- eric